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

bug money otx ! help me

tiag0_bn

Well-Known Member
Joined
Dec 8, 2011
Messages
181
Reaction score
50
Good Morning !
I have 1 problem on my server... since the beginning they are making money with level 8... this causes a lot of headache...
if you know any possibility that could be causing this problem, I would be very grateful...

datapack : [7.4][OTX] RLMAP 100%, Port Hope 7.4, POI, Demon OaK, War System, Shared Exp ... (https://otland.net/threads/7-4-otx-rlmap-100-port-hope-7-4-poi-demon-oak-war-system-shared-exp.249949/)


1 - removed all npcs, I have only the main and I even checked...
2 - no money in map
3 - players said it was a level 8 making the bug, so his access is limited to a few places
4 - tested all these problems - in topic All bugs OTSERV - REVELADO ! - (https://tibiaking.com/forums/topic/72588-all-bugs-otserv-revelado/)


Any help is welcome, thanks! but if you have information and don't want to share it, I'm open for business
 
Are you using vocation samples ("Paladin Sample" etc) in your AAC?
yes but i removed bank system... and put in accountmananger set balance(0).....


could it be something else? I'm using this old version that is mentioned in the server pack post
 
since the low level player can make the money bug, I checked your storages and one of them is talkactions exhaustion... (sellhouse, ctrl r, servinfo) could you check my reports?


Lua:
local config = {
    expiration = getConfigValue('reportsExpirationAfterReads')
}

function onSay(cid, words, param, channel)
    if(not checkExhausted(cid, 666, 10)) then
        return false
    end

    local t = { param }
    if(t[1] ~= nil) then
        t = string.explode(param, " ", 1)
    end

    local reportId = tonumber(t[1])
    if(reportId ~= nil) then
        local report = db.getResult("SELECT `r`.*, `p`.`name` AS `player_name` FROM `server_reports` r LEFT JOIN `players` p ON `r`.`player_id` = `p`.`id` WHERE `r`.`id` = " .. reportId)
        if(report:getID() == -1) then
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Report with no. " .. reportId .. " does not exists.")
            return true
        end

        if(t[2] ~= nil and isInArray({"delete", "remove"}, t[2])) then
            db.query("DELETE FROM `server_reports` WHERE `id` = " .. reportId)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Report with no. " .. reportId .. " has been deleted.")

            result:free()
            return true
        end

        db.query("UPDATE `server_reports` SET `reads` = `reads` + 1 WHERE `id` = " .. reportId)
        doPlayerPopupFYI(cid, "Report no. " .. reportId .. "\n\nName: " .. report:getDataString("player_name") .. "\nPosition: [X: " .. report:getDataInt("posx") .. " | Y: " .. report:getDataInt("posy") .. " | Z: " .. report:getDataInt("posz") .. "]\nDate: " .. os.date("%c", report:getDataInt("timestamp")) .. "\nReads: " .. report:getDataInt("reads") .. "\nReport:\n\n" .. report:getDataString("report"))

        report:free()
        return true
    end

    local tmp = ";"
    if(config.expiration > 0) then
        tmp = " WHERE `r`.`reads` < " .. config.expiration .. ";"
    end

    local list = db.getResult("SELECT `r`.`id`, `r`.`player_id`, `p`.`name` AS `player_name` FROM `server_reports` r LEFT JOIN `players` p ON `r`.`player_id` = `p`.`id`" .. tmp)
    if(list:getID() == -1) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "There are no active reports.")
        return true
    end

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Active reports:")
    repeat
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, list:getDataInt("id") .. ", by " .. list:getDataString("player_name") .. ".")
    until not list:next()

    list:free()
    return true
end
 
Last edited:
Back
Top