• 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

When players go to the event a it summons a lot of zombies and when players die the event still run.
Change:
<globalevent name="ZombieGlobalThink" interval="5" event="script" value="zombie/onthink.lua"/> for
<globalevent name="ZombieGlobalThink" interval="10000" event="script" value="zombie/onthink.lua"/>
Or change '10000' for other number.
 
I wanna know , how i can make , that it give random rewards :/
 
I did not test it on 0.4
I've checked tfs 0.4 sources. 'interval' in 0.4 is in miliseconds (in 0.3 is in seconds), so you must change in data/globalevents/globalevents.xml:
PHP:
interval="5"
to:
PHP:
interval="5000"
because now it spawn zombie every 0.005 second ;)

----------
I will update first post.
 
Thank you it works perfectly, i just wondered if u cud do it so it starts automaticly each 1 hour and when people get teleported and zombies start spawning, when somebody tries walkin in tp it says Event is not opened or w/e
 
How i can make that it give a random reward?
As items (ids) = 6119 , 6433 or 6319 ( that are only examples )

Code:
    local items = {
                    [1] = {xxxx, 1},
                    [2] = {xxxx, 1},
                    [3] = {xxxx, 1}
            }
            oneitem = math.random(1, #items)
            doPlayerAddItem(winner, items[oneitem][1], items[oneitem][2], true)
 
Hi there!
My friend is trying to use this script, but something is wrong, perhaps, weird about it.
When the player is on the arena, it automaticlly kicks him out.

His tfs version is 0.3.6. I was trying to help, but I just can't do anything about it.

Hope you help ;)
 
fail here

Zombie Arena Event teleport is opened. We are waiting for -1 players to start.


plx man help me add msn [email protected] no english:( plx fast

waiting your help
 
[04/09/2011 03:29:53] [Error - LuaScriptInterface::loadFile] data/globalevents/scripts/onstartup.lua:11: '<eof>' expected near 'end'
[04/09/2011 03:29:53] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/onstartup.lua)
[04/09/2011 03:29:53] data/globalevents/scripts/onstartup.lua:11: '<eof>' expected near 'end'
ERROR
 
[04/09/2011 03:29:53] [Error - LuaScriptInterface::loadFile] data/globalevents/scripts/onstartup.lua:11: '<eof>' expected near 'end'
[04/09/2011 03:29:53] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/onstartup.lua)
[04/09/2011 03:29:53] data/globalevents/scripts/onstartup.lua:11: '<eof>' expected near 'end'
ERROR
You failed at copying & pasting, try to do it again :p
 
error
[26/09/2011 15:18:14] [Error - GlobalEvent Interface]
[26/09/2011 15:18:14] In a timer event called from:
[26/09/2011 15:18:14] data/globalevents/scripts/zombieevent/globalevent.lua:eek:nThink
[26/09/2011 15:18:14] Description:
[26/09/2011 15:18:14] (luaGetThingFromPos) Tile not found
[26/09/2011 15:18:14] > Broadcasted message: "The Zombie event could not start because of to few players participating.
[26/09/2011 15:18:14] At least 5 players is needed!".
 
Serioulsy I do not get enterPosition?
Should i enter the position there the teleport are or there teleport pos get you. Anyway so have I tested both and pos arena are fine. There are NO bugs in Console, its seemse fine BUT it dosent react when player gets to arena?
Using 0.4
 
Back
Top