BlackTibia

No estás conectado. Conéctate o registrate

 » Open Tibia » Pedido de Scripts » 

Evento Contar tempo párr

Evento Contar tempo párr

#1 Evento Contar tempo párr el Miér Mayo 13, 2015 10:18 pm

Medeiros


Aprendiz
Hola, amigos que he intentado de muchas maneras quería para mis evenots para contar la cantidad de tiempo es comenzar el evento, parece simple pero no puedo hacer que esta fórmula, querían decir cuánto tiempo queda para tal evento. ja aagradeço a ustedes!

Hello, friends I have tried in many ways wanted for my evenots to tell how much time is to start the event, sounds simple but i can not make this formula, wanted to tell how much time remains for such an event. ja aagradeço to you guys!




#2 Re: Evento Contar tempo párr el Jue Mayo 14, 2015 6:07 pm

Medeiros


Aprendiz
up

#3 Re: Evento Contar tempo párr el Jue Mayo 21, 2015 7:59 pm

Medeiros


Aprendiz
UP :/

#4 Re: Evento Contar tempo párr el Lun Mayo 25, 2015 5:26 am

Vodkart


Scripter
qual o seu sistema de evento?? da para configurar para anunciar até começar o evento

#5 Re: Evento Contar tempo párr el Lun Mayo 25, 2015 5:04 pm

Medeiros


Aprendiz
[Tienes que estar registrado y conectado para ver este vínculo] escribió:qual o seu sistema de evento?? da para configurar para anunciar até começar o evento

Zombie !

Código:
local config = {
   playerCount = 2001, -- Global storage for counting the players left/entered in the event
   zombieCount = 2002, -- Global storage for counting the zombies in the event
   teleportActionId = 2000, -- Action id of the teleport needed for the movement script
   teleportPosition = {x = 3754, y = 32571, z = 6, stackpos = 1}, -- Where the teleport will be created
   teleportToPosition = {x = 3754, y = 32535, z = 7}, -- Where the teleport will take you
   teleportId = 1387, -- Id of the teleport
   timeToStartEvent = 5, -- Minutes, after these minutes the teleport will be removed and the event will be declared started
   timeBetweenSpawns = 20, -- Seconds between each spawn of zombie
   zombieName = "event zombie", -- Name of the zombie that should be summoned
   playersNeededToStartEvent = 10, -- Players needed before the zombies can spawn.
   
   -- Should be the same as in the creaturescript!
   -- The zombies will spawn randomly inside this area
   fromPosition = {x = 3740, y = 32523, z = 7}, -- top left cornor of the playground
   toPosition = {x = 3767, y = 32546, z = 7}, -- bottom right cornor of the playground
   }

function onThink(cid, interval)
print("think")
local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition)
    doItemSetAttribute(tp, "aid", config.teleportActionId)
    doBroadcastMessage("Zombie event starting in " .. config.timeToStartEvent .. " minutes! The teleport will be closed when the event start!", MESSAGE_STATUS_WARNING)
    setGlobalStorageValue(config.playerCount, 0)
    setGlobalStorageValue(config.zombieCount, 0)
    addEvent(startEvent, config.timeToStartEvent * 1000 * 60)
    print(getGlobalStorageValue(2001))
  return true
end

#6 Re: Evento Contar tempo párr el Lun Mayo 25, 2015 8:00 pm

Vodkart


Scripter
Código:
local config = {
  playerCount = 2001, -- Global storage for counting the players left/entered in the event
  zombieCount = 2002, -- Global storage for counting the zombies in the event
  teleportActionId = 2000, -- Action id of the teleport needed for the movement script
  teleportPosition = {x = 3754, y = 32571, z = 6, stackpos = 1}, -- Where the teleport will be created
  teleportToPosition = {x = 3754, y = 32535, z = 7}, -- Where the teleport will take you
  teleportId = 1387, -- Id of the teleport
  timeToStartEvent = 5, -- Minutes, after these minutes the teleport will be removed and the event will be declared started
  timeBetweenSpawns = 20, -- Seconds between each spawn of zombie
  zombieName = "event zombie", -- Name of the zombie that should be summoned
  playersNeededToStartEvent = 10, -- Players needed before the zombies can spawn.
  -- Should be the same as in the creaturescript!
  -- The zombies will spawn randomly inside this area
  fromPosition = {x = 3740, y = 32523, z = 7}, -- top left cornor of the playground
  toPosition = {x = 3767, y = 32546, z = 7}, -- bottom right cornor of the playground
  }
