added mob name colour update

- added mobmods (need to be loaded from db)
- added Zone.GetBattleNpcById
- added missing IsValidTarget check in AttackState
This commit is contained in:
Tahir Akhlaq committed 2017-09-10 03:44:12 +01:00
1 parent 9077c60b96
commit ce5030acd1
18 files changed
+434 -22

No files matched your search

@@ -526,6 +526,16 @@ namespace FFXIVClassic_Map_Server.Actors
}
}
public BattleNpc GetBattleNpcById(uint id)
{
foreach (var bnpc in GetAllActors<BattleNpc>())
{
if (bnpc.GetBattleNpcId() == id)
return bnpc;
}
return null;
}
public void DespawnActor(string uniqueId)
{
RemoveActorFromZone(FindActorInZoneByUniqueID(uniqueId));