XML:
<action itemid="7724" script="item.lua"/>
Lua:
function onUse(cid, item, frompos, item2, topos)
doPlayerRemoveItem(cid, item, 1)
end
On item click, the item should be removed from player's inventory but instead I am getting this error:
attempt to call global 'doPlayerRemoveItem' (a nil value)