Dawg
Member
- Joined
- Mar 23, 2014
- Messages
- 180
- Reaction score
- 22
I'm trying to figure out how to make it so that when a player receives a ring from a reward chest, the ring goes straight to the backpack even if the player's ring slot is open. With TFS 1.2, if the player has no ring on, and then they open a quest chest that gives a ring, the ring goes straight to the player's ring slot and starts the expire timer.
Obviously this is not ideal, and besides, in RL this does not happen. See here:
A guy has no ring on and he does the banshee quest. When he opens the top right chest and gets the stealth ring, it goes to his bag, not his ring slot.
I also try some other distros, like nostalrius, and it also has the same problem. The game tries to dress the ring in your ring slot.
I see that the quest system adds the item with playerAddItemEx, and i see in the source code (luascript.cpp) that playerAddItemEx goes through all slots, but I don't understand how to exclude rings from this.
I searched and i have not seen anyone else reporting this issue, not sure if it's easy to fix and I'm just missing it or if the solution is already out there somwhere, or if I need to be using another function. thanks in advance!
Obviously this is not ideal, and besides, in RL this does not happen. See here:
I also try some other distros, like nostalrius, and it also has the same problem. The game tries to dress the ring in your ring slot.
I see that the quest system adds the item with playerAddItemEx, and i see in the source code (luascript.cpp) that playerAddItemEx goes through all slots, but I don't understand how to exclude rings from this.
I searched and i have not seen anyone else reporting this issue, not sure if it's easy to fix and I'm just missing it or if the solution is already out there somwhere, or if I need to be using another function. thanks in advance!