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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-04-2006, 09:58 AM
ichijin
Sarnak
 
Join Date: Mar 2002
Posts: 43
Default Loot Bug! <-- Squash me!

Hey all, been going through this stupid loot bug lately. I have tried a great many things toying with this bug so far. It seems that the GetCharges() is always returning 0 (or something other than what it should be) which is why its always 1 when looting from your own corpse. I have completely modified inventory.cpp to not use const ItemInst, modified world.exe and zone.exe to use Inventory *m_inv instead of just Inv throughout the code (The sections that did work for looting and such had inv as a pointer).

Inventory.cpp:
MoveItemCharges() is the function that is the FINAL authority on what ammount of stack gets set into a previously stacked place OR an open slot. (I split the TryStacking into two functions to reflect this.)

AutoPutItemInInventory() is the other place (if TryStacking does not succeed, or item is not stacked) it moves to the end call of PutItemInInventory().

Patching charges like: (iteminst)->SetCharges(5); right before the final return on either of those functions will yeild ALL stacks that are greater than 1 to become 5 when looted from your corpse.

For some reason my Client is not logging properly. If one of you would be so kind as to log the value of inst->GetCharges() in those two functions, and let me know the results I would greatly appreciate it. I do not believe it is carrying those charges into the functions we are using them, or if it is, something else is going on that resets them. Lets get this one squashed guys!
__________________
Ichijin
- "Of course it works, I commented out the error messages."
Reply With Quote
 


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 12:50 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3