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:
Filip Maj 2016-06-12 18:43:41 -04:00
parent f0d4429f65
commit 957a8d89bb
4 changed files with 8680 additions and 6 deletions

View file

@ -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);