Hello i cant change it for item id :2500 (example).
When you use it then it will be removed.
When you use it then it will be removed.
Code:
function onUse(cid, item, frompos, item2, topos)
local storage = 89523
local x = getPlayerStorageValue(cid, storage)
local y = getPlayerStorageValue(cid, storage+1)
local z = getPlayerStorageValue(cid, storage+2)
if(x > -1 and y > -1) then
doTeleportThing(cid, {x=x, y=y, z=z})
doSendMagicEffect({x=x, y=y, z=z}, CONST_ME_TELEPORT)
else
doPlayerSendCancel(cid,"Sorry, it's not possible.")
end
return TRUE
end