mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 21:48:25 +00:00
Add show_name and untargetable to npc_types fixes #637
Note the bodytype hack is still there since I was having issues with some npcs still showing names
This commit is contained in:
@@ -659,6 +659,8 @@ void EntityList::AddNPC(NPC *npc, bool SendSpawnPacket, bool dontqueue)
|
||||
QueueClients(npc, app);
|
||||
npc->SendArmorAppearance();
|
||||
npc->SetAppearance(npc->GetGuardPointAnim(),false);
|
||||
if (!npc->IsTargetable())
|
||||
npc->SendTargetable(false);
|
||||
safe_delete(app);
|
||||
} else {
|
||||
auto ns = new NewSpawn_Struct;
|
||||
@@ -799,6 +801,8 @@ void EntityList::CheckSpawnQueue()
|
||||
NPC *pnpc = it->second;
|
||||
pnpc->SendArmorAppearance();
|
||||
pnpc->SetAppearance(pnpc->GetGuardPointAnim(), false);
|
||||
if (!pnpc->IsTargetable())
|
||||
pnpc->SendTargetable(false);
|
||||
}
|
||||
safe_delete(outapp);
|
||||
iterator.RemoveCurrent();
|
||||
|
||||
Reference in New Issue
Block a user