Script em Português
Leia ele que saberá onde mudar
Creaturescripts/scripts/tpscroll.lua:
local t = {
["Local"] = {pos = {x = posx, y = posy, z = posz}, storage = 1337, time = 30},
["Local2"] = {pos = {x = posx, y = posy, z = posz}, storage = 1338, time = 30},
}
function onTextEdit(cid, item, newText)
if item.itemid == IDITEM then
if isPlayerPzLocked(cid) then
doCreatureSay(cid, "Voce esta em battle!", TALKTYPE_MONSTER)
return false
end
if isInArray({'locais', 'lugares', 'lugar'}, newText) then
local i = ''
for text, x in pairs(t) do
i = i .. "\n[" .. text .. "]"
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Locais de TP: " .. i)
else
local p = t[newText]
if not p then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Invalid location")
return false
end
local st = p.storage
if getCreatureStorage(cid, st) > os.time() then
doCreatureSay(cid, "Espere " .. getCreatureStorage(cid, st) - os.time() .. ' segundos' .. (getCreatureStorage(cid, st) - os.time() == 1 and "" or "s") .. "para viajar novamente.", TALKTYPE_MONSTER)
return true
end
local ti = p.time
local pos = p.pos
doTeleportThing(cid, pos, true)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
doCreatureSetStorage(cid, st, os.time() + ti)
doCreatureSay(cid, "MENSAGEM QUANDO FOR TP!", TALKTYPE_MONSTER)
end
end
return true
em creaturescripts.xml coloque isso:
<event type="textedit" name="teleportpaper" event="script" value="tpscroll.lua"/>


info
Grupo: Campones
Registrado: 23/12/08
Posts: 41
Reputação: +4
Gênero: Masculino
Char no Tibia: Aura mage naruto
nao sei se eu estou postando no lugar certo mas..queria ajuda com scroll q teleporta o player para a cidade q ele escolher por comando para tfs 1.0