gostaria de um script para uma quest = anihi + que quando um time de 4 players entra
só poderia entrar + 4 depois de 10 min
yourots versao 8.6
vlw
gostaria de um script para uma quest = anihi + que quando um time de 4 players entra
só poderia entrar + 4 depois de 10 min
yourots versao 8.6
vlw
function onUse(cid, item, frompos, item2, topos)
local pos = {
{x=, y=, z=, stackpos=253},
{x=, y=, z=, stackpos=253},
{x=, y=, z=, stackpos=253},
{x=, y=, z=, stackpos=253},
}
local newpos = {
{x=, y=, z=, stackpos=253},
{x=, y=, z=, stackpos=253},
{x=, y=, z=, stackpos=253},
{x=, y=, z=, stackpos=253},
}
local thing = {
getThingFromPos(pos[1]).uid,
getThingFromPos(pos[2]).uid,
getThingFromPos(pos[3]).uid,
getThingFromPos(pos[4]).uid,
}
local tempo = ???
if getGlobalStorageValue(18389) - os.time() <= 0 then
if isPlayer(thing[1]) and isPlayer(thing[2]) and isPlayer(thing[3]) and isPlayer(thing[4]) then
doTeleportThing(thing[1], newpos[1])
doTeleportThing(thing[2], newpos[2])
doTeleportThing(thing[3], newpos[3])
doTeleportThing(thing[4], newpos[4])
setGlobalStorageValue(18389, tempo*60 + os.time())
end
return doPlayerSendCancel(cid, "Você precisa de 4 jogadores para fazer esta quest.")
end
return doPlayerSendCancel(cid, "Você precisa esperar "..getGlobalStorageValue(18389) - os.time().." segundos para ir na anihilator.")
end
Azul: Coloque o tempo em minutos.
Vermelho: Posição onde eles devem estar para serem teleportados.
Laranja: Posição para qual eles vão ser teleportados.
Oie :D