Results 1 to 8 of 8

Thread: Check deposit LootBP> LootBP

  1. #1
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5

    Check deposit LootBP> LootBP

    A check of LootBP opening one by one and check if any item rest, and then back to label?
    Last edited by Eli; 04-08-2014 at 12:36 PM.

  2. #2
    Banned
    Join Date
    Jan 2013
    Posts
    1,792
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    76 Post(s)
    Reputation
    191
    Rep Power
    0
    write more info? back to label if in these backpack will be any other item than one bp to open? or what you need.

  3. #3
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    I just need an action that checks whether the left item LootBp if you fail to Deposit, then the action will check for backpacking backpack Loot, and if you find any item back to label the deposit

    See a workaround for you to have an idea of how

    PHP Code:
    closewindows() 
    while(
    windowcount() < 2) do 
        
    closewindows() 
        
    wait(5001000
        
    openitem(MainBP'back')  
        
    wait(5001500
        
    resizewindows() 
        
    wait(5001000
        
    openitem(LootBPMainBPtrue)  
        
    wait(5001500
        
    resizewindows()     
        
    wait(5001000
    end 

      
    if(itemcount(LootBP,LootBP) > 0then 
            openitem
    (LootBPLootBP
            
    wait(700,900
        else 
            
    haveNextBP false 
        end 

    local depositItems 
    = {'Small Emerald''Elvish Bow'
    local LootBP 'minotaur Backpack'
    local depotLabel 'depotDEPOSIT'
     
    for 1#depositItems do 
        
    if itemcount(depositItems[i], LootBP) > 1 then 
            gotolabel
    (depotLabel
        
    end 
    end 
    It's just to have an idea, but that code ta all screwed
    Last edited by jNo The Best; 04-04-2014 at 05:25 PM.

  4. #4
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    Help?

  5. #5
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    Lua Code:
    closewindows() 
    while(windowcount() < 2) do 
        closewindows() 
        wait(500, 1000) 
        openitem(MainBP, 'back')  
        wait(500, 1500) 
        resizewindows() 
        wait(500, 1000) 
        openitem(LootBP, MainBP, true)  
        wait(500, 1500) 
        resizewindows()     
        wait(500, 1000) 
    end 
    local depositItems = {'Small Emerald', 'Elvish Bow'} 
    local LootBP = 'minotaur Backpack'
    local depotLabel = 'depotDEPOSIT'
    local found = false
     
    while not found do
    	for i = 1, #depositItems do 
    		if itemcount(depositItems[i], LootBP) > 0 then 
    			found = true
    			break
    		end 
    	end  
     
    	if(itemcount(LootBP,LootBP) > 0) then 
    		openitem(LootBP, LootBP) 
    		wait(700,900) 
    	else 
    		break 
    	end 
    end
     
    if found then gotolabel(depotLabel) end
    Last edited by walukasz; 04-07-2014 at 05:18 PM.

  6. #6
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    Only one problem, he does not return deposit is to label any item within backpacks

  7. #7
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    there was one mistake, that you made and I copied it, try now. I will test it tomorrow also.

  8. #8
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    Perfect brother, you are the best! Thanks for the dedication that certainly + rep

Posting Permissions

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