Page 1 of 1
[BUG?] The party hook "onPickUpItem" does not trigger...
Posted: Thu Sep 20, 2012 8:19 pm
by Lilltiger
The party hook "onPickUpItem" does not trigger on items in the inventory, is there another hook to use for when picking up items from the inventory?
Re: [BUG?] The party hook "onPickUpItem" does not trigger...
Posted: Thu Sep 20, 2012 10:40 pm
by Edsploration
I was just facing a similar problem myself. I'm trying to create a cursed item which cannot be removed from an inventory spot. So far my only option is to continuously check all inventory spots and the mouse to catch the player in the act of removing it, delete the one moved by the player, and spawn a new one into the inventory spot. In the end this method looks more like a bug than intended behavior.
Hooks that tie into inventory would be extremely nice for custom gameplay type mods. Same for the map screen... if any lua could access it that is. I'm still learning what's possible so I could be wrong about these limitations.
Re: [BUG?] The party hook "onPickUpItem" does not trigger...
Posted: Fri Sep 21, 2012 1:35 am
by Lilltiger
Indeed, cursed items, usable items that one shouldn't be able to put away etc..
A lot more uses for items that cant be removed from the inventory, then items that cant be picked up at all..
And checking if the player is trying to remove it all the time is a very costly and ugly workaround that shouldn't be necessary.
I hope they will fix this soon
