christiandb
Member
Code:
function onUse(cid, item, frompos, item2, topos)
area = {x=32316, y=31942, z=7}
if itemid == 7722 then
doTeleportThing(cid, area,0)
doCreatureSay(cid, "Go get your free addons at Addons!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid)
end
return 1
end
in actions.xml:
Code:
<action itemid="7722" script="donation/addon.lua"/>
If I use the item nothing happens :S