avatar
Untitled

Guest 37 1st Dec, 2019

MARKUP 1.51 KB
                                           
                         Self.UseItemFromEquipment('backpack')
        main = Container.GetFirst()
        while (main.Name == nil or main:Name():lower() ~= CONTAINER_GOLD) do
            sleep(50)
            main = Container.GetFirst()
        end
        main:Minimize()

        for k, v in main:iItems() do
            local slot = k
            local item = v

            local name = Item.GetName(item.id):lower()
            if name:find('backpack') then
                inside_main[name] = function()
                    local item_used = main:UseItem(slot)
                    while (not item_used) do
                        sleep(50)
                        --print(name .. ' item was not used !')
                        item_used = main:UseItem(slot)
                    end
                    local container = Container.GetLast()
                    while (container.Name == nil or container:Name():lower() ~= name) do
                        sleep(50)
                        container = Container.GetLast()
                    end
                    container:Minimize()
                    return container
                end
            end
        end

        inside_main[CONTAINER_ULTIMATE_HEALTH_POTION]()
        inside_main[CONTAINER_GREAT_HEALTH_POTION]()
        inside_main[CONTAINER_MANA_POTION]()
        inside_main[CONTAINER_FOOD]()
        inside_main[CONTAINER_VALUABLES]()
        inside_main[CONTAINER_ITEMS]()
        inside_main[CONTAINER_STORAGE]()
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes