mto facil,só usar globalstoragevalue,ai no piso você poe para psssar só se globalstoragevalue for >= 1
ai a talk vc poe pra dar a globalstorage...
flw
movements/script
event_tile.lua
function onStepIn(cid, item, position, fromPosition) if getGlobalStorageValue(78900) <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendCancel(cid, "Desculpe,Mais o evento ainda não começou.") return true end return true end
movements.xml
<movevent type="StepIn" actionid="16421" event="script" value="event_tile.lua"/>
ai você põe actionid 16421 em todos os tiles de "largada"
talkactions/script
evento_onoff.lua
function onSay(cid, words, param)
if words == "/startevent" then
setGlobalStorageValue(78900, 1)
doBroadcastMessage("O evento foi iniciado!.", MESSAGE_STATUS_WARNING)
elseif words == "/stopevent" then
setGlobalStorageValue(78900, 0)
doBroadcastMessage("Evento Finalizado! O Administrador decidiu acabar o evento.", MESSAGE_STATUS_WARNING)
end
return true
end
talkactions.xml
<talkaction log="yes" words="/startevent;/stopevent" access="5" event="script" value="evento_onoff.lua"/>




info
Group: Visconde
Joined: 04/10/08
Posts: 488
Reputation: +304
Tibia Character: Van Zarok
Olá, queria pedir uma action ou até talkaction que fosse no estilo de largada, bom para eventos ou até wars.
Explicando: os players ficariam em um lugar, porém não poderiam atravessar uma "linha", somente poderão quando eu (GOD) ativar ou puxar uma alavanca, iniciando assim um evento, war, etc... e liberando a "linha" para a passagem.
Espero que alguém tenha entendido... Darei REP++ se alguém me ajudar!