Bump again, maybe one day someone can help on this :Sas 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
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.LOL- COuld someone POST a WORKING Zombie event??
[Error - GlobalEvent Interface]
data/globalevents/scripts/zombie/onthink.luanThink
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
/data/creaturesc
[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
[19/08/2016 20:37:37] [Error - GlobalEvent Interface]
[19/08/2016 20:37:37] data/globalevents/scripts/zombie/onthink.luanThink
[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
You haven't pasted every script correctly.HELP!!! HELP!!!!!
:S!!!
[29/9/2015 18:31:30] [Error - GlobalEvent Interface]
[29/9/2015 18:31:30] data/globalevents/scripts/onthink.luanThink
[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
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
yeah, it will be i'v test it xPSorry 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?