Majesty 1,755 #1 Posted April 13, 2021 Citar Nome: [Revscriptsys] Teleport Scroll Versão: [10.98+] // Compatível com TFS 1.3 / OTServBR-Global Tipo do script: Action Créditos: Sarah Wesker data/scripts/actions/teleport_scroll.lua: Spoiler local teleportScroll = Action() function teleportScroll.onUse(player, item, fromPos, target, toPos, isHotkey) local playerPos = player:getPosition() local tile = Tile(playerPos) if not tile or not tile:hasFlag(TILESTATE_PROTECTIONZONE) then player:sendCancelMessage("You can use only in pz.") return true end local town = player:getTown() local templePos = town and town:getTemplePosition() or Town(1):getTemplePosition() playerPos:sendMagicEffect(CONST_ME_POFF) player:teleportTo(templePos) templePos:sendMagicEffect(CONST_ME_TELEPORT) item:transform(item:getId(), item:getCharges() -1) return true end teleportScroll:id(1949) teleportScroll:register() Adiciona ao seu item (items.xml) para mostrar as charges na descrição: <attribute key="charges" value="100" /> <attribute key="showcharges" value="1" /> 1 Elver Maguh reacted to this Share this post Link to post