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

Lua It can get lag?

login12

void newbie scripter()
Joined
Feb 26, 2011
Messages
181
Reaction score
31
Location
Brazil
This is script is for check if guild is on war in x "time" and set for end.
my doubt is it can get lag in server ?

<!-- War System -->
<globalevent name="war" interval="3000000" script="warEnd.lua"/>

Code:
function onThink(interval)
    db.query("UPDATE `guild_wars` SET `status` = 4, `ended` = " .. os.time() .. " WHERE `status` = 1 AND (`started` + 3600 * 2) < " .. os.time())
end

i use tfs 1.0
 
Insert a lot of rows to the table guild_wars, and you'll see whether it lags the server or not. :p
 
Back
Top