Page 1 of 1

Pets on repop

Posted: Sat Apr 27, 2019 3:00 am
by Gangrenous
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

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);
			}
		}
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.

Re: Pets on repop

Posted: Sat Apr 27, 2019 5:58 pm
by Cynnar
Will see about getting it in asap, but currently I have no way to compile the server. John is doing some work on the VM and ssh is not responding.