• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Zombie event - NEW version, bug free, updated

What's the equivalent for "statschange" on TFS 1.0? Or what can be use as a replacement?
 
as explained in the post

"Need zombie "survival" so that you must fight zombies and survive X amount of waves then all players get prizes who live"

not get kicked after attack. preferably have like 3 chances then you get kicked if you die 3 times but that isnt a NEED but the other requirement is and I cant seem to get it to work
Bump again, maybe one day someone can help on this :S
 
LOL- COuld someone POST a WORKING Zombie event??
I have a working event just not as I want it to work. In the one I have you die once and you loose. I want one that you must survive many waves, have 3 lives and all players who survive get prizes. No one seems to want to help create it and I have no idea how.
 
How i do to fix this?

[Error - GlobalEvent Interface]
data/globalevents/scripts/zombie/onthink.lua:eek:nThink
Description:
data/lib/zombie_event.lua:123: attempt to index local 'pir' (a number value)
stack traceback:
data/lib/zombie_event.lua:123: in function 'spawnNewZombie'
data/globalevents/scripts/zombie/onthink.lua:6: in function <data/globalevents/scripts/zombie/onthink.lua:1>
[Error - GlobalEvents::think] Couldn't execute event: ZombieGlobalThink
 
Does someone know how to make this run automatic and how come the Event does not remove Event Zombies when it is over? i am using 0.3.6pl
 
Hello,
I have problem with this system. He is great working, but when I start event - two players joined - is OK, but when i second start event - then 1 player joined and script teleport him to zombies, and when second player go to tp, then teleport not working -> player added to event ant event started , but this player not teleport to zombies arena ;/ when i restart my tfs - full working.
Pls help me!
 
How can i delete this protection:
commands are anti-idiot protected, only way to destroy script is to teleport player (by gm command) from arena, but script will fix all values after server restart
??
 
HELP!!! HELP!!!!!
:S!!!

[29/9/2015 18:31:30] [Error - GlobalEvent Interface]
[29/9/2015 18:31:30] data/globalevents/scripts/onthink.lua:eek:nThink
[29/9/2015 18:31:30] Description:
[29/9/2015 18:31:30] data/lib/zombie_event.lua:105: bad argument #2 to 'random' (interval is empty)
[29/9/2015 18:31:30] stack traceback:
[29/9/2015 18:31:30] [C]: in function 'random'
[29/9/2015 18:31:31] data/lib/zombie_event.lua:105: in function 'spawnNewZombie'
[29/9/2015 18:31:31] data/globalevents/scripts/onthink.lua:6: in function <data/globalevents/scripts/onthink.lua:1>
[29/9/2015 18:31:31] [Error - GlobalEvents::think] Couldn't execute event: ZombieGlobalThink
 
help pleas :?

Code:
[10/11/2015 20:27:54] [Error - GlobalEvent Interface] 
[10/11/2015 20:27:54] data/globalevents/scripts/zombie/onthink.lua:onThink
[10/11/2015 20:27:54] Description: 
[10/11/2015 20:27:54] data/lib/zombie_event.lua:123: attempt to index local 'pir' (a number value)
[10/11/2015 20:27:54] stack traceback:
[10/11/2015 20:27:54]     data/lib/zombie_event.lua:123: in function 'spawnNewZombie'
[10/11/2015 20:27:54]     data/globalevents/scripts/zombie/onthink.lua:6: in function <data/globalevents/scripts/zombie/onthink.lua:1>
[10/11/2015 20:27:54] [Error - GlobalEvents::think] Couldn't execute event: ZombieGlobalThink
 
TFS 03.6 [8.6 Tibia]
I do not think it is bug free script:
[19/08/2016 20:37:37] [Error - GlobalEvent Interface]
[19/08/2016 20:37:37] data/globalevents/scripts/zombie/onthink.lua:eek:nThink
[19/08/2016 20:37:38] Description:
[19/08/2016 20:37:38] data/lib/zombie_event.lua:171: attempt to index local 'pir' (a number value)
[19/08/2016 20:37:38] stack traceback:
[19/08/2016 20:37:38] data/lib/zombie_event.lua:171: in function 'spawnNewZombie'
[19/08/2016 20:37:38] data/globalevents/scripts/zombie/onthink.lua:6: in function <data/globalevents/scripts/zombie/onthink.lua:1>
[19/08/2016 20:37:38] [Error - GlobalEvents::think] Couldn't execute event: ZombieGlobalThink
 
