opening quest stuff

This commit is contained in:
yogurt
2017-10-10 13:32:47 -05:00
parent 9fc99faa5c
commit 92de857cda
49 changed files with 873 additions and 88 deletions

View File

@@ -489,13 +489,14 @@ namespace FFXIVClassic_Map_Server.Actors
zoneId = actorId;
Npc npc;
if (isMob)
npc = new BattleNpc(mActorList.Count + 1, actorClass, uniqueId, this, x, y, z, rot, state, animId, null);
else
npc = new Npc(mActorList.Count + 1, actorClass, uniqueId, this, x, y, z, rot, state, animId, null);
npc.LoadEventConditions(actorClass.eventConditions);
npc.SetMaxHP(300);
npc.SetHP(300);
AddActorToZone(npc);

View File

@@ -152,6 +152,7 @@ namespace FFXIVClassic_Map_Server.actors.area
contentAreas.Add(areaName, new List<PrivateAreaContent>());
PrivateAreaContent contentArea = new PrivateAreaContent(this, classPath, areaName, 1, director, starterPlayer);
contentAreas[areaName].Add(contentArea);
return contentArea;
}
}
@@ -167,6 +168,15 @@ namespace FFXIVClassic_Map_Server.actors.area
public override void Update(DateTime tick)
{
base.Update(tick);
foreach (var a in privateAreas.Values)
foreach(var b in a.Values)
b.Update(tick);
foreach (var a in contentAreas.Values)
foreach (var b in a)
{
b.Update(tick);
}
// todo: again, this is retarded but debug stuff
var diffTime = tick - lastUpdate;