Pets on repop
Posted: Sat Apr 27, 2019 3:00 am
Pets on repop need their owner removed, causes some chaos otherwise.
If someone is committing today, or maybe getting committed.
zoneserver.cpp, around line 708
We may even think about just leaving the pets alone. In the endgame, you would not want to repop the zone and kill everyone's pets.
If someone is committing today, or maybe getting committed.
zoneserver.cpp, around line 708
Code: Select all
for (itr = spawn_list.begin(); itr != spawn_list.end(); itr++) {
spawn = itr->second;
if(spawn && !spawn->IsPlayer()){
if (spawn->IsPet())
((NPC*)spawn)->GetOwner()->DismissPet(((NPC*)spawn), true);
SendRemoveSpawn(client, spawn, packet);
}
}