Signup Now
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

Thread: Depot Action

  1. #11
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Quote Originally Posted by BUgWT View Post
    Since I don't use depotaction(), maybe you can try this
    A hotkey to change potion's category, for example

    auto(100)
    if $wptid == 123 and windowcount($back.id) == 1 then
    --category Z
    else
    --category S
    end


    Which means when it is in main bp, it will change the category to "Z"
    That's a clever move! I'll try it out. Thx, BUgWT!
    Yours,
    pvzin

  2. #12
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    So should the code look something like this? :x

    auto(100)
    if $wptid == 123 and windowcount($back.id) == 1 then
    setsetting('Looting/Items/mana potion/Category', 'z')
    else
    setsetting('Looting/Items/mana potion/Category', 's')
    end
    Yours,
    pvzin

  3. #13
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Bump, really need this!
    Yours,
    pvzin

  4. #14
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    Quote Originally Posted by pvzin View Post
    So should the code look something like this? :x

    auto(100)
    if $wptid == 123 and windowcount($back.id) == 1 then
    setsetting('Looting/Items/mana potion/Category', 'z')
    else
    setsetting('Looting/Items/mana potion/Category', 's')
    end
    Yes, just change $back.id to itemname($back.id), I think it won't read the windowcount() with ID only.



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  5. #15
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Quote Originally Posted by RoxZin xD View Post
    Yes, just change $back.id to itemname($back.id), I think it won't read the windowcount() with ID only.
    Sure thing, man!

    Also, I figured out that I should add the $wptsection, so here is the final code:
    auto(100)
    if $wptsection == 'cityname' and $wptid == 123 and windowcount(itemname($back.id)) == 1 then
    setsetting('Looting/Items/mana potion/Category', 'z')
    else
    setsetting('Looting/Items/mana potion/Category', 's')
    end


    The tricky part is: I can't really say it's working, because I don't see the category changing on the looting list.
    It might happen really fast, like the rest of the bot actions, but I would like some further insight, if anyone can provide it..
    Last edited by pvzin; 04-09-2014 at 10:21 PM.
    Yours,
    pvzin

  6. #16
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Bump!
    Yours,
    pvzin

  7. #17
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    $wptid = 123 is the ID of waypoint action of this.

    Try this

    --depositer
    setsetting('Cavebot/WalkThroughPlayers', 'no')
    closewindows()
    openitem(itemname($back.id), 'back')
    waitping()
    openitem(lootbp, itemname($back.id))
    waitping()
    openitem(lootbp, lootbp)
    waitping()
    resizewindows()
    waitping()
    closewindows(itemname($back.id))
    waitping()


    if windowcount(lootbp) ~= 1 then
    gotolabel($wptid-1)
    end


    waitping()
    setsetting('Looting/OpenNextBP', 'no')
    waitping()
    depotaction('maindp', 'lootbp', {'r', 'raredp', 's', 'stackdp'})
    waitping()

  8. #18
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Quote Originally Posted by K4r4biN View Post
    $wptid = 123 is the ID of waypoint action of this.
    Yep it is!

    The issue, bro, is on the second part. Here:
    waitping()
    setsetting('Looting/OpenNextBP', 'no')
    waitping()
    depotaction('maindp', 'lootbp', {'r', 'raredp', 's', 'stackdp'})
    waitping()


    Making that change you suggested won't modify anything for me, because at that time, I no longer have the main backpack opened.

    I just really need the info a requested on my last post, maybe @Lucas Terra or @Leonardo could give me some insight.
    Yours,
    pvzin

  9. #19
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    Quote Originally Posted by pvzin View Post
    reply
    The setsetting() changes normally, so if something is wrong, it's on the conditions. Just remove the $wptid and I think it will work normally.



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  10. #20
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Quote Originally Posted by RoxZin xD View Post
    The setsetting() changes normally, so if something is wrong, it's on the conditions. Just remove the $wptid and I think it will work normally.
    Did it. Removed $wptid once, then $wptsection, then both, still the category won't change.
    Yours,
    pvzin

 

 

Posting Permissions

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