i need a auto start for http://otland.net/threads/zombie-event-new-version-bug-free-updated.128664/, on page 2 the owned posted a auto start but that dont found if someone can help me
function onThink(interval, lastExecution)
local players_on_arena_count = #getZombiesEventPlayers()
local function start()
setZombiesEventPlayersLimit(players_on_arena_count )
addZombiesEventBlockEnterPosition()
doSetStorage(ZE_STATUS, 2)
doBroadcastMessage("Zombie Arena Event started")
return true
end
setZombiesEventPlayersLimit(10)
doBroadcastMessage("Zombie Event Is Waiting For " .. getZombiesEventPlayersLimit() - players_on_arena_count .. " To Join.Zombie Will Start In 5 Minutes")
removeZombiesEventBlockEnterPosition()
addEvent(start,5*60*1000)
doSetStorage(ZE_STATUS, 1)
return true
end
<globalevent name="zombiestart" interval="7200000" script="zombiestart.lua"/>
<globalevent name="zombiestart" interval="7200" script="zombiestart.lua"/>
Create new .lua in globalevent and add this
Code:function onThink(interval, lastExecution) local players_on_arena_count = #getZombiesEventPlayers() local function start() setZombiesEventPlayersLimit(players_on_arena_count ) addZombiesEventBlockEnterPosition() doSetStorage(ZE_STATUS, 2) doBroadcastMessage("Zombie Arena Event started") return true end setZombiesEventPlayersLimit(10) doBroadcastMessage("Zombie Event Is Waiting For " .. getZombiesEventPlayersLimit() - players_on_arena_count .. " To Join.Zombie Will Start In 5 Minutes") removeZombiesEventBlockEnterPosition() addEvent(start,5*60*1000) doSetStorage(ZE_STATUS, 1) return true end
and in globalevents.xml
0.4
0.3.6Code:<globalevent name="zombiestart" interval="7200000" script="zombiestart.lua"/>
Code:<globalevent name="zombiestart" interval="7200" script="zombiestart.lua"/>
function onThink(interval, lastExecution)
local players_on_arena_count = #getZombiesEventPlayers()
local function start()
setZombiesEventPlayersLimit(players_on_arena_count )
addZombiesEventBlockEnterPosition()
doSetStorage(ZE_STATUS, 2)
doBroadcastMessage("Zombie Arena Event started")
return true
end
setZombiesEventPlayersLimit(ZE_DEFAULT_NUMBER_OF_PLAYERS)
doBroadcastMessage("Zombie Event Is Waiting For " .. getZombiesEventPlayersLimit() - players_on_arena_count .. " To Join.Zombie Will Start In 5 Minutes")
removeZombiesEventBlockEnterPosition()
addEvent(start,5*60*1000)
doSetStorage(ZE_STATUS, 1)
return true
end
Code:function onThink(interval, lastExecution) local players_on_arena_count = #getZombiesEventPlayers() local function start() setZombiesEventPlayersLimit(players_on_arena_count ) addZombiesEventBlockEnterPosition() doSetStorage(ZE_STATUS, 2) doBroadcastMessage("Zombie Arena Event started") return true end setZombiesEventPlayersLimit(ZE_DEFAULT_NUMBER_OF_PLAYERS) doBroadcastMessage("Zombie Event Is Waiting For " .. getZombiesEventPlayersLimit() - players_on_arena_count .. " To Join.Zombie Will Start In 5 Minutes") removeZombiesEventBlockEnterPosition() addEvent(start,5*60*1000) doSetStorage(ZE_STATUS, 1) return true end
function onThink(interval, lastExecution)
local players_on_arena_count = #getZombiesEventPlayers()
local function start()
if players_on_arena_count <= 1 then
doBroadcastMessage("Zombie Couldn't Start Because there was few numbers ona rena")
doSetStorage(ZE_STATUS, 0)
addZombiesEventBlockEnterPosition()
return true
end
setZombiesEventPlayersLimit(players_on_arena_count)
addZombiesEventBlockEnterPosition()
doSetStorage(ZE_STATUS, 2)
doBroadcastMessage("Zombie Arena Event started")
return true
end
setZombiesEventPlayersLimit(5)
doBroadcastMessage("Zombie Event Is Waiting For 5 Players To Join.Zombie Will Start In 5 Minutes")
removeZombiesEventBlockEnterPosition()
addEvent(start,5*60*1000)
doSetStorage(ZE_STATUS, 1)
return true
end
<globalevent name="zombiestart" interval="10800" script="zombiestart.lua"/>