Xandress
Active Member
- Joined
- Apr 21, 2020
- Messages
- 65
- Reaction score
- 37
Hi, I couldn't find a solution for my problem.
Im trying to edit the autoloot to make it work with item level
in this case auto looted items got item level 0, when creating item first
creates two items, one item goes to player (with proper item level) and seccond item is still in the corpse.
Using
does give an item to backpack but with item level 0
When trying to remove the item the server crash. Any ideas?
Im trying to edit the autoloot to make it work with item level
C++:
if (owner->getAutoLootItem(item->getID())) {
g_game.internalPlayerAddItem(owner, item, true, CONST_SLOT_WHEREEVER);
autolooted = autolooted + ", " + item->getNameDescription();
} else if (g_game.internalAddItem(corpse, item) != RETURNVALUE_NOERROR) {
corpse->internalAddThing(item);
}
in this case auto looted items got item level 0, when creating item first
C++:
if (owner->getAutoLootItem(item->getID())) {
g_game.internalAddItem(corpse, item);
g_game.internalPlayerAddItem(owner, item, true, CONST_SLOT_WHEREEVER);
autolooted = autolooted + ", " + item->getNameDescription();
} else if (g_game.internalAddItem(corpse, item) != RETURNVALUE_NOERROR) {
corpse->internalAddThing(item);
}
creates two items, one item goes to player (with proper item level) and seccond item is still in the corpse.
Using
C++:
g_game.internalMoveItem()
When trying to remove the item the server crash. Any ideas?