Why dont you simply loot the potions to your supply backpack? And then if you really want to deposit them you could check if potCount > x then deposit potCount-x.
Why dont you simply loot the potions to your supply backpack? And then if you really want to deposit them you could check if potCount > x then deposit potCount-x.
Teenage mutant ninja powers.
What about 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
setsetting('Looting/Items/mana potion/Category', 'z')
waitping()
setsetting('Looting/OpenNextBP', 'no')
waitping()
depotaction('maindp', 'lootbp', {'r', 'raredp', 's', 'stackdp'})
waitping()
setsetting('Looting/Items/mana potion/Category', 's')
And by the way, why you simple not change your mana potion category to Z manualy and keep it?
As I said on the first post, I don't want to use a supply bp. I don't like it and think it's a waste of space. However, I'm starting to think I'll end up having to use it...
Still not the point, bro! :P
@thread:
I really appreciate you guys trying to help me, but nothing seems to work on this case..
BUgWT came up with the best idea so far, but I still can't really say it works for 2 reasons:
1- unfortunately (of fortunately), the potions from main bp aren't deposited all the time, making it kind hard to test the code's efficiency;
2- the looting category change isn't visible. I think it should be, at least that's what makes sense anyways. This way, I can't really say if the code is really working.
Yours,
pvzin
Ok, now I got your point. I used to read all posts xD
--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()
and add this hotkey
local MainBP = getuseroption('MainBP') -- Change it as you have it in settings.
auto(100)
if $pzone and windowcount(MainBP) == 1 then
setsetting('Looting/Items/mana potion/Category', 'z')
else
setsetting('Looting/Items/mana potion/Category', 's')
end
Thx, @K4r4biN. I like this new code concept. However, I still don't see the category changing. '-'
Would you mind testing it on your own and telling me if the category change is visible for you?
Yours,
pvzin
Well, I just tried it
local MainBP = getuseroption('MainBP')
auto(100)
if $pzone and windowcount(MainBP) == 1 then
setsetting('Looting/LootList/great mana potion/Category', 'a')
else
setsetting('Looting/LootList/great mana potion/Category', 'g')
end
And I have to tell you, it works ;-)