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

Errors in console with Picture and Questions. [Read and help = Repuation Points].

Kaywin

Lord of War WoW/Tibia 2D
Joined
Oct 24, 2008
Messages
541
Reaction score
6
Location
SwedeN
Please help me with this 3 questions I got, reputation points and my respect will be giving!


2wqhibk.jpg
 
Man I dont know Your engine version so mayby try my start.lua

function onStartup()
db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
return true
end
db.executeQuery("DELETE FROM `guild_wars` WHERE `status` = 0 AND `begin` < " .. (os.time() - 2 * 86400) .. ";")
db.executeQuery("UPDATE `guild_wars` SET `status` = 5, `end` = " .. os.time() .. " WHERE `status` = 1 AND `end` > 0 AND `end` < " .. os.time() .. ";")

You just copy/paste all and that is why You have problems.
Do You have good database to good engine version? and good configured config.lua?

Example: Movements...

You have duplicated many positions in server/data/movements/movements.xml or check Your map => find all uniqueids and actionids and check that uniqueids don't repeat. Unique is unique :-)
 
That start.lua diden't work and I checked in Movements.xml and I think there is duplicated id's there but shall i just remove the id's? or change id? or how will I do?
 
i tryed to replace start and record.lua files. but same error coming up!

data/globalevents/scripts/start.lua:onStartup
Description:
data/globalevents/scripts/start.lua:2: attempt to call field 'executeQuery <a nil value>
stack traceback:
data/globalevents/scripts/start.lua:2 in function <data/globalevents/scripts/start.lua:1>
 
Back
Top