XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: move items from bp to bp with checker

  1. #1

    Join Date
    Sep 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    move items from bp to bp with checker

    Hello!
    Im Looking for script which :
    move items from the backpack to backpack. but if i choose ( 200 mana potions ) he take only 200 manas
    soo

    i need move items with itemcount

    thanks, Mihelox here

  2. #2

    Join Date
    Jul 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    XtrmJosh script
    buy potion with check. (Label name - BuyMana)

    PHP Code:

    local BuyMana 
    200 --- How many mana potions you begin the hunt with?
    local ManaName "Strong Mana Potion" --- Change potion name
    local ManaCost 
    80 --- Potion cost
    local ManaID 
    Item.GetID(ManaName)

    -- 
    These are the flask IDsnot worth changing since it will sell all flasks regardless of type.
    local FlaskID 283
    local FlaskIDA 
    284
    local FlaskIDB 
    285

    function onWalkerSelectLabel(labelName)
        elseif (
    labelName == "BuyMana"then
            Walker
    .Stop()
            
    Self.SayToNpc({"hi""trade"}, 100)
            -- 
    Buy manasmake sure Self.ItemCount returns items in hands.
            while (
    Self.ItemCount(ManaID) < BuyMana) do
                
    Self.ShopBuyItemsUpTo(ManaIDBuyMana)
                
    wait(500,800)
            
    end
            Walker
    .Start()
        
    end
    end 

    got this one on random post.
    move item while buying potions. (No Label)
    PHP Code:
    Module.New('SuppMover', function(suppmovemodule)
    local ManaID 237 --- Strong Mana Potion
    local ManasBP 
    "Yellow Backpack"
    local items = {ManaID}
     
    bp1 Container(0)
        for 
    spotitem in bp1:iItems() do
            if (
    table.contains(itemsitem.id))  then
                bp1
    :MoveItemToContainer(spotContainer.New(ManasBP):Index())
            
    end
        end
        suppmovemodule
    :Delay(5001000)
    end
    Last edited by melimao; 07-21-2016 at 05:57 PM.

  3. #3

    Join Date
    Dec 2014
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would you know how to move crystalline arrows from my dp, to my fourth backpack, which would be my ammo bp?

  4. #4

    Join Date
    Jun 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by melimao View Post
    XtrmJosh script
    buy potion with check. (Label name - BuyMana)

    got this one on random post.
    move item while buying potions. (No Label)


    This can be modified really easily to move a list of items to a backpack (the infrastructure already exists, it's just referencing an inefficient local variable). For example, if you want it to move all your different potions or created runes / ammo without running multiple scripts - just throw in all of the item IDs you want moved to your ammo / rune / pots backpack.

    PHP Code:


    Module
    .New('SuppMover', function(suppmovemodule)
    local ManasBP "Yellow Backpack" --- Backpack name label. Use different coloured backpacks as your first backpack
    local items 
    = {31613147} --- Item ID list
     
    bp1 Container(0)
        for 
    spotitem in bp1:iItems() do
            if (
    table.contains(itemsitem.id))  then
                bp1
    :MoveItemToContainer(spotContainer.New(ManasBP):Index())
            
    end
        end
        suppmovemodule
    :Delay(500800)
    end
    Note: There's no error checking, if the backpack is full, your client will just loop a "You cannot put more objects...." error. If anyone is a bit of a perfectionist and would like to help complete this just for the sake of it, that'd be awesome.

    You can also have multiple backpacks - see my really crude, amateurish example below. Again, if anyone feels the need to improve it feel free to, but it works:

    PHP Code:

    Module
    .New('SuppMover', function(suppmovemodule)
    local ManasBP "Yellow Backpack"
    local FoodBP "Moon Backpack"
    local ManasList = {31613147}
    local FoodList = {3725}
     
    bp1 Container(0)
        for 
    spotitem in bp1:iItems() do
            if (
    table.contains(ManasListitem.id))  then
                bp1
    :MoveItemToContainer(spotContainer.New(ManasBP):Index())
        elseif (
    table.contains(FoodListitem.id)) then
            bp1
    :MoveItemToContainer(spotContainer.New(FoodBP):Index())
            
    end
        end
        suppmovemodule
    :Delay(500800)
    end

    Thanks for the original code, this helped me
    Last edited by Pat; 11-03-2017 at 03:06 AM.

Posting Permissions

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