However, once in a while it will also deposit the potions I have on my main backpack.
Is there a way to avoid that without having to use a supply backpack?
04-07-2014, 11:59 AM
Frox
I dont get it.
Just simple add
openitem(0, "back", true)
04-07-2014, 12:07 PM
pvzin
Quote:
Originally Posted by Frox
I dont get it.
Just simple add
openitem(0, "back", true)
I saw that..
The action works, bro. The problem is restricted to the depositing line.
Once it opens the lootbp and starts depositing, it will come back to the previous lootbps, so it can deposit everything.
But there's a point when it reaches the mainbp, and when it does so, there are some occasions on which it also deposits the potions I have there.
So mainly, I would like to know if there's a way to avoid the bot getting to the mainbp on this point, or stop depositing the potions I have there.
04-07-2014, 12:11 PM
Dworak
so close your main backpack after open the LootBP or open in MainBp window
04-07-2014, 12:25 PM
pvzin
Quote:
Originally Posted by Dworak
so close your main backpack after open the LootBP or open in MainBp window
They do open in the same window. I think the action pretty much gives it out, doesn't it? '-'
Consider I have 2 lootbps, then I'll name them for you:
- mainbp = #1
- 1st lootbp = #2
- 2nd lootbp = #3
The action will open everything until #3, then it starts depositing.
When there are no items left on #3, it goes back to #2 and deposits whatever is left there. *Finally, it goes back to #1, so it can open the lootbp again, for an extra check.*
The thing is, when it comes to the last part (*), I, sometimes, have my potions deposited.
I don't want that to happen, though.
Was it clear enough now?!
04-07-2014, 02:04 PM
CroiX
Well, you obviously got your potions in category 'r' or 's' then. Just remove the category and it won't deposit. =)
04-07-2014, 02:08 PM
pvzin
Quote:
Originally Posted by CroiX
Well, you obviously got your potions in category 'r' or 's' then. Just remove the category and it won't deposit. =)
Yep, they are categorized because they are also loot from the hunt.
04-07-2014, 02:36 PM
CroiX
Quote:
Originally Posted by pvzin
Yep, they are categorized because they are also loot from the hunt.
You don't need a category to loot them. Simply remove the category, or change to anything else but R and S and you'll be fine. :)
04-07-2014, 03:38 PM
pvzin
Quote:
Originally Posted by CroiX
You don't need a category to loot them. Simply remove the category, or change to anything else but R and S and you'll be fine. :)
True, but then I won't get to deposit the looted ones, right?! :P
You see, I want to deposit the looted potions, but not the ones I'm gonna use, that's why they are in different bps, hehe!
Thx for the time, though!
---
@thread:
If anybody else thinks of a solution, please bring me them!
04-07-2014, 03:48 PM
BUgWT
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"
04-07-2014, 04:18 PM
pvzin
Quote:
Originally Posted by BUgWT
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!
04-09-2014, 12:35 PM
pvzin
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
04-09-2014, 06:49 PM
pvzin
Bump, really need this!
04-09-2014, 08:12 PM
RoxZin xD
Quote:
Originally Posted by pvzin
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.
04-09-2014, 10:16 PM
pvzin
Quote:
Originally Posted by RoxZin xD
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..
04-10-2014, 12:44 PM
pvzin
Bump!
04-11-2014, 10:01 PM
K4r4biN
$wptid = 123 is the ID of waypoint action of this.
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.
04-11-2014, 11:25 PM
pvzin
Quote:
Originally Posted by RoxZin xD
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.
04-12-2014, 12:37 AM
Carnufex
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.
And by the way, why you simple not change your mana potion category to Z manualy and keep it?
04-20-2014, 06:33 PM
pvzin
Quote:
Originally Posted by Carnufex
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.
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...
Quote:
Originally Posted by K4r4biN
And by the way, why you simple not change your mana potion category to Z manualy and keep 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.
04-20-2014, 09:33 PM
K4r4biN
Quote:
Originally Posted by pvzin
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.
Ok, now I got your point. I used to read all posts xD
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
04-20-2014, 09:55 PM
pvzin
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?
04-20-2014, 10:33 PM
K4r4biN
Quote:
Originally Posted by pvzin
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?
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 ;-)
04-20-2014, 10:44 PM
pvzin
Quote:
Originally Posted by K4r4biN
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 ;-)
Oh, so the setting is actually:
setsetting('Looting/LootList/...
and not the one we were stating before:
setsetting('Looting/Items/...
Awesome! It's working. Many thx!
Rep for you!
04-21-2014, 05:40 AM
K4r4biN
Quote:
Originally Posted by pvzin
Oh, so the setting is actually:
setsetting('Looting/LootList/...
and not the one we were stating before:
setsetting('Looting/Items/...
Awesome! It's working. Many thx!
Rep for you!
Haha, well you used to write it wrong and then I copied it. But later when you said if I can test it, I used to click right on the category and get right value ;p
04-21-2014, 12:02 PM
pvzin
Quote:
Originally Posted by K4r4biN
Haha, well you used to write it wrong and then I copied it. But later when you said if I can test it, I used to click right on the category and get right value ;p
You see, I still have to get those bot flicks, haha! :P