Tweety
New Member
- Joined
- Sep 6, 2013
- Messages
- 317
- Reaction score
- 0
On the AHBuddy thread pretty much you can't get assistance, there are questions posted every day, answers - ones a week.
What I want to do, and would be glad to post on the AHBuddy with appropriate credits, is to make AHBuddy circle and check the email multiple times as long as there are mails / un till there are no emails.
At the moment the AHBuddy checks for mail one time and if we got more items in the email, then the default 30 I think.
So the problem looks like this:
1. Bot Checks for Undercuts.
2. Bot Cancels 100 Auctions.
3. Bot goes to the Mail and gets half of the mails, the other half would be available in 30 seconds, and he is already with filled up bags.
4. Bot posts the items on the AH.
5. Bot checks what to withdraw from the GBank - items where inbags + onAH < max posted items - but actually the items are in the mailbox and the bot withdraws items that he is not supposed to.
6. Post the items on AH
7. Check Mail - and get stacked up in his bags with items that can't be posted because he already withdraw from the bank the same items that were already in his Mailbox.
I tried something like:
It didn't work.
Then I tried multiple:
And this didn't work as well. - The issue is that he checks for email only ones, after that one time he doesn't. So the if parameters "(HasNewMail || MailCount> 0) && (bool)Settings["Check Mail"] && !Me.NormalBagsFull" for some reason after the first check are not triggered, even though we do have mails.
Can someone who is more experienced help me out in this, there are other people with this problem as well. Especially people who sell a few items of the same kind, but many different items - glyphs etc. Already so complains about that on the AHBuddy thread - no one helped out, I just told the guy that he can reduce the items he posts per character, so when this bugs out his bags can contain all the mails, and then relog to another character to post the rest of the items.
What I want to do, and would be glad to post on the AHBuddy with appropriate credits, is to make AHBuddy circle and check the email multiple times as long as there are mails / un till there are no emails.
At the moment the AHBuddy checks for mail one time and if we got more items in the email, then the default 30 I think.
So the problem looks like this:
1. Bot Checks for Undercuts.
2. Bot Cancels 100 Auctions.
3. Bot goes to the Mail and gets half of the mails, the other half would be available in 30 seconds, and he is already with filled up bags.
4. Bot posts the items on the AH.
5. Bot checks what to withdraw from the GBank - items where inbags + onAH < max posted items - but actually the items are in the mailbox and the bot withdraws items that he is not supposed to.
6. Post the items on AH
7. Check Mail - and get stacked up in his bags with items that can't be posted because he already withdraw from the bank the same items that were already in his Mailbox.
I tried something like:
Code:
<while Condition="(HasNewMail || MailCount> 0) && (bool)Settings["Check Mail"] && !Me.NormalBagsFull" IgnoreCanRun="False">
<CustomAction Code="Log (Colors.Crimson,"AHBuddy: ",Colors.BlanchedAlmond,"Checking for new mail.");" />
<GetMailAction GetMailType="AllItems" ItemID="0" CheckNewMail="True" MinFreeBagSlots="0" AutoFindMailBox="True" />
<StackItemsAction />
<CallSubRoutine SubRoutineName="PostToAH" />
</while>
Then I tried multiple:
Code:
<If Condition="(HasNewMail || MailCount> 0) && (bool)Settings["Check Mail"] && !Me.NormalBagsFull" IgnoreCanRun="False">
<CustomAction Code="Log (Colors.Crimson,"AHBuddy: ",Colors.BlanchedAlmond,"Checking for new mail.");" />
<GetMailAction GetMailType="AllItems" ItemID="0" CheckNewMail="True" MinFreeBagSlots="0" AutoFindMailBox="True" />
<StackItemsAction />
<CallSubRoutine SubRoutineName="PostToAH" />
<CustomAction Code="cyclewaitvar = new Random().Next((Int32)Settings["CycleWaitMin"], (Int32)Settings["CycleWaitMax"]);" />
<CustomAction Code="Log (Colors.Crimson,"AHBuddy: ",Colors.BlanchedAlmond,"Taking a break for {0} seconds",cyclewaitvar / 1000);" />
<WaitAction Condition="false" Timeout="(int)cyclewaitvar" />
</If>
<If Condition="(HasNewMail || MailCount> 0) && (bool)Settings["Check Mail"] && !Me.NormalBagsFull" IgnoreCanRun="False">
<CustomAction Code="Log (Colors.Crimson,"AHBuddy: ",Colors.BlanchedAlmond,"Checking for new mail.");" />
<GetMailAction GetMailType="AllItems" ItemID="0" CheckNewMail="True" MinFreeBagSlots="0" AutoFindMailBox="True" />
<StackItemsAction />
<CallSubRoutine SubRoutineName="PostToAH" />
<CustomAction Code="cyclewaitvar = new Random().Next((Int32)Settings["CycleWaitMin"], (Int32)Settings["CycleWaitMax"]);" />
<CustomAction Code="Log (Colors.Crimson,"AHBuddy: ",Colors.BlanchedAlmond,"Taking a break for {0} seconds",cyclewaitvar / 1000);" />
<WaitAction Condition="false" Timeout="(int)cyclewaitvar" />
</If>
Can someone who is more experienced help me out in this, there are other people with this problem as well. Especially people who sell a few items of the same kind, but many different items - glyphs etc. Already so complains about that on the AHBuddy thread - no one helped out, I just told the guy that he can reduce the items he posts per character, so when this bugs out his bags can contain all the mails, and then relog to another character to post the rest of the items.