Ray Rewind
Doctor
Someone is able to do it?
local config = {
teleportPos = {x = 100, y = 100, z = 7},
storage = 20000
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, config.storage) ~= -1 then
doSendMagicEffect(fromPosition, CONST_ME_POFF)
doTeleportThing(cid, config.teleportPos)
doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
end
return TRUE
end