XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: Move item from Mail box to backpack problem;/

  1. #1

    Join Date
    Oct 2014
    Posts
    65
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Move item from Mail box to backpack problem;/

    Code:
    		local contfrom = Container.New('Your Inbox')
    		while not contfrom:isOpen() do
    			contfrom = Container.New('Your Inbox')
    			local dp = Container.New('Locker')
    			for mailspot, touse in dp:iItems() do
    				if touse.id == 12902 then
                    dp:UseItem(mailspot, true)
                    wait(500, 1700)
    				end
    			end
    		end
    				local DestinationBp = Container.GetByName("Blue Backpack")
    				for spot = 0, contfrom:ItemCount() do 
    					local item = contfrom:GetItemData(spot)
    						if(Self.Cap() - Item.GetWeight(item.id) <1) then
    							Walker.Start()
    							break
    						end
    						if(DestinationBp:ItemCount() == 20) then
    							DestinationBp:UseItem(DestinationBp:ItemCount()-1,true)
    						end
    						print("add")
    						--if not (contains(Item.GetName(item.id),BlueDjinn)) then
    							contfrom:MoveItemToContainer(spot,DestinationBp:Index(),0)
    						--end
    					wait(500,550)
    				end
    but add items to random bp or do nothink and print add;//

  2. #2

    Join Date
    Sep 2015
    Posts
    75
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dekros View Post
    Code:
    		local contfrom = Container.New('Your Inbox')
    		while not contfrom:isOpen() do
    			contfrom = Container.New('Your Inbox')
    			local dp = Container.New('Locker')
    			for mailspot, touse in dp:iItems() do
    				if touse.id == 12902 then
                    dp:UseItem(mailspot, true)
                    wait(500, 1700)
    				end
    			end
    		end
    				local DestinationBp = Container.GetByName("Blue Backpack")
    				for spot = 0, contfrom:ItemCount() do 
    					local item = contfrom:GetItemData(spot)
    						if(Self.Cap() - Item.GetWeight(item.id) <1) then
    							Walker.Start()
    							break
    						end
    						if(DestinationBp:ItemCount() == 20) then
    							DestinationBp:UseItem(DestinationBp:ItemCount()-1,true)
    						end
    						print("add")
    						--if not (contains(Item.GetName(item.id),BlueDjinn)) then
    							contfrom:MoveItemToContainer(spot,DestinationBp:Index(),0)
    						--end
    					wait(500,550)
    				end
    but add items to random bp or do nothink and print add;//
    YO! I used this and its awesome but it get stuck after withdrawing 31 items? :S always 31 items somehow. u know how to fix this? :P

Posting Permissions

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