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

Solved Getting db in lua

Faraonekkk

New Member
Joined
Feb 15, 2010
Messages
686
Reaction score
4
Hi,

if (getCreatureName(target) == "boss") then
db.query('UPDATE `monsterkills` SET `deaths` = `' .. loldwa .. '` + 1 WHERE `id` = 1')
end

i need to get actually table "deaths" to count it + 1
how can i do that in lua?
 
db.query('UPDATE `monsterkills` SET `deaths` = `deaths` + 1 WHERE `id` = 1')
 
Back
Top