EDIT
Teleport Rune especial com exusted....(esse modo foi 100% eu que fis)
function onUse(cid, item, frompos, item2, topos) --teleporte Rune By snokiuthu local storage = 11548 -- n mexa local exhausted = 250 -- tempo em segundos if (getPlayerStorageValue(cid, storage) >= os.time()) then return doPlayerSendCancel(cid, "Você tem que esperar " .. getPlayerStorageValue(cid, storage) - os.time() .. " segundos para usar novamente.") end local effect = 10 local message = "You were teleported to "..getTownName(getPlayerTown(cid)).." town." local errormessage = "Sorry, you cannot use this scroll in a battle." local town = getTownTemplePosition(getPlayerTown(cid)) --- if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, errormessage) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message) doTeleportThing(cid,town) doSendMagicEffect(town,effect) setPlayerStorageValue(cid,storage,os.time()+exhausted) return end
TAAG
<action itemid="2348" event="script" value="teleportrune.lua"/>
Post 100% by snokiuthu,se gostaram +REP :button_ok: :button_ok: