mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-18 16:38:26 +00:00
Depop and cleanup existing node npc's when command executed again. Also remove string from "name" and leave metadata in "lastname" otherwise it is visually too busy
This commit is contained in:
@@ -2044,6 +2044,16 @@ void command_grid(Client *c, const Seperator *sep)
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Depop any node npc's already spawned
|
||||
*/
|
||||
auto &mob_list = entity_list.GetMobList();
|
||||
for (auto itr = mob_list.begin(); itr != mob_list.end(); ++itr) {
|
||||
Mob *mob = itr->second;
|
||||
if (mob->IsNPC() && mob->GetRace() == 2254)
|
||||
mob->Depop();
|
||||
}
|
||||
|
||||
/**
|
||||
* Spawn grid nodes
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user