Auto Loot Rev Script?

jackye

Member
Messages
62
Points
163
Hola Team me gustaria saber si hay algun sistema de autoloot para mi version 12.64 :)


Si alguien lo tubiera pudiera ayudarme con ello?


Gracias
 
Solution
Hola @marcuz,
En teoría existen los scripts autoloot, desde que el tibia 12x implemento el sistema de click para lootear, para los servidores inferiores que no tenían este sistema.
Incorporar un script de auto loot en el 12x, podría dar problemas.

Puedes probar con este script, ya me dices como te va:
Ponlo en data/scripts/eventcallback/monster/auto_loot.lua,

Code:
local ec = EventCallback

ec.onDropLoot = function(self, corpse)
    if configManager.getNumber(configKeys.RATE_LOOT) == 0 then
        return
    end

    local player = Player(corpse:getCorpseOwner())
    local mType = self:getType()
    local monsterLoot = mType:getLoot()
    for i = 1, #monsterLoot do
        local item = corpse:createLootItem(monsterLoot[i])...
Hola @marcuz,
En teoría existen los scripts autoloot, desde que el tibia 12x implemento el sistema de click para lootear, para los servidores inferiores que no tenían este sistema.
Incorporar un script de auto loot en el 12x, podría dar problemas.

Puedes probar con este script, ya me dices como te va:
Ponlo en data/scripts/eventcallback/monster/auto_loot.lua,

Code:
local ec = EventCallback

ec.onDropLoot = function(self, corpse)
    if configManager.getNumber(configKeys.RATE_LOOT) == 0 then
        return
    end

    local player = Player(corpse:getCorpseOwner())
    local mType = self:getType()
    local monsterLoot = mType:getLoot()
    for i = 1, #monsterLoot do
        local item = corpse:createLootItem(monsterLoot[i])
        if not item then
            print('[Warning] DropLoot:', 'Could not add loot item to corpse.')
        end
    end

    if player then
        local autolootContainer = Game.createItem(1987, 1)
        local items = corpse:getItems()
        local item_weight = 0
        local item_slots = 0
       
        for _, item in ipairs(items) do
            if (player:getAutoLootItem(item.itemid)) then
                item_weight = item_weight + item:getWeight()
                item_slots = item_slots + 1
            end
        end
       
        local bp = player:getSlotItem(CONST_SLOT_BACKPACK)
        if bp and bp:getEmptySlots(true) < item_slots then
            player:sendCancelMessage("Autoloot: No space in backpack!")
        elseif player:getFreeCapacity() < (item_weight) then
            player:sendCancelMessage("Autoloot: Not enough cap!")
        else
            for _, item in ipairs(items) do
                if (player:getAutoLootItem(item.itemid)) then
                    item:moveTo(autolootContainer)
                end
            end
        end
       
        local text = ("Loot of %s: %s"):format(mType:getNameDescription(), corpse:getContentDescription())
       
        if (autolootContainer:getSize() > 0) then
            text = text .. ' and ' .. autolootContainer:getContentDescription() .. ' that was auto looted'
            local autolootItems = autolootContainer:getItems()

            for _, item in ipairs(autolootItems) do
                item:moveTo(player)
            end
        end
       
        autolootContainer:remove()

        text = text .. '.'
           
        local party = player:getParty()
        if party then
            party:broadcastPartyLoot(text)
        else
            player:sendTextMessage(MESSAGE_INFO_DESCR, text)
        end
    end
end

ec:register()
 
Solution
Hola Alex

para no crear otro post sabes por que en mi servidor cuando estan en zona de pz y zona de training no sube la stamina?

