Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2010, 05:59 PM
cybernine186
Sarnak
 
Join Date: Feb 2008
Posts: 87
Default 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.
__________________
Lead GM Voidd of the Vallon / Tallon Zek Server
Reply With Quote
  #2  
Old 03-01-2010, 06:54 PM
Rogean's Avatar
Rogean
Administrator
 
Join Date: Jul 2003
Location: Massachusetts
Posts: 708
Default

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;
	}
__________________
EQEmulator Developer / Administrator
Reply With Quote
  #3  
Old 03-02-2010, 01:54 PM
cybernine186
Sarnak
 
Join Date: Feb 2008
Posts: 87
Default

Works like a charm....Does exactly the job.
__________________
Lead GM Voidd of the Vallon / Tallon Zek Server
Reply With Quote
  #4  
Old 03-02-2010, 06:19 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

If Rogean doesn't put that fix on the SVN soon, I will lol.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:25 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3