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 09-16-2005, 01:10 PM
Dakaar
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default Fix for Loot 'getting stuck' on LootErrorPackets

Hey all. So After trying to loot multiple items off a pvp corpse, I got a "error: you cannot loot anymore items from this corpse" then the client would get bugged.

The client stays connected but cannot target or manipulate his UI such as inventory etc.

The problem is that the packet does not get queue'd because these error cases return before the packet is sent at the end of the function. Simply Queue the packet to the client before returning and your looting should be bug-free

ie: in playercorpse.cpp around line 836

if(IsPlayerCorpse() && (charid != client->CharacterID()) && CanMobLoot(client->CharacterID()) && GetPKItem()==0){
client->Message(13, "Error: You cannot loot any more items from this corpse.");
SendEndLootErrorPacket(client);
BeingLootedBy = 0xFFFFFFFF;
+ client->QueuePacket(app);
return;
}


Add the client->QueuePacket(app); before the return, and the client wont get stuck any longer.

A better way to do this would be to have SendEndLootErrorPacket take app as a argument and have it queue the packet somewhere in the function.
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 04:00 PM.


 

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