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

Create table

Where did you find the script? The query for the table is probable added there aswell.

If you don't have events that use this table, you can also just remove that achiement.
Code:
if getCreatureStorage(cid, achievements['lucker'].doneStorage) < 1 then
     local q = db.getResult("SELECT COUNT(*) as c FROM events WHERE winner_name='"..getPlayerName(cid).."'")
     if q:getID() ~= -1 then
         if q:getDataInt("c") >= achievements['lucker'].wins then
             doCreatureSetStorage(cid, achievements['lucker'].doneStorage, 1)
             doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'You\'ve won 2 times in events and you obtain new [lucker] achievement.')
         end
         q:free()
     end
end
 
Back
Top