XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 8 of 8

Thread: Move mana potions and uhp to supplies backpack

  1. #1

    Join Date
    Feb 2016
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Move mana potions and uhp to supplies backpack

    Hello, i need script to move my mana potions and uhp from main bp to my supply backpack 'blue backpack'

    have anyone?

  2. #2
    Senior Member
    Join Date
    Sep 2014
    Posts
    426
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    go buy licence first
    SOLD 145 EK to @FiestaMan
    SOLD 105 PALL to @botas
    SOLD 180 EK to @chomiczenko
    SOLD 120 ED to @chomiczenko
    SOLD 126RP to @PunktG
    SOLD 81RP to @PunktG
    SOLD 118 RP to @PunktG
    SOLD 101 RP to @PunktG
    SOLD 77 RP to @PunktG
    SOLD 2500 tibia coins to @grinkuk
    SOLD 750 tibia coins to @grinkuk
    SOLD 3200 tibia coins to @grinkuk
    SOLD 200 tibia coins to @iMike

  3. #3

    Join Date
    Feb 2016
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    stfu idiot say something usefull

  4. #4
    dean015's Avatar
    Join Date
    Nov 2015
    Posts
    119
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    @headkevin
    Code:
    local SuppliesBP = "Jewelled backpack"
    Code:
    Module.New('Shove-pots', function(mod)
        local DROP_ITEMS = {"mana potion", "great health potion", "ultimate health potion"}
     
        for i = 0, #Container.GetAll() do   -- let's find bps
            search = Container.New(i)
            cont = Container.New(SuppliesBP)
            for spot = 0, cont:ItemCount() do
                local item = search:GetItemData(spot)
                if cont:isOpen() and search:Name() ~= cont:Name() then
                    if table.find(DROP_ITEMS, Item.GetName(item.id)) and not cont:isFull() then
                        search:MoveItemToContainer(spot, cont:Index(), 0, 100)  -- just shove to selected bp
                    end
                end
            end
        end
    end)
    just edit it to move whatever you want to move

    but if you open a dp box with these items it will move them all to the bp

  5. #5
    Moderator Elvang's Avatar
    Join Date
    Dec 2010
    Location
    B.C. Canada
    Posts
    1,365
    Mentioned
    104 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by wuuuduu View Post
    go buy licence first
    Registered in February.. trial.

  6. #6
    Senior Member
    Join Date
    Sep 2014
    Posts
    426
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    he is using crack, he made new acc, he ain't stupid xd
    SOLD 145 EK to @FiestaMan
    SOLD 105 PALL to @botas
    SOLD 180 EK to @chomiczenko
    SOLD 120 ED to @chomiczenko
    SOLD 126RP to @PunktG
    SOLD 81RP to @PunktG
    SOLD 118 RP to @PunktG
    SOLD 101 RP to @PunktG
    SOLD 77 RP to @PunktG
    SOLD 2500 tibia coins to @grinkuk
    SOLD 750 tibia coins to @grinkuk
    SOLD 3200 tibia coins to @grinkuk
    SOLD 200 tibia coins to @iMike

  7. #7

    Join Date
    Jan 2014
    Posts
    32
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dean015 View Post
    @headkevin
    Code:
    local SuppliesBP = "Jewelled backpack"
    Code:
    Module.New('Shove-pots', function(mod)
        local DROP_ITEMS = {"mana potion", "great health potion", "ultimate health potion"}
     
        for i = 0, #Container.GetAll() do   -- let's find bps
            search = Container.New(i)
            cont = Container.New(SuppliesBP)
            for spot = 0, cont:ItemCount() do
                local item = search:GetItemData(spot)
                if cont:isOpen() and search:Name() ~= cont:Name() then
                    if table.find(DROP_ITEMS, Item.GetName(item.id)) and not cont:isFull() then
                        search:MoveItemToContainer(spot, cont:Index(), 0, 100)  -- just shove to selected bp
                    end
                end
            end
        end
    end)
    just edit it to move whatever you want to move

    but if you open a dp box with these items it will move them all to the bp
    ur code move suppiles when buying manas or when bot finished talk with npc?

  8. #8
    dean015's Avatar
    Join Date
    Nov 2015
    Posts
    119
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Tirell View Post
    ur code move suppiles when buying manas or when bot finished talk with npc?
    constantly moving stuff it finds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •