I'm not sure if someone already metioned this issue.
If you're in a 20sec countdown of your logout process and open an item with loot, for example Shattered Sun Supplies, and don't loot all items from it, so the loot table remains open, then once the timer finishes and you're logged off, the bag still gets stuck in the inventory, so you can repeat the process and get the loot again.
This patch should solve this issue by marking those items as 'locked' during the logout process.
Index: trunk/src/game/SpellHandler.cpp
===================================================================
--- trunk/src/game/SpellHandler.cpp (revision 6767)
+++ trunk/src/game/SpellHandler.cpp (working copy)
@@ -254,7 +254,12 @@
}
CharacterDatabase.PExecute("DELETE FROM character_gifts WHERE item_guid = '%u'", pItem->GetGUIDLow());
}
- else
+ else if(isLogingOut()) //cannot open while loging out
+ {
+ pUser->SendEquipError(EQUIP_ERR_ITEM_LOCKED, pItem, NULL );
+ return;
+ }
+ else
pUser->SendLoot(pItem->GetGUID(),LOOT_CORPSE);
}
Iskander