EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bug Reports (https://www.eqemulator.org/forums/forumdisplay.php?f=591)
-   -   Corpse locked after a client has died while looting (https://www.eqemulator.org/forums/showthread.php?t=30706)

cybernine186 03-01-2010 05:59 PM

Corpse locked after a client has died while looting
 
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:

Code:

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

With:

Code:

        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.


All times are GMT -4. The time now is 01:43 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.