HELP!!! HELP!!!!!
:S!!!

[29/9/2015 18:31:30] [Error - GlobalEvent Interface]
[29/9/2015 18:31:30] data/globalevents/scripts/onthink.lua:eek:nThink
[29/9/2015 18:31:30] Description:
[29/9/2015 18:31:30] data/lib/zombie_event.lua:105: bad argument #2 to 'random' (interval is empty)
[29/9/2015 18:31:30] stack traceback:
[29/9/2015 18:31:30] [C]: in function 'random'
[29/9/2015 18:31:31] data/lib/zombie_event.lua:105: in function 'spawnNewZombie'
[29/9/2015 18:31:31] data/globalevents/scripts/onthink.lua:6: in function <data/globalevents/scripts/onthink.lua:1>
[29/9/2015 18:31:31] [Error - GlobalEvents::think] Couldn't execute event: ZombieGlobalThink
You haven't pasted every script correctly.
 
help??
Cannot start Zombies event. There is no players on arena.
 
When a player dies it says Zombie arena event finished! No one win?!?!?! WTF! <--- help??
 
Sorry for reliving a past issue, but will this zombie system be able to link with this script?


Lua:
local tp = {
    itemID = 1387, -- Id del objeto que aparecerá haciendo de teleport.
    createPos = {x = 1200, y = 1135, z = 7}, -- Coordenada del lugar donde será creado el cual.
    takePlayer = {x = 232, y = 1526, z = 7}, -- Coordenada del lugar donde llevará a los jugadores.
    belero = { -- Efecto Mágico que aparecerá en el portal al...
      CONST_ME_TELEPORT, -- ...abrirse.
      CONST_ME_LOSEENERGY, -- ...cerrarse.
    },
    timePortal = { -- Tiempo que el portal permanecerá...
      opens = 10, -- ...abierto. (contado en Minutos)
      close = 18, -- ...cerrado. (contado en Horas)
    },
    countColor = COLOR_RED, -- Color de la cuenta atrás que transcurrirá hasta abrirse.

    msgabierto = "El Portal del Evento Run esta abierto!!!!, Corre que tienes 1 minuto para entrar!!",
    msgcerrado = "El evento run se acaba de cerrar!, se volvera abrir dentro de 3 horas.",
  }

function AnimatedTime(timeDiff, pos, color)
    if isNumber(timeDiff) then
      local dateFormat = {
        {"h", timeDiff / 60 / 60 % 24},
        {"m", timeDiff / 60 % 60},
        {"s", timeDiff % 60}
      }

      local out = {}
        for k, t in ipairs(dateFormat) do
          local v = math.floor(t[2])
            if(v > 0) then
                table.insert(out, v .. t[1])
            end
        end
      local ret = table.concat(out)

      return doSendAnimatedText(pos, ret, color)
    end
end

function CloseTP()
  local t = getTileItemById(tp.createPos, tp.itemID).uid
    if t > 0 then
        doRemoveItem(t)
        doSendMagicEffect (tp.createPos, tp.belero[2])
        doBroadcastMessage(tp.msgcerrado, MESSAGE_EVENT_ADVANCE)
    end

    for i = 0, tp.timePortal.close * 10 * 60 do
      local c = tp.timePortal.close * 10 * 60 - i
        addEvent(AnimatedTime, i * 1000, tostring(c), tp.createPos, tp.countColor)
    end
end

function OpenTP()
    doSendMagicEffect (tp.createPos, tp.belero[1])
    doCreateTeleport (tp.itemID, tp.takePlayer, tp.createPos)
    doBroadcastMessage(tp.msgabierto, MESSAGE_EVENT_ADVANCE)

    for i = 0, tp.timePortal.opens * 10 do
      local c = tp.timePortal.opens * 10 - i
        addEvent(AnimatedTime, i * 1000, tostring(c), tp.createPos, tp.countColor)
    end
    addEvent (CloseTP, tp.timePortal.opens * 10 * 1000)

    addEvent (OpenTP, (tp.timePortal.close * 10 * 60 * 1000) + (tp.timePortal.opens * 10 * 1000))
  return true
