I have this script:
Thats supposed to teleport a player when and item on the ground is used, but absolutely nothing happens. The player only gets the "you cant use this item" message and is not teleported.
The itemdID and uid is correct so I dont see how this is not working.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local newposition = {x=847, y=1280, z=9}
if(item.uid == 10200 and item.itemid == 1409) then
doSendMagicEffect(fromPosition, 2)
doTeleportThing(cid, newposition)
doSendMagicEffect(newposition, 10)
end
return true
end
Thats supposed to teleport a player when and item on the ground is used, but absolutely nothing happens. The player only gets the "you cant use this item" message and is not teleported.
The itemdID and uid is correct so I dont see how this is not working.