View Single Post
  #1  
Old 10-18-2004, 11:21 AM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

Quote:
When someones loot an item and immediatly equip it, remplacing an item in the same slot, he will loose this item after zoning / camping / ld'ing or the item will change slot.

Example: I kill a mob and loot a cool sword. I equip it, remplacing the old sword I had (I did not unequip the previous sword before equiping the new one), I have like 85% of chance to loose this item and having the old one duplicated (even if it's lore)
I tried this 5 times and every time it was correct. I tried multiple variations (right/left clicking to loot, looting and then changing the item with/without unequiping, etc) and I could never get it to mess up.

Quote:
As I mentionned earlier on a previous post, I noticed that the inventory table is not immediatly upgraded when someones equips an item but a bit after
It is saved to the database as soon as they loot the item, here is some code for Client::PutLootInInventory even:

Code:
m_inv.PutItem(slot_id, inst);
SendLootItemInPacket(&inst, slot_id);
database.SaveInventory(this->CharacterID(), &inst, slot_id);
I'm not sure how you are getting those problems, but I do know that I cannot reproduce them and an item is saved to the database as soon as it is looted or moved.
__________________
Lethal Encounter
Reply With Quote