• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Looking for os.time tutorial

abel11

New Member
Joined
Jun 9, 2009
Messages
3
Reaction score
0
Location
Poland/Toruń
Hello, im looking for any lua tutorial about wait instruction, its mean time instructions used as global.

Im trying to make quest where You need to use item, after that item will summon few monsters in 10-20 waves but I want make it automaticaly. One use and after that item disappear (like a trap) but monsters are still summoned with period like 30 sec.

Use item -> send first wave -> remove item -> wait ~30 sec -> send next wave -> wait ~30 sec etc. until send last wave.

Ps. it will be really helpfull if anyone will attach some short examples.


I know my english is baaad, sory for that.
 
thanks a lot, I will try this way.

Edit.
One more question, did i can use addEvent not in loop for make 10+ waves, simply by set:
addEvent(wave, timeToPass * 1000)
addEvent(wave, timeToPass + 30 * 1000)
addEvent(wave, timeToPass + 60 * 1000)
etc ??
when i make some bug in script loop hangs serwer a bit, its make me nerwous. :P
 
Last edited:
Back
Top