Signup Now
Results 1 to 1 of 1

Thread: Error!

  1. #1
    Free User
    Join Date
    Jan 2014
    Posts
    144
    Reputation
    10
    Rep Power
    21

    Error!

    It give me error and don't anything from withdraw. :/
    Someone can fix this?
    PHP Code:
    -- Item Withdrawer
    mainbp 
    getlootingdestination('mainbp')
    suppbp getlootingdestination('suppbp')
    suppbp2 getlootingdestination('suppbp2')
    extraitembp getlootingdestination('extraitembackpack')

    local Withdraw = {
        {
    Name "great mana potion"Amount tonumber(getuseroption("MpToBuy")), Check getuseroption("potions"), Destination suppbp},
        {
    Name "great fireball rune"Amount tonumber(getuseroption("GfbToBuy")), Check getuseroption("runes"), Destination suppbp},
        {
    Name "thunderstorm rune"Amount tonumber(getuseroption("TsrToBuy")), Check getuseroption("runes"), Destination suppbp},
        {
    Name "flask of rust remover"Amount 50Check getuseroption("flasks"), Destination mainbp},
        {
    Name getuseroption("ringsname"), Amount tonumber(getuseroption("ringsamount")), Check getuseroption("rings"), Destination suppbp2},
        {
    Name getuseroption("amuletsname"), Amount tonumber(getuseroption("amuletsamount")), Check getuseroption("amulets"), Destination suppbp2},
    }
    if 
    getuseroption("potions") or getuseroption("runes") or getuseroption("rings") or getuseroption("amulets") or getuseroption("flasks"then
        setsetting
    ('Looting/OpenNextBP''no')

        
    closewindows()
        
    wait(1000)
        while 
    windowcount(mainbp) < do
            if 
    windowcount(mainbp) < 1 then
                closewindows
    ()
                
    wait(1000)
            
    end
            openitem
    (0'back')
            
    wait(500,1000)
            
    resizewindows(0'0')
            
    wait(500,1000)
        
    end
        
        
    while windowcount("Depot Chest") == do
            
    opendepot()
            
    wait(300)
        
    end
        
    while windowcount(extraitembp) == do
            
    openitem(extraitembp"Depot Chest"false)
            
    wait(1000)
        
    end
        
        resizewindows
    (100extraitembp)
        
    wait(700)
            
        while 
    true do
            
    local More false
            
    for _DP in ipairs(Withdraw) do
                if 
    DP.Check then
                    
    while windowcount(DP.Destination) == do
                        
    openitem(DP.Destinationmainbptrue)
                        
    wait(1000)
                        
    resizewindows(0DP.Destination)
                        
    wait(500,1000)
                    
    end
                    Amount 
    DP.Amount itemcount(DP.NameDP.Destination)
                    
    DepoAmount itemcount(DP.Nameextraitembp)
                    while 
    itemcount(DP.Nameextraitembp) > and Amount do
                        
    moveitems(DP.NameDP.DestinationextraitembpAmount)
                        
    wait(300400)
                        
    Amount DP.Amount itemcount(DP.NameDP.Destination)
                    
    end
                    
    if Amount 0 then
                        More 
    true
                    end
                end
            end        
        end 
    Last edited by igaao; 09-23-2017 at 03:03 AM. Reason: Added SS from error

 

 

Posting Permissions

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