E
Evil Puncker
Guest
How do I check and allow the use of an item onUse action to be performed only if target item is in character backpack, not anywhere else:
I'm using TFS 1.3 latest one
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.itemid == 2782 then
target:transform(2781)
target:decay()
return true
end
return destroyItem(player, target, toPosition)
end
I'm using TFS 1.3 latest one