• 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 War System Error.. DESESPERATE

The extros

New Member
Joined
Jun 28, 2010
Messages
98
Reaction score
1
Hi, I Have War System With Shields, but i´ve a problem... i can be in war system... i look my enemy with red shield and my guild mates with a green shield, but when I logout with any of the guild members and login again the shield has gone, it dissapeared... IM DESESPERATE, idk what to do!
 
I doubt anyone understands what the hell your shields are. I've never heard of red and green shields..

Anyway, you provide WAY too less information if you want help.
You think we can magically see what happens?
 
It's called Emblem though. :)

Do you have everything that's needed for War system in your Datapack folder?

lib/000-constant.lua
Lua:
EMBLEM_NONE = 0
EMBLEM_GREEN = 1
EMBLEM_RED = 2
EMBLEM_BLUE = 3

lib/101-war.lua
Lua:
WAR_GUILD = 0
WAR_ENEMY = 1
WAR_LIMIT = 2


globalevents/scripts/init.lua
Lua:
    db.executeQuery("UPDATE `guild_wars` SET `status` = 5, `end` = " .. os.time() .. " WHERE `status` = 1 AND `end` > 0 AND `end` < " .. os.time() .. ";")
    db.executeQuery("DELETE FROM `guild_wars` WHERE `status` = 0 AND `begin` < " .. (os.time() - 2 * 86400) .. ";")
 
Back
Top