Signup Now
Results 1 to 3 of 3
  1. #1
    Free User
    Join Date
    Feb 2014
    Posts
    14
    Reputation
    10
    Rep Power
    0

    moveitems with Diamond Arrows

    Hello there,

    I am trying to move diamond arrows from depot backpack to supplies backpack.

    Everything works, except not moving the damn arrows.

    I added the new ammunition ids to items.xml and spells.xml, and the itemcount(ammoId) recognizes the the item id.

    But moveitems() does not.

    Any ideas?

    Here is my code:

    Code:
    local item = 25757
    local itemamount = tonumber(getuseroption('MaxAmmo'))
    local bp = {
    		to = getuseroption('SuppliesBP'),
    		from = 'blue backpack'
    	}
    
    while windowcount("Depot Chest") == 0 do
    	opendepot()
    end
    
    openitem(bp.from, 'Depot Chest', false)
    wait(800,1000)
    
    amounttowithdraw = itemamount-itemcount(item, bp.to)
    
    while itemcount(item, bp.to) < itemamount and (itemcount(item, bp.from) >= 1 or itemcount(bp.from, bp.from) == 1) do
    
    	moveitems(item, bp.to, bp.from, 100)
    	wait(500,1000)
    
    	if itemcount(item, bp.from) == 0 and itemcount(bp.from, bp.from) == 1 then
    		openitem(bp.from, bp.from, false)
    	end
    
    	amounttowithdraw = itemamount-itemcount(item, bp.to)
    end

    Yours,
    Zed.

  2. #2
    Wind Powered
    Join Date
    Mar 2016
    Posts
    6
    Reputation
    10
    Rep Power
    0
    bump, have same problem

  3. #3
    Free User
    Join Date
    May 2015
    Posts
    26
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by edllacarme View Post
    bump, have same problem
    i have the solution

 

 

Posting Permissions

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