WikiArk21
Member
- Joined
- Oct 24, 2023
- Messages
- 30
- Reaction score
- 6
I followed a tutorial here on the forum about new item slots, but I had to make some modifications to make it compatible with my TFS. However, there's a problem. When an item is equipped in the slot, the player logs out and logs back in, and the item is deleted from the slot. However, there was no error during compilation or even in the console when the server is open. Can anyone shed some light on what the problem might be?
Tutorial: TFS 1.X+ - Help new inventory slot TFS 1.3 and OTClient (https://otland.net/threads/help-new-inventory-slot-tfs-1-3-and-otclient.264537/)
Tutorial: TFS 1.X+ - Help new inventory slot TFS 1.3 and OTClient (https://otland.net/threads/help-new-inventory-slot-tfs-1-3-and-otclient.264537/)
Post automatically merged:
The problem was between the chair and the computer (lol). It was a lack of attention and I had to add in player.cpp in void Player::internalAddThing(uint32_t index, Thing* thing) the added alotsI followed a tutorial here on the forum about new item slots, but I had to make some modifications to make it compatible with my TFS. However, there's a problem. When an item is equipped in the slot, the player logs out and logs back in, and the item is deleted from the slot. However, there was no error during compilation or even in the console when the server is open. Can anyone shed some light on what the problem might be?
Tutorial: TFS 1.X+ - Help new inventory slot TFS 1.3 and OTClient (https://otland.net/threads/help-new-inventory-slot-tfs-1-3-and-otclient.264537/)
Last edited: