Signup Now
Results 1 to 2 of 2
  1. #1
    Free User
    Join Date
    Oct 2016
    Posts
    45
    Reputation
    17
    Rep Power
    0

    Yet another need advice.`

    I have this, but no matter what I do I can;t seem to get it to work properly.. it looks correct to me, I don't see anything wrong in terms of misspellings and such.

    PHP Code:
    --Withdraw items
    --Backpacks
    local main 
    getuseroption('MainBP')
    local rare getuseroption('LootBP')
    local supply getuseroption('SupplyBP')
    local itemdpnumberid getuseroption('EquipBP')
    local depot "Depot Chest"
    -- Withdraw ammo
    local ammo 
    itemcount(bolttypesupply) + itemcount(bolttype'belt')
    local ammo1 itemcount(speartypesupply) + itemcount(speartype'belt')
    local ammo2 itemcount(arrowtypesupply) + itemcount(arrowtype'belt')
    local usebolt getuseroption('UseBolt')
    local bolttype getuseroption('BoltType')
    local boltwith getuseroption('BoltWith')
    local usespear getuseroption('UseSpear')
    local speartype getuseroption('SpearType')
    local spearwith getuseroption('SpearWith')
    local usearrow getuseroption('UseArrow')
    local arrowtype getuseroption('ArrowType')
    local arrowwith getuseroption('ArrowWith')


    --
    Open backpacks
    closewindows
    (rare)
    wait(500,700)
    resizewindows()
    closewindows(depot)
    wait(500,700)
    resizewindows()
     
    while 
    windowcount(main) == do
        
    openitem(0'back')
        
    wait(500,1000)
        
    resizewindows(0'0')
        
    wait(500,1000)
    end


    while windowcount(supply) == and itemcount(supplymain) > do
        
    openitem(supplymaintrue)
        
    wait(5001000)
        
    resizewindows()
        
    wait(300,500)
    end
     
    while windowcount("Depot Chest") == do
        
    opendepot(true)
        
    wait(300)
        
    openitem(3502)
        
    wait(500)
        
    openitem(22796 itemdpnumberid)
        
    wait(500)
    end

     
        
    while getuseroption('UseBolt') and itemcount(bolttypeammo) < boltwith and itemcount(bolttypeitemname(22796+itemdpnumberid)) > do
            
    moveitems(bolttypesupplyitemname(22796+itemdpnumberid), boltwith itemcount(bolttypeammo))
            
    wait(300,500)
    end

        
    while getuseroption('UseSpear') and itemcount(speartypeammo1) < spearwith and itemcount(speartypeitemname(22796+itemdpnumberid)) > do
            
    moveitems(speartypesupplyitemname(22796+itemdpnumberid), spearwith itemcount(speartypeammo1))
            
    wait(300,500)
    end

        
    while getuseroption('UseArrow') and itemcount(arrowtypeammo2) < arrowwith and itemcount(arrowtypeitemname(22796+itemdpnumberid)) > do
            
    moveitems(arrowtypesupplyitemname(22796+itemdpnumberid), arrowwith itemcount(arrowtypeammo2))
            
    wait(300,500)
    end 
    Last edited by lyagami; 12-26-2016 at 06:25 PM.

  2. #2
    Free User
    Join Date
    Oct 2016
    Posts
    45
    Reputation
    17
    Rep Power
    0
    bump. Someone must have an idea of how to work this out or if it's written wrong.

 

 

Posting Permissions

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