function doStartZumieEvent(delay)
if delay == config.timeToStartEvent then
local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition)
doItemSetAttribute(tp, "aid", config.teleportActionId)
end
if delay > 0 then
doBroadcastMessage("Zombie event starting in " .. delay .. " minutes! The teleport will be closed when the event start!", MESSAGE_STATUS_WARNING)
elseif delay == 0 then
doBroadcastMessage("Zombie event started!!", MESSAGE_STATUS_WARNING)
setGlobalStorageValue(config.playerCount, 0)
setGlobalStorageValue(config.zombieCount, 0)
startEvent()
end
addEvent(doStartZumieEvent, 60000, delay-1)
end
function onThink(cid, interval)
doStartZumieEvent(config.timeToStartEvent )
return true
end

#7 Re: Evento Contar tempo párr el Lun Mayo 25, 2015 8:45 pm

Medeiros


Aprendiz
Eaee mano! Agradeço a força de vontade e a boa intenção mais nao era bem isso. Queria que contace o tempo pra começar o evento em cima da placa entende ? aquelas horas qeu ficam contando em cima da placa se vc tiver um script com base na qeulas horas e poder me passar eu agradeço ai eu estudo e monto aqui pra nao dar trampo pra vc ! valeu mano!

#8 Re: Evento Contar tempo párr el Mar Mayo 26, 2015 9:18 am

Vodkart


Scripter
Código:
local config = {
  playerCount = 2001, -- Global storage for counting the players left/entered in the event
  zombieCount = 2002, -- Global storage for counting the zombies in the event
  teleportActionId = 2000, -- Action id of the teleport needed for the movement script
  teleportPosition = {x = 3754, y = 32571, z = 6, stackpos = 1}, -- Where the teleport will be created
  teleportToPosition = {x = 3754, y = 32535, z = 7}, -- Where the teleport will take you
  teleportId = 1387, -- Id of the teleport
  timeToStartEvent = 5, -- Minutes, after these minutes the teleport will be removed and the event will be declared started
  timeBetweenSpawns = 20, -- Seconds between each spawn of zombie
  zombieName = "event zombie", -- Name of the zombie that should be summoned
  playersNeededToStartEvent = 10, -- Players needed before the zombies can spawn.
  fromPosition = {x = 3740, y = 32523, z = 7}, -- top left cornor of the playground
  toPosition = {x = 3767, y = 32546, z = 7}, -- bottom right cornor of the playground
  }
function doTPSecond(delay)
doSendAnimatedText({x = 3754, y = 32571, z = 6}, delay, math.random(1,140))
if delay ~= 1 then addEvent(doTPSecond, 1000, delay -1) end
end
function onThink(cid, interval)
local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition)
    doItemSetAttribute(tp, "aid", config.teleportActionId)
    doBroadcastMessage("Zombie event starting in " .. config.timeToStartEvent .. " minutes! The teleport will be closed when the event start!", MESSAGE_STATUS_WARNING)
    setGlobalStorageValue(config.playerCount, 0)
    setGlobalStorageValue(config.zombieCount, 0)
    addEvent(startEvent, config.timeToStartEvent * 1000 * 60)
doTPSecond(config.timeToStartEvent*60)
  return true
end

#9 Re: Evento Contar tempo párr Hoy a las 11:21 am

Contenido patrocinado


Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje [Página 1 de 1.]

Permisos de este foro:
No puedes responder a temas en este foro.

 

¿Quién está en línea?

En total hay 0 usuarios en línea: 0 Registrados, 0 Ocultos y 0 Invitado

Usuarios navegando en este foro: Ninguno

Forum Statistics

Nuestros miembros han públicado un total de posts en temas.
Actualmente hay miembros registrados.
Démosle la bienvenida al miembro más reciente,
La mayor cantidad de usuarios en línea ha sido de .