mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
opening quest stuff
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user