end

function onStartup()
    for i = 0, tp.timePortal.close * 10 * 60 do
      local c = tp.timePortal.close * 10 * 60 - i
        addEvent(AnimatedTime, i * 1000, tostring(c), tp.createPos, tp.countColor)
    end

    addEvent(OpenTP, tp.timePortal.close * 10 * 60 * 1000)
end

What this script does is activate it for a certain time
will it be possible?
 
Sorry for reliving a past issue, but will this zombie system be able to link with this script?


Lua:
local tp = {
    itemID = 1387, -- Id del objeto que aparecerá haciendo de teleport.
    createPos = {x = 1200, y = 1135, z = 7}, -- Coordenada del lugar donde será creado el cual.
    takePlayer = {x = 232, y = 1526, z = 7}, -- Coordenada del lugar donde llevará a los jugadores.
    belero = { -- Efecto Mágico que aparecerá en el portal al...
      CONST_ME_TELEPORT, -- ...abrirse.
      CONST_ME_LOSEENERGY, -- ...cerrarse.
    },
    timePortal = { -- Tiempo que el portal permanecerá...
      opens = 10, -- ...abierto. (contado en Minutos)
      close = 18, -- ...cerrado. (contado en Horas)
    },
    countColor = COLOR_RED, -- Color de la cuenta atrás que transcurrirá hasta abrirse.

    msgabierto = "El Portal del Evento Run esta abierto!!!!, Corre que tienes 1 minuto para entrar!!",
    msgcerrado = "El evento run se acaba de cerrar!, se volvera abrir dentro de 3 horas.",
  }

function AnimatedTime(timeDiff, pos, color)
    if isNumber(timeDiff) then
      local dateFormat = {
        {"h", timeDiff / 60 / 60 % 24},
        {"m", timeDiff / 60 % 60},
        {"s", timeDiff % 60}
      }

      local out = {}
        for k, t in ipairs(dateFormat) do
          local v = math.floor(t[2])
            if(v > 0) then
                table.insert(out, v .. t[1])
            end
        end
      local ret = table.concat(out)

      return doSendAnimatedText(pos, ret, color)
    end
end

function CloseTP()
  local t = getTileItemById(tp.createPos, tp.itemID).uid
    if t > 0 then
        doRemoveItem(t)
        doSendMagicEffect (tp.createPos, tp.belero[2])
        doBroadcastMessage(tp.msgcerrado, MESSAGE_EVENT_ADVANCE)
    end

    for i = 0, tp.timePortal.close * 10 * 60 do
      local c = tp.timePortal.close * 10 * 60 - i
        addEvent(AnimatedTime, i * 1000, tostring(c), tp.createPos, tp.countColor)
    end
end

function OpenTP()
    doSendMagicEffect (tp.createPos, tp.belero[1])
    doCreateTeleport (tp.itemID, tp.takePlayer, tp.createPos)
    doBroadcastMessage(tp.msgabierto, MESSAGE_EVENT_ADVANCE)

    for i = 0, tp.timePortal.opens * 10 do
      local c = tp.timePortal.opens * 10 - i
        addEvent(AnimatedTime, i * 1000, tostring(c), tp.createPos, tp.countColor)
    end
    addEvent (CloseTP, tp.timePortal.opens * 10 * 1000)

    addEvent (OpenTP, (tp.timePortal.close * 10 * 60 * 1000) + (tp.timePortal.opens * 10 * 1000))
  return true
end

function onStartup()
    for i = 0, tp.timePortal.close * 10 * 60 do
      local c = tp.timePortal.close * 10 * 60 - i
        addEvent(AnimatedTime, i * 1000, tostring(c), tp.createPos, tp.countColor)
    end

    addEvent(OpenTP, tp.timePortal.close * 10 * 60 * 1000)
end

What this script does is activate it for a certain time
will it be possible?
yeah, it will be i'v test it xP
 
Back
Top