tente ae. data/talkactions/scripts copie um arquivo e renomeie para eventon. e adcione isso dentro.
function onSay(cid, words, param)
if not param or param == "" then
doPlayerSendTextMessage(cid, 20, "Use como parâmetro, {on} ou {off}!")
return true
end
if param == "on" then
if getGlobalStorageValue(21479) >= 1 then
doPlayerSendTextMessage(cid, 20, "O evento já está aberto, tente novamente ou mais tarde.")
return true
end
setGlobalStorageValue(21479, 1)
doBroadcastMessage("Evento ABERTO!", 21)
doCreateItem(getThingFromPos({x = 578, y = 79, z = 7, stackpos = 1}).uid, 1)
return true
end
if param == "off" then
if getGlobalStorageValue(21479) < 1 then
doPlayerSendTextMessage(cid, 20, "O evento já está fechado, tente novamente ou mais tarde.")
return true
end
setGlobalStorageValue(21479, -1)
doBroadcastMessage("Evento FECHADO!", 21)
doRemoveItem(1387, 1, {x = 578, y = 79, z = 7})
return true
end
return true
end
aki é a posiçao que removera o teleport.
doRemoveItem(1387, 1, {x = 578, y = 79, z = 7})
aki a posiçao que sera criado.
doCreateItem(getThingFromPos({x = 578, y = 79, z = 7, stackpos = 1}).uid, 1)
talkactions.xml.
<talkaction log="yes" access="4" words="!evento;/evento" event="script" value="eventon.lua"/>






info
Grupo: Visconde
Registrado: 27/10/12
Posts: 323
Reputação: +46
Char no Tibia: Schznister Equilibriun
Fala galera
queria pedir um script para falar /bruxopen
ai vai aparecer um teleport para ir para a cidade dos bruxos.
E quando eu falar /bruxoclose
o teleport fecha.
Esperando resposta.