Tengo ese problema :(
 
Hola Alex

para no crear otro post sabes por que en mi servidor cuando estan en zona de pz y zona de training no sube la stamina?

Tengo ese problema :(
Hola, es la stamina System, no debe de estar configurada en Cada Tile del mapa en las zonas PZ y Training.

Esta posteado el script y como hacerlo en el foro

 
ese lo intente utilizar pero a cada momento sube la stamina hay manera de configurarla? para que suba cada ciertos minutos le quise cambiar pero no funcionaba lo hace cada minuto
 
ese lo intente utilizar pero a cada momento sube la stamina hay manera de configurarla? para que suba cada ciertos minutos le quise cambiar pero no funcionaba lo hace cada minuto
El 90000, son milisegundos lo que corresponde a 1min30, en este caso augmentas el valor, así de fácil.
 
alguien tiene un autoloot para este canary que funcione con otc?

[2025-09-09 23:05:14.717] [info] Canary - Version 2.6.1
[2025-09-09 23:05:14.719] [info] Compiled with Microsoft Visual Studio 1935, on May 31 2023 15:50:39, for platform x64

[2025-09-09 23:05:14.719] [info] Linked with LuaJIT 2.1.0-beta3 for Lua support
[2025-09-09 23:05:14.720] [info] A server developed by: OpenTibiaBR Organization
[2025-09-09 23:05:14.720] [info] Visit our website for updates, support, and resources: https://docs.opentibiabr.com/
[2025-09-09 23:05:14.723] [info] Loading config.lua
[2025-09-09 23:05:14.723] [info] Server protocol: 13.16 and 10x allowed!
 

Tibia Server Lists

#1 FEATURED US Ultron OT 1,497 / 5,000 EXPStages PROTO8.6 ENGINEUltron OT RANK PTS6.6 -9% VOTES0 #2 FEATURED US Nefera 200 / 0 EXPx1 PROTO15.20 ENGINECrystal Server RANK PTS5.9 +26% VOTES0 #3 FEATURED CL ZHYRAVEX 10 / 500 EXPx5 PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.6 +100% VOTES0 #4 FEATURED ES Deixis 0 / 0 EXPStages PROTO1098 ENGINETFS RANK PTS4.1 -58% VOTES1 #5 DE DBU Online 211 / 400 EXP11 PROTO8.6 ENGINETFS 1.0 RANK PTS6.1 +1,000% VOTES0 #6 BR Exordion Legacy 64 / 2,000 EXPx2 PROTO7.72 ENGINEExordion RANK PTS5.6 +3% VOTES0 #7 MX Marlboro War 23 / 300 EXP999 PROTO8.6 ENGINETFS 0.3.7 RANK PTS5.5 -28% VOTES0 #8 BR Tibinha YurOts 31 / 150 EXPStages PROTO7.4 ENGINEYurOTS 1.5 RANK PTS5.5 +0% VOTES0 #9 ES JustRL FreeTC 1530 21 / 250 EXPx2 PROTO15.30 ENGINECrystal Server RANK PTS5.0 +22% VOTES0 #10 US Wiki Ots 57 / 1,000 EXPx9999 PROTOcustom client ENGINETFS 1.4.2 RANK PTS5.0 +100% VOTES0 #11 PL Lubelski 12 / 1,000 EXP200 PROTO7.6 ENGINELubelskiOTS 2.56.0 RANK PTS4.9 -19% VOTES0 #12 BR Turion Server 0 / 2,000 EXPx1 PROTO7.4 ENGINETurion 7.7 Project RANK PTS4.8 +100% VOTES0 #13 PL ReWar 0 / 2,000 EXPcustom PROTO8.6 ENGINEOther RANK PTS4.6 +100% VOTES0 #14 US Halera 0 / 0 EXPStages PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.4 -77% VOTES0 #15 PL Velesta 0 / 1,000 EXP20 PROTO8.0 ENGINETFS 1.4.2 RANK PTS4.4 -100% VOTES0 #16 US BerethaOnline 0 / 2,000 EXPStages PROTO15.0 ENGINETFS RANK PTS4.3 -70% VOTES0 #17 ES Farlia Global 2026 0 / 333 EXPx5 PROTO15.25 ENGINEFarliaServ 1.525 RANK PTS4.0 -100% VOTES0 #18 SE MortalisOT Custom 0 / 500 EXP100x -1.2x PROTO10.98 ENGINEMortalisOT V1 RANK PTS4.0 -100% VOTES0 #19 RU Oldavia | 8.60 0 / 0 EXPx9999 PROTO8.6 ENGINETFS 1.3 RANK PTS3.8 +100% VOTES0 #20 US Rommania 0 / 3,000 EXPstages, x10 PROTO7.4 ENGINETFS 0.4 RANK PTS3.6 -93% VOTES0 #21 MX Maeli 2 / 150 EXPx10 PROTO10.98 ENGINETFS 1.4.2 RANK PTS3.5 -33% VOTES0 #22 ES DarkDragon EXPx10 PROTO8.6 ENGINECanary RANK PTS0.0 0% VOTES0
Top