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,618 / 5,000Online EXPStages PROTO8.6 ENGINEUltron OT RANK PTS5.9 +100% VOTES0 #2 FEATURED US Nefera 0 / 0Offline EXPx1 PROTO15.20 ENGINECrystal Server RANK PTS5.1 +100% VOTES0 #3 FEATURED ES Deixis 0 / 0Offline EXPStages PROTO1098 ENGINETFS RANK PTS3.7 +100% VOTES1 #4 FEATURED ES Maeli 8 / 150Online EXPx10 PROTO10.98 ENGINETFS 1.4.2 RANK PTS3.7 +100% VOTES0 #5 MX Marlboro War 42 / 300Online EXP999 PROTO8.6 ENGINETFS 0.3.7 RANK PTS5.5 -33% VOTES0 #6 BR Tibinha YurOts 18 / 150Online EXPStages PROTO7.4 ENGINEYurOTS 1.5 RANK PTS5.2 -14% VOTES0 #7 US Halera 3 / 0Online EXPStages PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.9 -83% VOTES0 #8 BR Exordion Legacy 54 / 2,000Online EXPx2 PROTO7.72 ENGINEExordion RANK PTS4.9 +100% VOTES0 #9 PL Lubelski 3 / 1,000Online EXP200 PROTO7.6 ENGINELubelskiOTS 2.56.0 RANK PTS4.6 -15% VOTES0 #10 DE DBU Online 0 / 400Online EXP11 PROTO8.6 ENGINETFS 1.0 RANK PTS4.3 +100% VOTES0 #11 PL ReWar 0 / 2,000Online EXPcustom PROTO8.6 ENGINEOther RANK PTS4.3 0% VOTES0 #12 PL Velesta 0 / 1,000Offline EXP20 PROTO8.0 ENGINETFS 1.4.2 RANK PTS4.3 -98% VOTES0 #13 ES JustRL FreeTC 1530 11 / 250Online EXPx2 PROTO15.30 ENGINECrystal Server RANK PTS4.3 +100% VOTES0 #14 ES Farlia Global 2026 0 / 333Offline EXPx5 PROTO15.25 ENGINEFarliaServ 1.525 RANK PTS3.9 -22% VOTES0 #15 SE MortalisOT Custom 0 / 500Offline EXP100x -1.2x PROTO10.98 ENGINEMortalisOT V1 RANK PTS3.8 +100% VOTES0 #16 US Rommania 0 / 500Online EXPstages, x10 PROTO7.4 ENGINETFS 0.4 RANK PTS3.6 +100% VOTES0 #17 US BerethaOnline 2 / 2,000Online EXPStages PROTO10.98 ENGINETFS RANK PTS3.5 +100% VOTES0
Top