PDA

View Full Version : Corpse locked after a client has died while looting


cybernine186
03-01-2010, 05:59 PM
I noticed that if a client dies while looting a corpse that corpse is locked until either the zone restarts (if its a player's corpse) or if the client that died comes back and loots the corpse.

I am not using the stock version of PEQ but from what I gather from some other programmers this bug still exists on PEQ.

I thought I would throw that out there if anyone can think up of a fix for it.

Rogean
03-01-2010, 06:54 PM
In void Corpse::MakeLootRequestPackets(Client* client, const EQApplicationPacket* app) {:

Replace:

if (this->BeingLootedBy != 0xFFFFFFFF) {
// lets double check....
Entity* looter = entity_list.GetID(this->BeingLootedBy);
if (looter == 0)
this->BeingLootedBy = 0xFFFFFFFF;
}

With:

if (this->BeingLootedBy != 0xFFFFFFFF) {
// lets double check....
Entity* looter = entity_list.GetID(this->BeingLootedBy);
if (looter == 0 || !looter->IsClient())
this->BeingLootedBy = 0xFFFFFFFF;
}

cybernine186
03-02-2010, 01:54 PM
Works like a charm....Does exactly the job.

trevius
03-02-2010, 06:19 PM
If Rogean doesn't put that fix on the SVN soon, I will lol.