• 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!

Lua timer() function?

You could use addEvent(callback, delay, parameter)
For example;
LUA:
addEvent(doSummonCreature("War Golem", {x=1000,y=1000,z=7}), 10000)

That would summon a War Golem in 10 seconds on coordinates "X 1000 Y 1000 Z 7".

For repeating/looping, you could create a function which would add that same event over and over again...
LUA:
function summonWarGolems()
doSummonCreature("War Golem", {x=1000,y=1000,z=7}
doSummonCreature("War Golem", {x=1000,y=1000,z=7}
addEvent(summonWarGolems(), 10000)
end
That would summon 2 wor golems every 10 seconds, infinitely.
 
Back
Top