ITEM REVAMP PART 1
[updated] Item storage/container code Rev.2
heavily modified/optimized code
[added] bank storage fully working
[added] item counting (amount, volume limits) are in place now
[added] non-static bank terminals located in table „terminals“ (type 2)
(Statics remain in staticobjects)
[fixed] instrument equip/use bug
[fixed] instrument unequip bug
[fixed] armor equip/use bug
[added] field „home_location“ and „bank_location“ in table characters
[added] Theed bank terminals in the bank area
[modified] addObject() and removeObject() are now virtuals.
addObject in:
-container, inventory, bankstorage, creatureInventory
will now automatically setParent().
SceneObject::insertToZone()
will now automatically set the processServer ( ->setZoneProcessServer)
SceneObjects have added getters now:
->isPlayerInventory() - use it plz!
->isPlayerBankStorage() - use it plz!
This is part 1 of the item Revamp.
Part 2 will come soon and include a „onDrop()“ handler for all classes.
This way, each class can react to drops directly without a lot of pre-checks.
!Do not forget to apply the included sql patch!