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
Bump, really need this!
Yours,
pvzin
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
$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()
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