Signup Now
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Free User
    Join Date
    Apr 2014
    Posts
    14
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Darknesium View Post
    Hi @Bozen can you help me a bit pleaaaase? i used your code (modified to my settings) and cant make it work... it does the depotaction, opens all bps but wont take out the "brown mushrooms" or "treasure map"

    This is my actual code

    --Depositer--
    local dpbp = getlootingdestination("dpbp")
    local rarebp = getlootingdestination("rarebp")
    local stuffdp = getlootingdestination("stuffdp")
    local mainbp = getlootingdestination("mainbp")

    depotaction(dpbp, 'rarebp', {'r', 'raredp', 's', 'stackdp'})
    closewindows(dpbp)
    wait(400,800)
    opendepot()
    wait(400,800)
    openitem(stuffdp, "Depot Chest", false)
    wait(400, 800)
    end

    while itemcount("brown mushrooms", mainbp) < 50 and itemcount("brown mushrooms", stuffdp) > 0
    do
    moveitems("brown mushrooms", mainbp, stuffdp, (50 - itemcount("brown mushrooms", mainbp)))
    wait(500, 1000)


    while itemcount("treasure map", mainbp) < 1 and itemcount("treasure map", stuffdp) > 0
    do
    moveitems("treasure map", mainbp, stuffdp, 1)
    wait(500, 1000)
    end

    Before this action you need to open bps the right way. Do you have your mainbp open when it goes to depot? Also have you written the looting destinations name right? Both variable name and backpack!

    If you use Brown Backpack as main bp. Test to write "brown backpack" in looting destiantion instead of only backpack. and if you have written "brown backpack" test just backpack.


    Tell me if this fixes it!


    EDIT---------
    Your code misses an end in the second while loop. Sure this action haven't throwed errors? Just put end on line 21!

  2. #12
    Free User Darknesium's Avatar
    Join Date
    Feb 2014
    Location
    Chile
    Posts
    145
    Reputation
    11
    Rep Power
    21
    Quote Originally Posted by Bozen View Post
    Before this action you need to open bps the right way. Do you have your mainbp open when it goes to depot? Also have you written the looting destinations name right? Both variable name and backpack!

    If you use Brown Backpack as main bp. Test to write "brown backpack" in looting destiantion instead of only backpack. and if you have written "brown backpack" test just backpack.


    Tell me if this fixes it!


    EDIT---------
    Your code misses an end in the second while loop. Sure this action haven't throwed errors? Just put end on line 21!
    Mm about the end no it doesnt... it throwed when i had the end right there, seems it takes both whiles as 1 loop. Its actually not throwing any error
    BUT i checked and re checked that the bp's were ok... so i will recheck later when i come back from university lol

  3. #13
    Free User
    Join Date
    Apr 2014
    Posts
    14
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Darknesium View Post
    Mm about the end no it doesnt... it throwed when i had the end right there, seems it takes both whiles as 1 loop. Its actually not throwing any error
    BUT i checked and re checked that the bp's were ok... so i will recheck later when i come back from university lol

    End at line 15 shouldn't be there either! Move that end to line 21 instead.

  4. #14
    Free User
    Join Date
    Apr 2014
    Posts
    14
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Darknesium View Post
    Mm about the end no it doesnt... it throwed when i had the end right there, seems it takes both whiles as 1 loop. Its actually not throwing any error
    BUT i checked and re checked that the bp's were ok... so i will recheck later when i come back from university lol
    End at line 15 shouldn't be there either! Move that end to line 21 instead.

  5. #15
    Free User Darknesium's Avatar
    Join Date
    Feb 2014
    Location
    Chile
    Posts
    145
    Reputation
    11
    Rep Power
    21
    Could it be that itemcount is not working?
    i tried to improve other withdrawer i had and it wont work
    withdrawitems("depot chest", {"Beach Backpack", "Royal Spear", (mrs - itemcount("Royal Spear")})

    It wont withdraw any spear...

    were mrs is the value i choose in user options (currently 25)

    withdrawitems("depot chest", {"Beach Backpack", "Royal Spear", mrs})

    This is the one im currently using and its working, it takes the amount i set... wanted to update it so it took the diference in spears i need

    Can you help? @Lucas Terra @Bozen
    pleaase

  6. #16
    Free User
    Join Date
    Apr 2014
    Posts
    14
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Darknesium View Post
    Could it be that itemcount is not working?
    i tried to improve other withdrawer i had and it wont work
    withdrawitems("depot chest", {"Beach Backpack", "Royal Spear", (mrs - itemcount("Royal Spear")})

    It wont withdraw any spear...

    were mrs is the value i choose in user options (currently 25)

    withdrawitems("depot chest", {"Beach Backpack", "Royal Spear", mrs})

    This is the one im currently using and its working, it takes the amount i set... wanted to update it so it took the diference in spears i need

    Can you help? @Lucas Terra @Bozen
    pleaase
    Have you tried what i told you to test?

    Itemcount works perfectly fine. Just put another ) after "royal spear"

  7. #17
    Free User Darknesium's Avatar
    Join Date
    Feb 2014
    Location
    Chile
    Posts
    145
    Reputation
    11
    Rep Power
    21
    Well i found a solution, but with other action, now im using this:
    --withdrawer--
    local dpbp = getlootingdestination("dpbp")
    local rarebp = getlootingdestination("rarebp")
    local stuffdp = getlootingdestination("stuffdp")
    local mainbp = getlootingdestination("mainbp")


    opendepot()
    moveitemsupto("stealth ring", 2, mainbp, 'depot chest')
    wait(400,800)
    openitem(stuffdp, "Depot Chest", false)
    wait(400, 800)
    moveitemsupto("treasure map", 1, mainbp, stuffdp)
    moveitemsupto("brown mushroom", 20, mainbp, stuffdp)


  8. #18
    Free User
    Join Date
    Oct 2014
    Posts
    56
    Reputation
    14
    Rep Power
    20
    09:05:23 (Action: w128) Couldn't find item named ''. Future warnings for this script will be shown in the Debug Script Log.



    This is my setup: --withdrawer--
    local dpbp = getlootingdestination("fur backpack")
    local rarebp = getlootingdestination("purple backpack")
    local stuffdp = getlootingdestination("fur backpack")
    local mainbp = getlootingdestination("camouflage backpack")


    opendepot()
    moveitemsupto("stealth ring", 2, mainbp, 'depot chest')
    wait(400,800)
    openitem(stuffdp, "Depot Chest", true)
    wait(400, 800)
    moveitemsupto("treasure map", 1, mainbp, stuffdp)
    moveitemsupto("brown mushrooms", 20, mainbp, stuffdp)
    Last edited by Exaltera; 11-07-2014 at 08:17 AM.

 

 

Posting Permissions

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