Lua: RemoveItem()

Discussions of the design and development of in-game content.

Moderator: Team Members

Post Reply
fearfx
Posts: 7
Joined: Mon Jan 07, 2013 8:01 pm

Lua: RemoveItem()

Post by fearfx » Wed Jan 25, 2017 6:00 pm

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

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: Lua: RemoveItem()

Post by Cynnar » Thu Jan 26, 2017 3:52 pm

I think you can do it with HasItem()

Exit: Also if I remember correctly quest items are removed in the quest script.
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests