Page 1 of 1

Lua: RemoveItem()

Posted: Wed Jan 25, 2017 6:00 pm
by fearfx
So when using RemoveItem() it seems to only remove items in the inventory, it doesn't check to see if the item is equipped, for instance some quest clickys can be equiped in the charm slot.
Just wondering if its an easy fix for you guys, no rush, just wanted to make a note :)

Edit: (as can't post a reply)
Re: Lua: RemoveItem()
Sent: Fri Jan 27, 2017 2:39 am
by Jabantiz

For whatever reason I am unable to reply to the thread so sending info in a pm, if either of you can still reply please post it to the thread, otherwise I will have to wait for john to fix whatever is wrong.




A quick look at the code seems to indicate that equipped items are excluded with remove item and from what I can tell it won't be a simple fix to include them as they are separate classes. It also seems to exclude the bank but that should be easy to add on if needed.
~ FeaR

Re: Lua: RemoveItem()

Posted: Thu Jan 26, 2017 3:52 pm
by Cynnar
I think you can do it with HasItem()

Exit: Also if I remember correctly quest items are removed in the quest script.