mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 06:24:38 +02:00
Null event conditions get defaulted to empty conditions to allow anything to spawn. More work on the scripts. Committing the new sql schema + imports of all 3 town zones.
This commit is contained in:
parent
f0d4429f65
commit
957a8d89bb
4 changed files with 8680 additions and 6 deletions
|
@ -200,7 +200,7 @@ namespace FFXIVClassic_Map_Server
|
|||
displayNameId,
|
||||
eventConditions
|
||||
FROM gamedata_actor_class
|
||||
WHERE classPath <> '' AND eventConditions is not NULL
|
||||
WHERE classPath <> ''
|
||||
";
|
||||
|
||||
MySqlCommand cmd = new MySqlCommand(query, conn);
|
||||
|
@ -212,7 +212,12 @@ namespace FFXIVClassic_Map_Server
|
|||
uint id = reader.GetUInt32("id");
|
||||
string classPath = reader.GetString("classPath");
|
||||
uint nameId = reader.GetUInt32("displayNameId");
|
||||
string eventConditions = reader.GetString("eventConditions");
|
||||
string eventConditions = null;
|
||||
|
||||
if (!reader.IsDBNull(3))
|
||||
eventConditions = reader.GetString("eventConditions");
|
||||
else
|
||||
eventConditions = "{}";
|
||||
|
||||
ActorClass actorClass = new ActorClass(id, classPath, nameId, eventConditions);
|
||||
actorClasses.Add(id, actorClass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue