• TibiaFace

    Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...

    .
    demo menumenu

    Afiliados



    Votar:

    Error consola Autoloot

    Compartir:

    Ver el tema anterior Ver el tema siguiente Ir abajo  Mensaje (Página 1 de 1.)

    1Error consola Autoloot Empty Error consola Autoloot Sáb Mayo 22, 2021 2:35 pm

    ioke

    ioke
    Miembro
    Miembro
    Descripcion escribió:hola pueden ayudarme con un mod que tengo de autoloot el caso es que el mod funciona muy bien pero en la consola aparecen errores.

    Mod autoloot

    Código:
    <?xml version="1.0" encoding="ISO-8859-1"?> 
    <mod name="Autoloot Revolution BT" version="1.0" author="GOD Ioke" contact="none.com" enabled="yes">
    <config name="AutolootRevolutionBT">
    <![CDATA[
    ---@ You configurations:
    autolootConfig = {}
    autolootConfig.storageItems = 27000
    autolootConfig.blockMonsters = {}
    autolootConfig.goldToBank = true
    autolootConfig.goldBankAnimation = true
    autolootConfig.distanceLooting = 7
    autolootConfig.freeSlots = 3
    autolootConfig.premiumSlots = 6
    autolootConfig.vipStorage = {0,0}
    autolootConfig.playerLevel = 8
    autolootConfig.corpseEffect = CONST_ME_NONE
    autolootConfig.golds = {2148, 2152, 2160}
    autolootConfig.tittle = "Welcomen to Autoloot System\nCreate by GOD Ioke\n\nOptions: help, clear, add, remove\n"
    autolootConfig.notHaveCapDrop = false
    ---@ getPlayerPremiumEnabled(cid)
    --# Return boolean
    --# Create by GOD Ioke
    function getPlayerPremiumEnabled(cid)
        if getConfigValue("freePremium") then
            return true
        end
        return getPlayerPremiumDays(cid) > 0
    end
    ---@ getPlayerAutolootVip(cid)
    --# Return boolean
    --# Create by GOD Ioke
    function getPlayerAutolootVip(cid)
        if autolootConfig.vipStorage[1] > 0 then
            if autolootConfig.vipStorage[2] > 0 then
                return getPlayerStorageValue(cid, autolootConfig.vipStorage[1]) == autolootConfig.vipStorage[2]
            else
                return getPlayerStorageValue(cid, autolootConfig.vipStorage[1]) >= os.time()
            end
        end
        return true
    end
    ---@ getPositionDistance(position, positionEx)
    --# Return number
    --# Create by GOD Ioke
    function getPositionDistance(position, positionEx)
        return math.max(math.max(math.abs(position.x - positionEx.x), math.abs(position.y - positionEx.y)), math.abs(position.z - positionEx.z))
    end
    ---@ getPositionCorpse(pos [, itemid])
    --# Return thing/nil
    --# Create by GOD Ioke
    function getPositionCorpse(pos, itemid)
        local tile = getTileInfo(pos)
        for index = 0, tile.things do
            pos.stackpos = index
            local corpse = getThingFromPos(pos, false)
            if corpse.itemid > 1 and isCorpse(corpse.uid) then
                local itemid = itemid or corpse.itemid
                if corpse.itemid == itemid then
                    return corpse
                end
            end
        end
    end
    ---@ getContainerItems(uid [, array])
    --# Return array
    --# Create by GOD Ioke
    function getContainerItems(container, array, haveCap)
        array = array or {}
        haveCap = haveCap or false
        if not isContainer(container.uid) or getContainerSize(container.uid) == 0 then
            array[#array +1] = container
        else
            local size = getContainerSize(container.uid)
            haveCap = (getContainerCap(container.uid) -size) > 0
            for slot = 0, (size -1) do
                local item = getContainerItem(container.uid, slot)
                if item.itemid > 1 then
                    getContainerItems(item, array, haveCap)
                end
            end
        end
        return #array >= 1 and array, haveCap
    end
    ---@ getContainerItemsById(array/uid, itemid)
    --# Return array
    --# Create by GOD Ioke
    function getContainerItemsById(container, itemid)
        local founds = {}
        local items = not container.uid and container or getContainerItems(container)
        for index, item in pairs(items) do
            if item.itemid == itemid then
                founds[#founds +1] = item
            end
        end
        return #founds >= 1 and founds
    end
    ---@ doPlayerAddItemStackable(cid, itemid, count)
    --# Return boolean
    --# Create by GOD Ioke
    function doPlayerAddItemStackable(cid, itemid, count)
        local container = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)
        if container.itemid > 1 then
            local items = getContainerItemsById(container, itemid)
            if not items then
                return doPlayerAddItem(cid, itemid, count)
            else
                local piles = #items
                for index, item in pairs(items) do
                    if item.type < 100 then
                        local sum = item.type + count
                        local result = doTransformItem(item.uid, itemid, sum)
                        if sum <= 100 then
                            return result
                        else
                            return doPlayerAddItem(cid, itemid, sum - 100)
                        end
                    else
                        piles = piles - 1
                        if piles == 0 then
                            return doPlayerAddItem(cid, itemid, count)
                        end
                    end
                end
            end
        end
        return false
    end
    ---@ getContainerMoneys(items)
    --# Return array/false
    --# Create by GOD Ioke
    function getContainerMoneys(items)
        local moneys = {}
        for slot, item in pairs(items) do
            if isInArray(autolootConfig.golds, item.itemid) then
                moneys[#moneys +1] = item
            end
        end
        return #moneys > 0 and moneys
    end
    ---@ doCorpseAutoloot(cid, pos itemid)
    --# Return boolean/nil
    --# Create by GOD Ioke
    function doCorpseAutoloot(cid, pos, itemid, moneys)
        if not getPlayerAutolootVip(cid) or getPositionDistance(getThingPosition(cid), pos) > autolootConfig.distanceLooting
        or getPlayerLevel(cid) < autolootConfig.playerLevel then
            return nil
        end
        local corpse = getPositionCorpse(pos, itemid)
        if corpse and isContainer(corpse.uid) then
            local items, haveCap = moneys or getContainerItems(corpse)
            local sendEffect = false
            if items then
                for slot, item in pairs(items) do
                    if isInArray(getPlayerAutolootItems(cid), item.itemid) then
                        sendEffect = true
                        local removeIt = false
                        local goldToBank = autolootConfig.goldToBank and isInArray(autolootConfig.golds, item.itemid)
                        if not goldToBank then
                            if not haveCap and autolootConfig.notHaveCapDrop then
                                return doCorpseAutoloot(cid, pos, itemid, getContainerMoneys(items))
                            end
                            if isItemStackable(item.itemid) then
                                removeIt = doPlayerAddItemStackable(cid, item.itemid, item.type)
                            else
                                removeIt = doPlayerAddItem(cid, item.itemid)
                            end
                        else
                            local add = (getItemInfo(item.itemid).worth * item.type)
                            removeIt = doPlayerSetBalance(cid, getPlayerBalance(cid) + add)
                            if autolootConfig.goldBankAnimation then
                                doSendAnimatedText(pos, string.format("+%u gps", add), TEXTCOLOR_YELLOW, cid)
                            end
                        end
                        if removeIt then
                            doRemoveItem(item.uid)
                        end
                    end
                end
                if sendEffect then
                    doSendMagicEffect(pos, autolootConfig.corpseEffect, cid)
                end
                return true
            end
        end
    end
    ---@ getPlayerAutolootItems(cid)
    --# Return array
    --# Create by GOD Ioke
    function getPlayerAutolootItems(cid)
        local array = {}
        local content = tostring(getPlayerStorageValue(cid, autolootConfig.storageItems))
        for itemid in string.gmatch(content, "(%d+):") do
            array[#array +1] = tonumber(itemid)
        end
        return array
    end
    ---@ getPlayerAutolootItem(cid, itemid)
    --# Return number/nil
    --# Create by GOD Ioke
    function getPlayerAutolootItem(cid, itemid)
        local autolootItems = getPlayerAutolootItems(cid)
        for index, id in pairs(autolootItems) do
            if itemid == id then
                return index
            end
        end
    end
    ---@ setPlayerAutolootItems(cid [, array])
    --# Return boolean
    --# Create by GOD Ioke
    function setPlayerAutolootItems(cid, array)
        local array = array or {}
        local content = "&"
        for index, itemid in pairs(array) do
            content = string.format("%s%u:", content, itemid)
        end
        return setPlayerStorageValue(cid, autolootConfig.storageItems, content)
    end
    ---@ addPlayerAutolootItem(cid, itemid)
    --# Return boolean
    --# Create by GOD Ioke
    function addPlayerAutolootItem(cid, itemid)
        local autolootItems = getPlayerAutolootItems(cid)
        local found = getPlayerAutolootItem(cid, itemid)
        if not found then
            autolootItems[#autolootItems +1] = itemid
            return setPlayerAutolootItems(cid, autolootItems)
        end
    end
    ---@ removePlayerAutolootItem(cid, itemid)
    --# Return boolean/nil
    --# Create by GOD Ioke
    function removePlayerAutolootItem(cid, itemid)
        local autolootItems = getPlayerAutolootItems(cid)
        local found = getPlayerAutolootItem(cid, itemid)
        if found then
            table.remove(autolootItems, found)
            return setPlayerAutolootItems(cid, autolootItems)
        end
    end
    ---@ showPlayerAutoloot(cid)
    --# Return boolean
    --# Create by GOD Ioke
    function showPlayerAutoloot(cid)
        local maxItems = getPlayerPremiumEnabled(cid) and autolootConfig.premiumSlots or autolootConfig.freeSlots
        local content = string.format("%sYou available slots: %u\n\n%s", autolootConfig.tittle, maxItems, "Your autoloot items:\n")
        local autolootItems = getPlayerAutolootItems(cid)
        for index, itemid in pairs(autolootItems) do
            local it = getItemInfo(itemid)
            content = string.format("%s %c %s\n", content, 155, it.name)
        end
        return doShowTextDialog(cid, 2529, content)
    end
    ---@ showPlayerAutolootHelp(cid)
    --# Return boolean
    --# Create by GOD Ioke
    function showPlayerAutolootHelp(cid)
        local content = autolootConfig.tittle .. "For you info:\n"
        for key, value in pairs(autolootConfig) do
            if not isInArray({"storageItems", "blockMonsters", "vipStorage", "golds", "tittle"}, key) then
                content = string.format("%s%c %s: %s\n", content, 155, tostring(key), tostring(value))
            end
        end
        return doShowTextDialog(cid, 2529, content)
    end
    ]]>
    </config>
    <event type="login" name="AutolootRBTLogin" event="script">
    <![CDATA[
    function onLogin(cid)
        local maxItems = getPlayerPremiumEnabled(cid) and autolootConfig.premiumSlots or autolootConfig.freeSlots
        local autolootItems = getPlayerAutolootItems(cid)
        if #autolootItems > maxItems then
            for index = autolootConfig.premiumSlots, autolootConfig.freeSlots, -1 do
                table.remove(autolootItems, index)
            end
            setPlayerAutolootItems(cid, autolootItems)
            doPlayerSendCancel(cid, "Your list of items overflowed, you should check your list.")
        end
        registerCreatureEvent(cid, "AutolootRBTCombat")
        return true
    end
    ]]>
    </event>
    <event type="death" name="AutolootRBTDeath" event="script">
    <![CDATA[
    domodlib("AutolootRevolutionBT")
    function onDeath(cid, corpse, deathList)
        local killer = deathList[1]
        local position = getThingPosition(cid)
        if corpse.itemid > 1 then
            addEvent(doCorpseAutoloot, 100, killer, position, corpse.itemid)
        end
        return true
    end
    ]]>
    </event>
    <event type="combat" name="AutolootRBTCombat" event="script">
    <![CDATA[
    domodlib("AutolootRevolutionBT")
    if isPlayer(cid) and isMonster(target) then
        if not isInArray(autolootConfig.blockMonsters, string.lower(getCreatureName(target))) then
            registerCreatureEvent(target, "AutolootRBTDeath")
        end
    end
    return true
    ]]>
    </event>
    <talkaction words="!autoloot;/autoloot" event="buffer">
    <![CDATA[
    domodlib("AutolootRevolutionBT")
    local split = string.explode(param, ",") or {}
    local action = tostring(split[1]):lower()
    local name = tostring(split[2])
    local itemid = getItemIdByName(name, false)
    local it = getItemInfo(itemid and itemid or 0)
    local position = getThingPosition(cid)
    if action == "add" then
        if not it then
            doPlayerSendCancel(cid, string.format("This item %s does not exist.", name))
        else
            local maxItems = getPlayerPremiumEnabled(cid) and autolootConfig.premiumSlots or autolootConfig.freeSlots
            local autolootItems = getPlayerAutolootItems(cid)
            if #autolootItems > maxItems then
                for index = autolootConfig.premiumSlots, autolootConfig.freeSlots, -1 do
                    table.remove(autolootItems, index)
                end
                setPlayerAutolootItems(cid, autolootItems)
                doPlayerSendCancel(cid, "Your list of items overflowed, you should check your list.")
            elseif #autolootItems == maxItems then
                doPlayerSendCancel(cid, string.format("Your maximum limit is %u items, you must eliminate one to add another.", maxItems))
            elseif addPlayerAutolootItem(cid, itemid) then
                doPlayerSendCancel(cid, string.format("You added the item %s in the list.", name))
            else
                doSendMagicEffect(position, CONST_ME_POFF, cid)
                doPlayerSendCancel(cid, string.format("This item %s already in the list.", name))
            end
        end
    elseif action == "remove" then
        if not it then
            doPlayerSendCancel(cid, string.format("This item %s does not exist.", name))
        else
            if removePlayerAutolootItem(cid, itemid) then
                doPlayerSendCancel(cid, string.format("You removed the item %s from the list.", name))
            else
                doPlayerSendCancel(cid, string.format("This item %s is not in the list.", name))
            end
        end
    elseif action == "help" then
        showPlayerAutolootHelp(cid)
    elseif action == "clear" then
        setPlayerAutolootItems(cid)
        doPlayerSendCancel(cid, "The list of items is now empty.")
    else
        showPlayerAutoloot(cid)
    end
    return true
    ]]>
    </talkaction>
    </mod>

    Error en la.consola

    Código:
    [20:17:47.218] [Error - CreatureScript Interface]
    [20:17:47.218] In a timer event called from:
    [20:17:47.218] domodlib("AutolootRevolutionBT")
    [20:17:47.233] function onDeath(cid, corpse, deathList)
    [20:17:47.249]    local killer = deathList[1]
    [20:17:47.249]    local position = getThingPosition(cid)
    [20:17:47.249]    if corpse.itemid > 1 then
    [20:17:47.264]        addEvent(doCorpseAutoloot, 100, killer, position, corpse.itemid)
    [20:17:47.264]    end
    [20:17:47.264]    return true
    [20:17:47.264] end
    [20:17:47.264] :onDeath
    [20:17:47.280] Description:
    [20:17:47.280] (LuaInterface::internalGetPlayerInfo) Player not found when requesting player info #3

    [20:17:47.280] [Error - CreatureScript Interface]
    [20:17:47.296] In a timer event called from:
    [20:17:47.296] domodlib("AutolootRevolutionBT")
    [20:17:47.296] function onDeath(cid, corpse, deathList)
    [20:17:47.311]    local killer = deathList[1]
    [20:17:47.311]    local position = getThingPosition(cid)
    [20:17:47.311]    if corpse.itemid > 1 then
    [20:17:47.311]        addEvent(doCorpseAutoloot, 100, killer, position, corpse.itemid)
    [20:17:47.327]    end
    [20:17:47.327]    return true
    [20:17:47.327] end
    [20:17:47.327] :onDeath
    [20:17:47.343] Description:
    [20:17:47.343] [string "---@ You configurations:..."]:141: attempt to compare boolean with number
    [20:17:47.343] stack traceback:
    [20:17:47.358]  [string "---@ You configurations:..."]:141: in function <[string "---@ You configurations:..."]:139>
    Captura del Error escribió:Imagen del error: Error consola Autoloot Empty
    El error radica en: Consola

    3 participantes
    http://baiakciteron.sytes.net

    2Error consola Autoloot Empty Re: Error consola Autoloot Dom Mayo 23, 2021 11:10 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    en la funcion

    Código:
    function onDeath(cid, corpse, deathList)
        local killer = deathList[1]
        local position = getThingPosition(cid)
        if corpse.itemid > 1 then
            addEvent(doCorpseAutoloot, 100, killer, position, corpse.itemid)
        end
        return true
    end

    esta solicitando un reconocimiento si es un player

    Código:

    if (not isPlayer(cid) then
          return true
       end



    Error consola Autoloot YNU5B25
    3 participantes
    http://www.tibiaface.com

    3Error consola Autoloot Empty Re: Error consola Autoloot Lun Mayo 24, 2021 8:19 am

    ioke

    ioke
    Miembro
    Miembro
    como lo añado o lo arreglo?

    3 participantes
    http://baiakciteron.sytes.net

    4Error consola Autoloot Empty Re: Error consola Autoloot Lun Mayo 24, 2021 2:26 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    ioke escribió:como lo añado o lo arreglo?

    añádelo arriba de

    Código:
    local killer = deathList[1]



    Error consola Autoloot YNU5B25
    3 participantes
    http://www.tibiaface.com

    5Error consola Autoloot Empty Re: Error consola Autoloot Lun Mayo 24, 2021 3:42 pm

    ioke

    ioke
    Miembro
    Miembro
    no sirve me tira el servidor

    3 participantes
    http://baiakciteron.sytes.net

    6Error consola Autoloot Empty Re: Error consola Autoloot Mar Mayo 25, 2021 10:04 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    prueba este mods

    Código:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <mod name="Loot System" version="1.0" author="Vodkart And Mkalo" contact="none.com" enabled="yes">
    <config name="Loot_func"><![CDATA[
    info = {
       AutomaticDeposit = false,
       BlockMonsters = {},
       BlockItemsList = {},
       Max_Slots = {free = 2, premium = 5},
       Storages = {27000,28001,28002,28003}
    }
    function setPlayerStorageTable(cid, storage, tab)
       local tabstr = "&"
       for i,x in pairs(tab) do
          tabstr = tabstr .. i .. "," .. x .. ";"
       end
       setPlayerStorageValue(cid, storage, tabstr:sub(1, #tabstr-1))
    end
    function getPlayerStorageTable(cid, storage)
       local tabstr = getPlayerStorageValue(cid, storage)
       local tab = {}
       if type(tabstr) ~= "string" then
          return {}
       end
       if tabstr:sub(1,1) ~= "&" then
          return {}
       end
       local tabstr = tabstr:sub(2, #tabstr)
       local a = string.explode(tabstr, ";")
       for i,x in pairs(a) do
          local b = string.explode(x, ",")
          tab[tonumber(b[1]) or b[1]] = tonumber(b[2]) or b[2]
       end
       return tab
    end
    function isInTable(cid, item)
       for _,i in pairs(getPlayerStorageTable(cid, info.Storages[1]))do
          if tonumber(i) == tonumber(item) then
             return true
          end
       end
       return false
    end
    function addItemTable(cid, item)
       local x = {}
       for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do
          table.insert(x,getPlayerStorageTable(cid, info.Storages[1])[i])
       end
       if x ~= 0 then
          table.insert(x,tonumber(item))
          setPlayerStorageTable(cid, info.Storages[1], x)
       else
          setPlayerStorageTable(cid, info.Storages[1], {item})
       end
    end
    function removeItemTable(cid, item)
       local x = {}
       for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do
          table.insert(x,getPlayerStorageTable(cid, info.Storages[1])[i])
       end
       for i,v in ipairs(x) do
          if tonumber(v) == tonumber(item) then
             table.remove(x,i)
          end
       end
       return setPlayerStorageTable(cid, info.Storages[1], x)
    end
    function ShowItemsTabble(cid)
       local n,str = 0,"[+] Auto Loot Commands [+]\n\n!autoloot item name --> To add ou Remove item from list.\n!autoloot money --> To collect gold automatically.\n!autoloot clear --> To clear the list.\n!autoloot on/off --> To enable or disable the collecting of items in the system.\n\n[+] Auto Loot Info [+]\n\nSystem: "..(getPlayerStorageValue(cid, info.Storages[3]) <= 0 and "Disabled" or "Activated")..".\nItem Time: "..(getPlayerStorageValue(cid, info.Storages[4]) >= os.time() and "You AutoLoot time ends "..os.date("%d %B %Y %X", getPlayerStorageValue(cid,info.Storages[4])).."." or "no have Auto Loot time.").."\nGold Collecting: "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "Disabled")..".\nBalance Total: ["..getPlayerBalance(cid).."] gp's.\nMaximum Slots: ["..#getPlayerStorageTable(cid, info.Storages[1]).."/"..(isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free).."]\n\n[+] Auto Loot Slots [+]\n\n"
       for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do
          n = n + 1
          str = str.."Slot "..n.." - "..getItemNameById(getPlayerStorageTable(cid, info.Storages[1])[i]).."\n"
       end
       return doPlayerPopupFYI(cid, str)
    end
    function getContainerItems(containeruid)
       local items = {}
       local containers = {}
       if type(getContainerSize(containeruid)) ~= "number" then
          return false
       end
       for slot = 0, getContainerSize(containeruid)-1 do
          local item = getContainerItem(containeruid, slot)
          if item.itemid == 0 then
             break
          end
          if isContainer(item.uid) then
             table.insert(containers, item.uid)
          end
          table.insert(items, item)
       end
       if #containers > 0 then
          for i,x in ipairs(getContainerItems(containers[1])) do
             table.insert(items, x)
          end
          table.remove(containers, 1)
       end
       return items
    end
    function getItemsInContainerById(container, itemid) -- Function By Kydrai
       local items = {}
       if isContainer(container) and getContainerSize(container) > 0 then
          for slot=0, (getContainerSize(container)-1) do
             local item = getContainerItem(container, slot)
             if isContainer(item.uid) then
                local itemsbag = getItemsInContainerById(item.uid, itemid)
                for i=0, #itemsbag do
                   table.insert(items, itemsbag[i])
                end
             else
                if itemid == item.itemid then
                   table.insert(items, item.uid)
                end
             end
          end
       end
       return items
    end
    function doPlayerAddItemStacking(cid, itemid, amount) -- revisado
       local item, _G = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, itemid), 0
       if #item > 0 then
          for _ ,x in pairs(item) do
             local ret = getThing(x)
             if ret.type < 100 then
                doTransformItem(ret.uid, itemid, ret.type+amount)
                if ret.type+amount > 100 then
                   doPlayerAddItem(cid, itemid, ret.type+amount-100)
                end
                break
             else
                _G = _G+1
             end
          end
          if _G == #item then
             doPlayerAddItem(cid, itemid, amount)
          end
       else
          return doPlayerAddItem(cid, itemid, amount)
       end
    end
    function AutomaticDeposit(cid,item,n)
       local deposit = item == tonumber(2160) and (n*10000) or tonumber(item) == 2152 and (n*100) or (n*1)
       return doPlayerDepositMoney(cid, deposit)
    end
    function corpseRetireItems(cid, pos)
       local check = false
       for i = 0, 255 do
          pos.stackpos = i
          tile = getTileThingByPos(pos)
          if tile.uid > 0 and isCorpse(tile.uid) then
             check = true break
          end
       end
       if check == true then
          local items = getContainerItems(tile.uid)
          for i,x in pairs(items) do
             if isInArray(getPlayerStorageTable(cid, info.Storages[1]), tonumber(x.itemid)) or getPlayerStorageValue(cid, info.Storages[2]) > 0 and isInArray({2148,2152,2160},tonumber(x.itemid)) then
                if isItemStackable(x.itemid) then
                   doPlayerAddItemStacking(cid, x.itemid, x.type)
                   if info.AutomaticDeposit == true and isInArray({2148,2152,2160}, tonumber(x.itemid)) then
                      AutomaticDeposit(cid,x.itemid,x.type)
                   end
                else
                   doPlayerAddItem(cid, x.itemid)
                end
                doRemoveItem(x.uid)
             end
          end
       end
    end
    ]]></config>
    <event type="login" name="LootLogin" event="script"><![CDATA[
    function onLogin(cid)
       registerCreatureEvent(cid, "LootEventKIll")
       if isPremium(cid) and getPlayerStorageValue(cid, 27001) <= 0 then
          setPlayerStorageValue(cid, 27001, 1)
       elseif getPlayerStorageValue(cid, 27001) > 0 and not isPremium(cid) then
          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Auto Loot] You premium is Over, Start a new list!")
          setPlayerStorageValue(cid, 27001, -1)
          setPlayerStorageValue(cid, info.Storages[1], -1)
       end
       return true
    end]]></event>
    <event type="kill" name="LootEventKIll" event="script"><![CDATA[
    domodlib('Loot_func')
    function onKill(cid, target, lastHit)
       if isPlayer(cid) and getPlayerStorageValue(cid, info.Storages[4]) >= os.time() and getPlayerStorageValue(cid, info.Storages[3]) > 0 and isMonster(target) and not isInArray(info.BlockMonsters, getCreatureName(target):lower()) then
          addEvent(corpseRetireItems, 0, cid ,getThingPos(target))
       end
       return true
    end]]></event>
    <talkaction words="!autoloot;/autoloot" event="buffer"><![CDATA[
    domodlib('Loot_func')
    local param, slots = param:lower(), isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free
    if not param or param == "" then
       ShowItemsTabble(cid) return true
    elseif tonumber(param) then
       doPlayerSendCancel(cid, "enter commands: !autoloot item name [+] !autoloot clean [+] !autoloot money [+] !autoloot on/off") return true
    elseif isInArray({"clean","limpar", "clear"}, param) then
       setPlayerStorageValue(cid, info.Storages[1], -1)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Your list has been cleaned.") return true
    elseif isInArray({"start","stop","on","off"}, param) then
       setPlayerStorageValue(cid, info.Storages[3], getPlayerStorageValue(cid, info.Storages[3]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] "..(getPlayerStorageValue(cid, info.Storages[3]) <= 0 and "Stopped" or "Started")..".") return true
    elseif isInArray({"money","gold","gps","dinheiro"}, param) then
       setPlayerStorageValue(cid, info.Storages[2], getPlayerStorageValue(cid, info.Storages[2]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Gold Colleting "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "disabled")..".") return true
    end
    local item = getItemIdByName(param, false)
    if not item then
       doPlayerSendCancel(cid, "This item does not exist.") return true
    elseif isInArray({2148,2152,2160},item) then
       doPlayerSendCancel(cid, "Enter !autoloot money to add money in your list!") return true   
    elseif isInArray(info.BlockItemsList, item) then
       doPlayerSendCancel(cid, "You can not add this item in the list!") return true
    elseif #getPlayerStorageTable(cid, info.Storages[1]) >= slots then
       doPlayerSendCancel(cid, "max "..slots.." from auto loot") return true
    end
    local var = isInTable(cid, item)
    if not var then
       addItemTable(cid, item)
    else
       removeItemTable(cid, item)
    end
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,not var and "you added the item "..param.." in the list" or "you removed the item "..param.." from the list")
    return true]]></talkaction>
    <action itemid="7440" event="script"><![CDATA[
    domodlib('Loot_func')
    function onUse(cid, item, fromPosition, itemEx, toPosition)
       local days = 1
       if getPlayerStorageValue(cid, info.Storages[4]) >= os.time() then
          doPlayerSendCancel(cid, "Sorry, you AutoLoot time ends "..os.date("%d %B %Y %X", getPlayerStorageValue(cid,info.Storages[4]))..".") return true
       end
       setPlayerStorageValue(cid, info.Storages[4], os.time()+days*86400)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You received "..days.." days of AutoLoot, you AutoLoot time ends "..os.date("%d %B %Y %X", getPlayerStorageValue(cid,info.Storages[4]))..".")
       doRemoveItem(item.uid)
       return true
    end]]></action>
    </mod>



    Error consola Autoloot YNU5B25
    3 participantes
    http://www.tibiaface.com

    7Error consola Autoloot Empty Re: Error consola Autoloot Mar Mayo 25, 2021 10:08 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    y este es por dia con un objeto que le da dia de autoloot osea como si fuera un extra premium para poder usarlo. solo funciona con mysql

    Código:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <mod name="Loot System" version="1.0" author="Vodkart And Mkalo" contact="none.com" enabled="yes">
    <config name="Loot_func"><![CDATA[
    info = {
       AutomaticDeposit = false,
       BlockMonsters = {},
       BlockItemsList = {},
       Max_Slots = {free = 2, premium = 5},
       Storages = {27000,28001,28002}
    }
    function getAutoLootTime(cid)
       return db.getResult("SELECT `loot_time` FROM `accounts` WHERE `id` = "..getPlayerAccountId(cid)):getDataInt("loot_time")
    end
    function setAutoLootTime(cid, time)
       return db.query("UPDATE `accounts` SET `loot_time` = "..time.." WHERE `id` = "..getPlayerAccountId(cid))
    end
    function getAutoLootDays(cid)
       local days = math.ceil((getAutoLootTime(cid) - os.time())/(86400))
       return days <= 0 and 0 or days
    end
    function addAutoLootDays(cid, days)
       local add = (days <= 0 and 1 or days)*86400
       local time = getAutoLootDays(cid) == 0 and (os.time() + add) or (getAutoLootTime(cid) + add)
       return setAutoLootTime(cid, time)
    end
    function setPlayerStorageTable(cid, storage, tab)
       local tabstr = "&"
       for i,x in pairs(tab) do
          tabstr = tabstr .. i .. "," .. x .. ";"
       end
       setPlayerStorageValue(cid, storage, tabstr:sub(1, #tabstr-1))
    end
    function getPlayerStorageTable(cid, storage)
       local tabstr = getPlayerStorageValue(cid, storage)
       local tab = {}
       if type(tabstr) ~= "string" then
          return {}
       end
       if tabstr:sub(1,1) ~= "&" then
          return {}
       end
       local tabstr = tabstr:sub(2, #tabstr)
       local a = string.explode(tabstr, ";")
       for i,x in pairs(a) do
          local b = string.explode(x, ",")
          tab[tonumber(b[1]) or b[1]] = tonumber(b[2]) or b[2]
       end
       return tab
    end
    function isInTable(cid, item)
       for _,i in pairs(getPlayerStorageTable(cid, info.Storages[1]))do
          if tonumber(i) == tonumber(item) then
             return true
          end
       end
       return false
    end
    function addItemTable(cid, item)
       local x = {}
       for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do
          table.insert(x,getPlayerStorageTable(cid, info.Storages[1])[i])
       end
       if x ~= 0 then
          table.insert(x,tonumber(item))
          setPlayerStorageTable(cid, info.Storages[1], x)
       else
          setPlayerStorageTable(cid, info.Storages[1], {item})
       end
    end
    function removeItemTable(cid, item)
       local x = {}
       for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do
          table.insert(x,getPlayerStorageTable(cid, info.Storages[1])[i])
       end
       for i,v in ipairs(x) do
          if tonumber(v) == tonumber(item) then
             table.remove(x,i)
          end
       end
       return setPlayerStorageTable(cid, info.Storages[1], x)
    end
    function ShowItemsTabble(cid)
       local n,str = 0,"[+] Auto Loot Commands [+]\n\n!autoloot item name --> To add ou Remove item from list.\n!autoloot money --> To collect gold automatically.\n!autoloot clear --> To clear the list.\n!autoloot on/off --> To enable or disable the collecting of items in the system.\n\n[+] Auto Loot Info [+]\n\nSystem: "..(getPlayerStorageValue(cid, info.Storages[3]) <= 0 and "Disabled" or "Activated")..".\nTime: "..(getAutoLootTime(cid) > 0 and "you have ["..getAutoLootDays(cid).."] days --> ends in "..os.date("%d/%m/%y %X", getAutoLootTime(cid)).."." or "no have Auto Loot time.").."\nGold Collecting: "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "Disabled")..".\nBalance Total: ["..getPlayerBalance(cid).."] gp's.\nMaximum Slots: ["..#getPlayerStorageTable(cid, info.Storages[1]).."/"..(isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free).."]\n\n[+] Auto Loot Slots [+]\n\n"
       for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do
          n = n + 1
          str = str.."Slot "..n.." - "..getItemNameById(getPlayerStorageTable(cid, info.Storages[1])[i]).."\n"
       end
       return doPlayerPopupFYI(cid, str)
    end
    function getContainerItems(containeruid)
       local items = {}
       local containers = {}
       if type(getContainerSize(containeruid)) ~= "number" then
          return false
       end
       for slot = 0, getContainerSize(containeruid)-1 do
          local item = getContainerItem(containeruid, slot)
          if item.itemid == 0 then
             break
          end
          if isContainer(item.uid) then
             table.insert(containers, item.uid)
          end
          table.insert(items, item)
       end
       if #containers > 0 then
          for i,x in ipairs(getContainerItems(containers[1])) do
             table.insert(items, x)
          end
          table.remove(containers, 1)
       end
       return items
    end
    function getItemsInContainerById(container, itemid) -- Function By Kydrai
       local items = {}
       if isContainer(container) and getContainerSize(container) > 0 then
          for slot=0, (getContainerSize(container)-1) do
             local item = getContainerItem(container, slot)
             if isContainer(item.uid) then
                local itemsbag = getItemsInContainerById(item.uid, itemid)
                for i=0, #itemsbag do
                   table.insert(items, itemsbag[i])
                end
             else
                if itemid == item.itemid then
                   table.insert(items, item.uid)
                end
             end
          end
       end
       return items
    end
    function doPlayerAddItemStacking(cid, itemid, amount) -- revisado
       local item, _G = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, itemid), 0
       if #item > 0 then
          for _ ,x in pairs(item) do
             local ret = getThing(x)
             if ret.type < 100 then
                doTransformItem(ret.uid, itemid, ret.type+amount)
                if ret.type+amount > 100 then
                   doPlayerAddItem(cid, itemid, ret.type+amount-100)
                end
                break
             else
                _G = _G+1
             end
          end
          if _G == #item then
             doPlayerAddItem(cid, itemid, amount)
          end
       else
          return doPlayerAddItem(cid, itemid, amount)
       end
    end
    function AutomaticDeposit(cid,item,n)
       local deposit = item == tonumber(2160) and (n*10000) or tonumber(item) == 2152 and (n*100) or (n*1)
       return doPlayerDepositMoney(cid, deposit)
    end
    function corpseRetireItems(cid, pos)
       local check = false
       for i = 0, 255 do
          pos.stackpos = i
          tile = getTileThingByPos(pos)
          if tile.uid > 0 and isCorpse(tile.uid) then
             check = true break
          end
       end
       if check == true then
          local items = getContainerItems(tile.uid)
          for i,x in pairs(items) do
             if isInArray(getPlayerStorageTable(cid, info.Storages[1]), tonumber(x.itemid)) or getPlayerStorageValue(cid, info.Storages[2]) > 0 and isInArray({2148,2152,2160},tonumber(x.itemid)) then
                if isItemStackable(x.itemid) then
                   doPlayerAddItemStacking(cid, x.itemid, x.type)
                   if info.AutomaticDeposit == true and isInArray({2148,2152,2160}, tonumber(x.itemid)) then
                      AutomaticDeposit(cid,x.itemid,x.type)
                   end
                else
                   doPlayerAddItem(cid, x.itemid)
                end
                doRemoveItem(x.uid)
             end
          end
       end
    end
    ]]></config>
    <event type="login" name="LootLogin" event="script"><![CDATA[
    function onLogin(cid)
       registerCreatureEvent(cid, "LootEventKIll")
       if isPremium(cid) and getPlayerStorageValue(cid, 27001) <= 0 then
          setPlayerStorageValue(cid, 27001, 1)
       elseif getPlayerStorageValue(cid, 27001) > 0 and not isPremium(cid) then
          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Auto Loot] You premium is Over, Start a new list!")
          setPlayerStorageValue(cid, 27001, -1)
          setPlayerStorageValue(cid, info.Storages[1], -1)
       end
       return true
    end]]></event>
    <event type="kill" name="LootEventKIll" event="script"><![CDATA[
    domodlib('Loot_func')
    function onKill(cid, target, lastHit)
       if isPlayer(cid) and getAutoLootDays(cid) > 0 and getPlayerStorageValue(cid, info.Storages[3]) > 0 and isMonster(target) and not isInArray(info.BlockMonsters, getCreatureName(target):lower()) then
          addEvent(corpseRetireItems, 0, cid ,getThingPos(target))
       end
       return true
    end]]></event>
    <talkaction words="!autoloot;/autoloot" event="buffer"><![CDATA[
    domodlib('Loot_func')
    local param, slots = param:lower(), isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free
    if not param or param == "" then
       ShowItemsTabble(cid) return true
    elseif tonumber(param) then
       doPlayerSendCancel(cid, "enter commands: !autoloot item name [+] !autoloot clean [+] !autoloot money [+] !autoloot on/off") return true
    elseif isInArray({"clean","limpar", "clear"}, param) then
       setPlayerStorageValue(cid, info.Storages[1], -1)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Your list has been cleaned.") return true
    elseif isInArray({"start","stop","on","off"}, param) then
       setPlayerStorageValue(cid, info.Storages[3], getPlayerStorageValue(cid, info.Storages[3]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] "..(getPlayerStorageValue(cid, info.Storages[3]) <= 0 and "Stopped" or "Started")..".") return true
    elseif isInArray({"money","gold","gps","dinheiro"}, param) then
       setPlayerStorageValue(cid, info.Storages[2], getPlayerStorageValue(cid, info.Storages[2]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Gold Colleting "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "disabled")..".") return true
    end
    local item = getItemIdByName(param, false)
    if not item then
       doPlayerSendCancel(cid, "This item does not exist.") return true
    elseif isInArray({2148,2152,2160},item) then
       doPlayerSendCancel(cid, "Enter !autoloot money to add money in your list!") return true   
    elseif isInArray(info.BlockItemsList, item) then
       doPlayerSendCancel(cid, "You can not add this item in the list!") return true
    elseif #getPlayerStorageTable(cid, info.Storages[1]) >= slots then
       doPlayerSendCancel(cid, "max "..slots.." from auto loot") return true
    end
    local var = isInTable(cid, item)
    if not var then
       addItemTable(cid, item)
    else
       removeItemTable(cid, item)
    end
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,not var and "you added the item "..param.." in the list" or "you removed the item "..param.." from the list")
    return true]]></talkaction>
    <action itemid="7440" event="script"><![CDATA[
    domodlib('Loot_func')
    function onUse(cid, item, fromPosition, itemEx, toPosition)
       local days = 1
       addAutoLootDays(cid, days)
       doSendMagicEffect(getCreaturePosition(cid), 29)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You received "..days.." days of AutoLoot, you have "..getAutoLootDays(cid).." auto loot days.")
       doRemoveItem(item.uid)
       return true
    end]]></action>
    </mod>

    ejecutar en su base de datos

    Código:
    ALTER TABLE `accounts` ADD loot_time INT(15) NOT NULL DEFAULT 0;



    Error consola Autoloot YNU5B25
    3 participantes
    http://www.tibiaface.com

    8Error consola Autoloot Empty Re: Error consola Autoloot Mar Mayo 25, 2021 10:24 am

    ioke

    ioke
    Miembro
    Miembro
    vale los probare gracias igual te enseño como lo puse por si lo puse bien

    Código:
    <event type="death" name="AutolootRBTDeath" event="script">
    <![CDATA[
    domodlib("AutolootRevolutionBT")
    function onDeath(cid, corpse, deathList)
    if (not isPlayer(cid) then
          return true
      end
        local killer = deathList[1]
        local position = getThingPosition(cid)
        if corpse.itemid > 1 then
            addEvent(doCorpseAutoloot, 100, killer, position, corpse.itemid)
        end
        return true
    end
    ]]>
    </event>

    igual.probare esos mods el ultimo no entendi mucho la.funciona que explicaste gracias makina

    3 participantes
    http://baiakciteron.sytes.net

    9Error consola Autoloot Empty Re: Error consola Autoloot Mar Mayo 25, 2021 11:43 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    ioke escribió:vale los probare gracias igual te enseño como lo puse por si lo puse bien

    Código:
    <event type="death" name="AutolootRBTDeath" event="script">
    <![CDATA[
    domodlib("AutolootRevolutionBT")
    function onDeath(cid, corpse, deathList)
    if (not isPlayer(cid) then
          return true
      end
        local killer = deathList[1]
        local position = getThingPosition(cid)
        if corpse.itemid > 1 then
            addEvent(doCorpseAutoloot, 100, killer, position, corpse.itemid)
        end
        return true
    end
    ]]>
    </event>

    igual.probare esos mods el ultimo no entendi mucho la.funciona que explicaste gracias makina

    si lo pusiste bien.

    el ultimo que te compartir requiere de un item premiun que darle clic te da 1 dia para para poder usar el autoloot



    Error consola Autoloot YNU5B25
    3 participantes
    http://www.tibiaface.com

    10Error consola Autoloot Empty Re: Error consola Autoloot Mar Mayo 25, 2021 12:28 pm

    ioke

    ioke
    Miembro
    Miembro
    probe el.primero pero no colecta nada ni poniendo !autoloot on ni nada ni el.dinero ni los.obejetos

    3 participantes
    http://baiakciteron.sytes.net

    11Error consola Autoloot Empty Re: Error consola Autoloot Miér Mayo 26, 2021 8:03 am

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    [Admin] God Maya escribió:prueba este mods

    Código:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <mod name="Loot System" version="1.0" author="Vodkart And Mkalo" contact="none.com" enabled="yes">
    <config name="Loot_func"><![CDATA[
    info = {
       AutomaticDeposit = false,
       BlockMonsters = {},
       BlockItemsList = {},
       Max_Slots = {free = 2, premium = 5},
       Storages = {27000,28001,28002,28003}
    }
    function setPlayerStorageTable(cid, storage, tab)
       local tabstr = "&"
       for i,x in pairs(tab) do
          tabstr = tabstr .. i .. "," .. x .. ";"
       end
       setPlayerStorageValue(cid, storage, tabstr:sub(1, #tabstr-1))
    end
    function getPlayerStorageTable(cid, storage)
       local tabstr = getPlayerStorageValue(cid, storage)
       local tab = {}
       if type(tabstr) ~= "string" then
          return {}
       end
       if tabstr:sub(1,1) ~= "&" then
          return {}
       end
       local tabstr = tabstr:sub(2, #tabstr)
       local a = string.explode(tabstr, ";")
       for i,x in pairs(a) do
          local b = string.explode(x, ",")
          tab[tonumber(b[1]) or b[1]] = tonumber(b[2]) or b[2]
       end
       return tab
    end
    function isInTable(cid, item)
       for _,i in pairs(getPlayerStorageTable(cid, info.Storages[1]))do
          if tonumber(i) == tonumber(item) then
             return true
          end
       end
       return false
    end
    function addItemTable(cid, item)
       local x = {}
       for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do
          table.insert(x,getPlayerStorageTable(cid, info.Storages[1])[i])
       end
       if x ~= 0 then
          table.insert(x,tonumber(item))
          setPlayerStorageTable(cid, info.Storages[1], x)
       else
          setPlayerStorageTable(cid, info.Storages[1], {item})
       end
    end
    function removeItemTable(cid, item)
       local x = {}
       for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do
          table.insert(x,getPlayerStorageTable(cid, info.Storages[1])[i])
       end
       for i,v in ipairs(x) do
          if tonumber(v) == tonumber(item) then
             table.remove(x,i)
          end
       end
       return setPlayerStorageTable(cid, info.Storages[1], x)
    end
    function ShowItemsTabble(cid)
       local n,str = 0,"[+] Auto Loot Commands [+]\n\n!autoloot item name --> To add ou Remove item from list.\n!autoloot money --> To collect gold automatically.\n!autoloot clear --> To clear the list.\n!autoloot on/off --> To enable or disable the collecting of items in the system.\n\n[+] Auto Loot Info [+]\n\nSystem: "..(getPlayerStorageValue(cid, info.Storages[3]) <= 0 and "Disabled" or "Activated")..".\nItem Time: "..(getPlayerStorageValue(cid, info.Storages[4]) >= os.time() and "You AutoLoot time ends "..os.date("%d %B %Y %X", getPlayerStorageValue(cid,info.Storages[4])).."." or "no have Auto Loot time.").."\nGold Collecting: "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "Disabled")..".\nBalance Total: ["..getPlayerBalance(cid).."] gp's.\nMaximum Slots: ["..#getPlayerStorageTable(cid, info.Storages[1]).."/"..(isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free).."]\n\n[+] Auto Loot Slots [+]\n\n"
       for i = 1,#getPlayerStorageTable(cid, info.Storages[1]) do
          n = n + 1
          str = str.."Slot "..n.." - "..getItemNameById(getPlayerStorageTable(cid, info.Storages[1])[i]).."\n"
       end
       return doPlayerPopupFYI(cid, str)
    end
    function getContainerItems(containeruid)
       local items = {}
       local containers = {}
       if type(getContainerSize(containeruid)) ~= "number" then
          return false
       end
       for slot = 0, getContainerSize(containeruid)-1 do
          local item = getContainerItem(containeruid, slot)
          if item.itemid == 0 then
             break
          end
          if isContainer(item.uid) then
             table.insert(containers, item.uid)
          end
          table.insert(items, item)
       end
       if #containers > 0 then
          for i,x in ipairs(getContainerItems(containers[1])) do
             table.insert(items, x)
          end
          table.remove(containers, 1)
       end
       return items
    end
    function getItemsInContainerById(container, itemid) -- Function By Kydrai
       local items = {}
       if isContainer(container) and getContainerSize(container) > 0 then
          for slot=0, (getContainerSize(container)-1) do
             local item = getContainerItem(container, slot)
             if isContainer(item.uid) then
                local itemsbag = getItemsInContainerById(item.uid, itemid)
                for i=0, #itemsbag do
                   table.insert(items, itemsbag[i])
                end
             else
                if itemid == item.itemid then
                   table.insert(items, item.uid)
                end
             end
          end
       end
       return items
    end
    function doPlayerAddItemStacking(cid, itemid, amount) -- revisado
       local item, _G = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, itemid), 0
       if #item > 0 then
          for _ ,x in pairs(item) do
             local ret = getThing(x)
             if ret.type < 100 then
                doTransformItem(ret.uid, itemid, ret.type+amount)
                if ret.type+amount > 100 then
                   doPlayerAddItem(cid, itemid, ret.type+amount-100)
                end
                break
             else
                _G = _G+1
             end
          end
          if _G == #item then
             doPlayerAddItem(cid, itemid, amount)
          end
       else
          return doPlayerAddItem(cid, itemid, amount)
       end
    end
    function AutomaticDeposit(cid,item,n)
       local deposit = item == tonumber(2160) and (n*10000) or tonumber(item) == 2152 and (n*100) or (n*1)
       return doPlayerDepositMoney(cid, deposit)
    end
    function corpseRetireItems(cid, pos)
       local check = false
       for i = 0, 255 do
          pos.stackpos = i
          tile = getTileThingByPos(pos)
          if tile.uid > 0 and isCorpse(tile.uid) then
             check = true break
          end
       end
       if check == true then
          local items = getContainerItems(tile.uid)
          for i,x in pairs(items) do
             if isInArray(getPlayerStorageTable(cid, info.Storages[1]), tonumber(x.itemid)) or getPlayerStorageValue(cid, info.Storages[2]) > 0 and isInArray({2148,2152,2160},tonumber(x.itemid)) then
                if isItemStackable(x.itemid) then
                   doPlayerAddItemStacking(cid, x.itemid, x.type)
                   if info.AutomaticDeposit == true and isInArray({2148,2152,2160}, tonumber(x.itemid)) then
                      AutomaticDeposit(cid,x.itemid,x.type)
                   end
                else
                   doPlayerAddItem(cid, x.itemid)
                end
                doRemoveItem(x.uid)
             end
          end
       end
    end
    ]]></config>
    <event type="login" name="LootLogin" event="script"><![CDATA[
    function onLogin(cid)
       registerCreatureEvent(cid, "LootEventKIll")
       if isPremium(cid) and getPlayerStorageValue(cid, 27001) <= 0 then
          setPlayerStorageValue(cid, 27001, 1)
       elseif getPlayerStorageValue(cid, 27001) > 0 and not isPremium(cid) then
          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Auto Loot] You premium is Over, Start a new list!")
          setPlayerStorageValue(cid, 27001, -1)
          setPlayerStorageValue(cid, info.Storages[1], -1)
       end
       return true
    end]]></event>
    <event type="kill" name="LootEventKIll" event="script"><![CDATA[
    domodlib('Loot_func')
    function onKill(cid, target, lastHit)
       if isPlayer(cid) and getPlayerStorageValue(cid, info.Storages[4]) >= os.time() and getPlayerStorageValue(cid, info.Storages[3]) > 0 and isMonster(target) and not isInArray(info.BlockMonsters, getCreatureName(target):lower()) then
          addEvent(corpseRetireItems, 0, cid ,getThingPos(target))
       end
       return true
    end]]></event>
    <talkaction words="!autoloot;/autoloot" event="buffer"><![CDATA[
    domodlib('Loot_func')
    local param, slots = param:lower(), isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free
    if not param or param == "" then
       ShowItemsTabble(cid) return true
    elseif tonumber(param) then
       doPlayerSendCancel(cid, "enter commands: !autoloot item name [+] !autoloot clean [+] !autoloot money [+] !autoloot on/off") return true
    elseif isInArray({"clean","limpar", "clear"}, param) then
       setPlayerStorageValue(cid, info.Storages[1], -1)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Your list has been cleaned.") return true
    elseif isInArray({"start","stop","on","off"}, param) then
       setPlayerStorageValue(cid, info.Storages[3], getPlayerStorageValue(cid, info.Storages[3]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] "..(getPlayerStorageValue(cid, info.Storages[3]) <= 0 and "Stopped" or "Started")..".") return true
    elseif isInArray({"money","gold","gps","dinheiro"}, param) then
       setPlayerStorageValue(cid, info.Storages[2], getPlayerStorageValue(cid, info.Storages[2]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Gold Colleting "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "disabled")..".") return true
    end
    local item = getItemIdByName(param, false)
    if not item then
       doPlayerSendCancel(cid, "This item does not exist.") return true
    elseif isInArray({2148,2152,2160},item) then
       doPlayerSendCancel(cid, "Enter !autoloot money to add money in your list!") return true   
    elseif isInArray(info.BlockItemsList, item) then
       doPlayerSendCancel(cid, "You can not add this item in the list!") return true
    elseif #getPlayerStorageTable(cid, info.Storages[1]) >= slots then
       doPlayerSendCancel(cid, "max "..slots.." from auto loot") return true
    end
    local var = isInTable(cid, item)
    if not var then
       addItemTable(cid, item)
    else
       removeItemTable(cid, item)
    end
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,not var and "you added the item "..param.." in the list" or "you removed the item "..param.." from the list")
    return true]]></talkaction>
    <action itemid="7440" event="script"><![CDATA[
    domodlib('Loot_func')
    function onUse(cid, item, fromPosition, itemEx, toPosition)
       local days = 1
       if getPlayerStorageValue(cid, info.Storages[4]) >= os.time() then
          doPlayerSendCancel(cid, "Sorry, you AutoLoot time ends "..os.date("%d %B %Y %X", getPlayerStorageValue(cid,info.Storages[4]))..".") return true
       end
       setPlayerStorageValue(cid, info.Storages[4], os.time()+days*86400)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You received "..days.." days of AutoLoot, you AutoLoot time ends "..os.date("%d %B %Y %X", getPlayerStorageValue(cid,info.Storages[4]))..".")
       doRemoveItem(item.uid)
       return true
    end]]></action>
    </mod>

    crea este item 7440 y dale clic para que te entregue 1 dia para poder recoger objetos



    Error consola Autoloot YNU5B25
    3 participantes
    http://www.tibiaface.com

    12Error consola Autoloot Empty Re: Error consola Autoloot Miér Mayo 26, 2021 10:02 am

    ioke

    ioke
    Miembro
    Miembro
    da igual no funciona tqkpoco.me.quedo.con el.que tengo aunque de error en la.consola.v muy bien ya alugn dia saldra.alguien que sepa.solucionarme el.error grqcias de.todas.formas bro

    3 participantes
    http://baiakciteron.sytes.net

    13Error consola Autoloot Empty Re: Error consola Autoloot Miér Mayo 26, 2021 5:52 pm

    Touch Me

    Touch Me
    Miembro
    Miembro
    prueba esto
    en la carpeta de logs creas otra carpeta que se llame autoloot e intenta este mod

    Código:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <mod name="Perfect Auto Loot" version="2.0" author="Vodkart" contact="none.com" enabled="yes">
    <config name="Loot_func"><![CDATA[

    help = {}
    help.goldToBank = true
    help.goldBankAnimation = true
    help.distanceLooting = 7
    help.Slots = 6
    help.vipStorage = {0,0}
    help.playerLevel = 8
    help.corpseEffect = CONST_ME_NONE
    help.golds = {2148, 2152, 2160}
    help.tittle = "Welcomen to Autoloot System\nCreate by GOD Ioke\n\nOptions: help, clear, item name\n"
    help.notHaveCapDrop = true
    info = {
       distro = 1, -- 1 = TFS // 2 = talk modificada
       directory = "data/logs/autoloot",

       Talkaction_delay = 5, -- em segundos // delay para remover e adicionar item
       BlockMonsters = {},
       BlockItemsList = {2123,2515},
       Money_ids = {2148, 2152, 2160}, -- id das moedas do ot
       Max_Slots = {free = 6, premium = 6},
       Storages = {988801, 988802, 988803, 988804, 988805, 988806, 988807}
    }


    function isInTable(cid, item)
       for _,i in pairs(getItensFromAutoloot(cid)) do
          if tonumber(i) == tonumber(item) then
             return true
          end
       end
       return false
    end
    function doremoveItemFromAutoloot(cid, itemid)
        local file, fileContent = io.open(info.directory.."/"..getCreatureName(cid)..".txt", 'r'),{}
        for line in file:lines() do
        if line ~= "" and tonumber(line) ~= tonumber(itemid) then
                fileContent[#fileContent + 1] = line
           end
        end
        io.close(file)
        file = io.open(info.directory.."/"..getCreatureName(cid)..".txt", 'w')
        for index, value in ipairs(fileContent) do
        file:write(value..'\n')
        end
        io.close(file)
    end
    function doAddItemFromAutoloot(cid, itemid)
            if not existsAutoloot(cid) then
                doCreateLootUserName(cid, itemid) return true
            end
            local file = io.open(info.directory.."/"..getCreatureName(cid)..".txt", "a+")                     
            file:write('\n'..itemid)
            file:close()
    end
    function existsAutoloot(cid)
      local f = io.open(info.directory.."/"..getCreatureName(cid)..".txt", "rb")
      if f then f:close() end
      return f ~= nil
    end
    function doCreateLootUserName(cid, itemid)
        newFile = io.open(info.directory.."/"..getCreatureName(cid)..".txt", "w+" )
        newFile:write(itemid)
        newFile:close()
    end
    function getItensFromAutoloot(cid)
      if not existsAutoloot(cid) then return {} end
      lines = {}
      for line in io.lines(info.directory.."/"..getCreatureName(cid)..".txt") do
         if line ~= "" then
                 lines[#lines + 1] = tonumber(line)
         end
      end
      return lines
    end
    function doCleanAutoloot(cid)
    return os.remove(info.directory.."/"..getCreatureName(cid)..".txt")
    end
    function showPlayerAutolootHelp(cid)
        local content = "Welcomen to Autoloot System\nCreate by GOD Ioke\n\nOptions: help, clear, item name\nFor you info:\n"
        for key, value in pairs(help) do
            if not isInArray({"storageItems", "blockMonsters", "vipStorage", "golds", "tittle"}, key) then
                content = string.format("%s%c %s: %s\n", content, 155, tostring(key), tostring(value))
            end
        end
        return doShowTextDialog(cid, 2529, content)
    end
    function ShowItemsTabble(cid)
       local auto_list = getItensFromAutoloot(cid)   
       local n,str = 0,"Welcomen to Autoloot System\nCreate by GOD Ioke\n\nOptions: help, clear, item name\nYour slots in use: ["..#auto_list.."/"..(isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free).."]\n\nYour autoloot items:\n"
       if #auto_list > 0 then
          for i = 1, #auto_list do
             n = n + 1
             str = str.."- "..getItemNameById(auto_list[i]).."\n"
          end
       end
       return doShowTextDialog(cid, 2529, str)
    end
    function getContainerItems(container, array, haveCap)
        array = array or {}
        haveCap = haveCap or false
        if not isContainer(container.uid) or getContainerSize(container.uid) == 0 then
            array[#array +1] = container
        else
            local size = getContainerSize(container.uid)
            haveCap = (getContainerCap(container.uid) -size) > 0
            for slot = 0, (size -1) do
                local item = getContainerItem(container.uid, slot)
                if item.itemid > 1 then
                    getContainerItems(item, array, haveCap)
                end
            end
        end
        return #array >= 1 and array, haveCap
    end
    function getContainerItemsById(container, itemid)
        local founds = {}
        local items = not container.uid and container or getContainerItems(container)
        for index, item in pairs(items) do
            if item.itemid == itemid then
                founds[#founds +1] = item
            end
        end
        return #founds >= 1 and founds
    end
    function AutomaticDeposit(cid, item, n)
       if isInArray(info.Money_ids, item) and getPlayerStorageValue(cid, info.Storages[4]) > 0 then
          local deposit = item == tonumber(2160) and (n*10000) or tonumber(item) == 2152 and (n*100) or (n)
          doPlayerDepositMoney(cid, deposit)
       end
       return true
    end
    function getAllContainerFree(cid) -- by vodka
        local containers,soma = {},0
        for i = CONST_SLOT_FIRST, CONST_SLOT_LAST do
            local sitem = getPlayerSlotItem(cid, i)
            if sitem.uid > 0 then
                if isContainer(sitem.uid) then
                    table.insert(containers, sitem.uid)
          soma = soma + getContainerSlotsFree(sitem.uid)
                end
            end
        end
        while #containers > 0 do
            for k = (getContainerSize(containers[1]) - 1), 0, -1 do
                local tmp = getContainerItem(containers[1], k)
                if isContainer(tmp.uid) then
                    table.insert(containers, tmp.uid)
                    soma = soma + getContainerSlotsFree(tmp.uid)
                end
            end
            table.remove(containers, 1)
        end
        return soma
    end
    function getContainerSlotsFree(container) -- by vodka
            return getContainerCap(container)-getContainerSize(container)
    end
    function doPlayerAddItemStackable(cid, itemid, count)
        local container = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)
        if container.itemid > 1 then
            local items = getContainerItemsById(container, itemid)
            if not items then
                return doPlayerAddItem(cid, itemid, count)
            else
                local piles = #items
                for index, item in pairs(items) do
                    if item.type < 100 then
                        local sum = item.type + count
                        local result = doTransformItem(item.uid, itemid, sum)
                        if sum <= 100 then
                            return result
                        else
                            return doPlayerAddItem(cid, itemid, sum - 100)
                        end
                    else
                        piles = piles - 1
                        if piles == 0 then
                            return doPlayerAddItem(cid, itemid, count)
                        end
                    end
                end
            end
        end
        return false
    end
    function corpseRetireItems(cid, pos)
       local check, slots = false, 0
       for i = 0, 255 do
          pos.stackpos = i
          tile = getTileThingByPos(pos)
          if tile.uid > 0 and isCorpse(tile.uid) then
             check = true break
          end
       end
       if check == true then
          local str, var = "", getContainerItems(tile)
          if var then
             local list = getItensFromAutoloot(cid)
             for _, item in pairs(var) do
                local id = item.itemid
                if #list > 0 and isInArray(list, id) or getPlayerStorageValue(cid, info.Storages[2]) > 0 and isInArray(info.Money_ids, id) then
                   local info = getItemInfo(id)
                   local amount = isItemStackable(id) and item.type or 1
                   local total_cap = getItemWeight(item.uid)*amount
                   slots = getAllContainerFree(cid)
                   if slots > 0 and getPlayerFreeCap(cid) >= total_cap then
                      if isItemStackable(id) then
                         str = str.." "..amount.." "..(amount > 1 and info.plural or info.name)..","
                         doPlayerAddItemStackable(cid, id, amount)
                         AutomaticDeposit(cid, id, amount)
                      else
                         str = str.." ".. info.article.." " .. info.name ..","
                         doPlayerAddItem(cid, id)
                      end
                      doRemoveItem(item.uid)   
                   end
                end
             end
             
          end
       end
    end
    function ExistItemByName(name) -- by vodka
        local items = io.open("data/items/items.xml", "r"):read("*all")
        local get = items:lower():match('name="' .. name:lower() ..'"')
        if get == nil or get == "" then
            return false
        end
    return true
    end
    ]]></config>
    <event type="login" name="LootLogin" event="script"><![CDATA[
    domodlib('Loot_func')
    function onLogin(cid)
       registerCreatureEvent(cid, "LootEventKIll")
       if isPremium(cid) and getPlayerStorageValue(cid, 853608) <= 0 then
          setPlayerStorageValue(cid, 853608, 1)
       elseif getPlayerStorageValue(cid, 853608) > 0 and not isPremium(cid) then
          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Auto Loot] You premium is Over, Start a new list!")
          setPlayerStorageValue(cid, 853608, -1)
          doCleanAutoloot(cid)
       end
       return true
    end]]></event>
    <event type="kill" name="LootEventKIll" event="script"><![CDATA[
    domodlib('Loot_func')
    function onKill(cid, target, lastHit)
       if isPlayer(cid) and getPlayerStorageValue(cid, info.Storages[1]) <= 0 and isMonster(target) and not isInArray(info.BlockMonsters, getCreatureName(target):lower()) then
          addEvent(corpseRetireItems, 0, cid ,getThingPos(target))
       end
       return true
    end]]></event>
    <talkaction words="!autoloot;/autoloot" event="buffer"><![CDATA[
    domodlib('Loot_func')
    local param, slots = param:lower(), isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free
    if not param or param == "" then
       ShowItemsTabble(cid) return true
    elseif tonumber(param) then
       doPlayerSendCancel(cid, "enter commands: !autoloot item name [+] !autoloot clean [+] !autoloot money [+] !autoloot on/off") return true
    elseif isInArray({"clean","limpar", "clear"}, param) then
       if existsAutoloot(cid) then doCleanAutoloot(cid) end
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Your list has been cleaned.") return true
    elseif isInArray({"help"}, param) then
        showPlayerAutolootHelp(cid) return true
    elseif isInArray({"start","stop","on","off"}, param) then
       setPlayerStorageValue(cid, info.Storages[1], getPlayerStorageValue(cid, info.Storages[1]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot "..(getPlayerStorageValue(cid, info.Storages[1]) > 0 and "Stopped" or "Started")..".") return true
    elseif isInArray({"warn","aviso"}, param) then
       setPlayerStorageValue(cid, info.Storages[3], getPlayerStorageValue(cid, info.Storages[3]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot Backpack Warn "..(getPlayerStorageValue(cid, info.Storages[3]) > 0 and "disabled" or "Activated")..".") return true
    elseif isInArray({"mensagem","message","mensagen","msg"}, param) then
       setPlayerStorageValue(cid, info.Storages[6], getPlayerStorageValue(cid, info.Storages[6]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot Message "..(getPlayerStorageValue(cid, info.Storages[6]) > 0 and "disabled" or "Activated")..".") return true
    elseif isInArray({"cor","color","type"}, param) then
       setPlayerStorageValue(cid, info.Storages[5], getPlayerColorLootMessage(cid) == #Color_Loot and 0 or getPlayerColorLootMessage(cid)+1)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot Message Color Changed to "..Color_Loot[getPlayerColorLootMessage(cid)][2]..".") return true
    elseif isInArray({"money","gold","gps","dinheiro"}, param) then
       setPlayerStorageValue(cid, info.Storages[2], getPlayerStorageValue(cid, info.Storages[2]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot Gold Colleting "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "disabled")..".") return true
    elseif isInArray({"deposito","bank","gbank","deposit","autodeposit"}, param) then
       setPlayerStorageValue(cid, info.Storages[4], getPlayerStorageValue(cid, info.Storages[4]) <= 0 and 1 or 0)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Automatic Gold Bank "..(getPlayerStorageValue(cid, info.Storages[4]) > 0 and "Activated" or "disabled")..".") return true
    end
    if info.distro ~= 1 then
       item = ExistItemByName(tostring(param))
       if not item then
          doPlayerSendCancel(cid, "This item does not exist.") return true
       end
       item = getItemIdByName(tostring(param))
    else
       item = getItemIdByName(param, false)
       if not item then
          doPlayerSendCancel(cid, "This item does not exist.") return true
       end
    end
    local var = isInTable(cid, item)
    if isInArray(info.Money_ids, item) then
       doPlayerSendTextMessage(cid, MESSAGE_FIRST, "Enter !autoloot money to add money in your list!") return true   
    elseif isInArray(info.BlockItemsList, item) then
       doPlayerSendCancel(cid, "You can not add this item in the list!") return true
    elseif not var and #getItensFromAutoloot(cid) >= slots then
       doPlayerSendCancel(cid, "max "..slots.." from auto loot") return true
    elseif getPlayerStorageValue(cid, info.Storages[7]) - os.time() > 0 then
          doPlayerSendCancel(cid, "wait a second to use this command again") return true
    end
    if not var then
       doAddItemFromAutoloot(cid, item)
    else
       doremoveItemFromAutoloot(cid, item)
    end
    setPlayerStorageValue(cid, info.Storages[7], os.time()+info.Talkaction_delay)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,not var and "you added the item "..param.." in the list" or "you removed the item "..param.." from the list, please wait 5 seconds to save the directory.")
    return true]]></talkaction>
    </mod>

    3 participantes
    http://google.com

    14Error consola Autoloot Empty Re: Error consola Autoloot Jue Mayo 27, 2021 2:22 pm

    ioke

    ioke
    Miembro
    Miembro
    no funciona no deje añadir items sale ke el item no existe

    3 participantes
    http://baiakciteron.sytes.net

    15Error consola Autoloot Empty Re: Error consola Autoloot Jue Mayo 27, 2021 11:17 pm

    Touch Me

    Touch Me
    Miembro
    Miembro
    Sin el add, ni rem,
    !autoloot demon shield ( agregar o en caso de que lo tengas agregado lo remueve )
    !autoloot golden armor
    !autoloot money (activa o desactiva recolección de dinero )
    !autoloot deposit ( activa o desactiva que el dinero vaya directo al bank)

    3 participantes
    http://google.com

    16Error consola Autoloot Empty Re: Error consola Autoloot Vie Mayo 28, 2021 4:04 am

    ioke

    ioke
    Miembro
    Miembro
    de.moemento va genial gracias



    sigue dando el.error en la.consola

    Código:


    [15:44:01.973] [Error - CreatureScript Interface]
    [15:44:01.973] In a timer event called from:
    [15:44:01.973] domodlib("AutolootRevolutionBT")
    [15:44:01.989] function onDeath(cid, corpse, deathList)
    [15:44:01.989]    local killer = deathList[1]
    [15:44:01.989]    local position = getThingPosition(cid)
    [15:44:02.004]    if corpse.itemid > 1 then
    [15:44:02.004]        addEvent(doCorpseAutoloot, 100, killer, position, corpse.itemid)
    [15:44:02.020]    end
    [15:44:02.020]    return true
    [15:44:02.020] end
    [15:44:02.020] :onDeath
    [15:44:02.020] Description:
    [15:44:02.020] (LuaInterface::internalGetPlayerInfo) Player not found when requesting player info #3

    [15:44:02.036] [Error - CreatureScript Interface]
    [15:44:02.036] In a timer event called from:
    [15:44:02.051] domodlib("AutolootRevolutionBT")
    [15:44:02.051] function onDeath(cid, corpse, deathList)
    [15:44:02.051]    local killer = deathList[1]
    [15:44:02.051]    local position = getThingPosition(cid)
    [15:44:02.067]    if corpse.itemid > 1 then
    [15:44:02.067]        addEvent(doCorpseAutoloot, 100, killer, position, corpse.itemid)
    [15:44:02.083]    end
    [15:44:02.083]    return true
    [15:44:02.083] end
    [15:44:02.083] :onDeath
    [15:44:02.083] Description:
    [15:44:02.098] [string "---@ You configurations:..."]:141: attempt to compare boolean with number
    [15:44:02.098] stack traceback:
    [15:44:02.114]  [string "---@ You configurations:..."]:141: in function <[string "---@ You configurations:..."]:139>

    3 participantes
    http://baiakciteron.sytes.net

    17Error consola Autoloot Empty Re: Error consola Autoloot Vie Mayo 28, 2021 10:48 am

    Touch Me

    Touch Me
    Miembro
    Miembro
    Seguro que pusiste el correcto? Porque en el script que te pase ni siquiera hay función onDeath que es la que te tira error en la consola xD
    Y asegúrate de quitar tu otro autoloot

    3 participantes
    http://google.com

    18Error consola Autoloot Empty Re: Error consola Autoloot Dom Mayo 30, 2021 9:55 am

    ioke

    ioke
    Miembro
    Miembro
    tienes rqzon que raro lo probare de nuevo de momento va bien ya cualquier cosa te digo

    3 participantes
    http://baiakciteron.sytes.net

    Contenido patrocinado


    3 participantes

    Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje (Página 1 de 1.)

    Permisos de este foro:
    No puedes responder a temas en este foro.

     

    BienvenidosTibiaFace es una comunidad de Open Tibia. Para participar debes estar registrado (click para Regístrate).