• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

addevent help

Cadyan

Well-Known Member
Joined
Mar 30, 2008
Messages
844
Reaction score
63
What is wrong with this function? Mystic 0.2.15
Code:
addEvent(doSetItemActionId, 2000, item.uid, 11012)
addEvent(doSetItemSpecialDescription, 2000, item.uid, "")
 
Code:
addEvent(function () local t = getTileItemById(toPosition, itemId).uid doSetItemActionId(t, 11012) doSetItemSpecialDescription(t, "") end, 2000)
 
You have to write the itemid, you can also use item.itemid, then it will be the itemid of the item you click use on.
addEvent(function () local t = getTileItemById(toPosition, item.itemid).uid doSetItemActionId(t, 11012) doSetItemSpecialDescription(t, "") end, 2000)

Edit: Didn't see you already fixed it :p
 
Back
Top