...
<While Condition="Me.IsAlive" IgnoreCanRun="True">
<If Condition="Me.IsAlive && DateTime.Now.Subtract((DateTime)var1).TotalSeconds >= (int)var2" IgnoreCanRun="True">
<CallSubRoutine SubRoutineName="DoCancel" />
<CallSubRoutine SubRoutineName="GetMail" />
<CallSubRoutine SubRoutineName="DoPost" />
[B] <CallSubRoutine SubRoutineName="DoPost" />
<CallSubRoutine SubRoutineName="DoPost" />
<CallSubRoutine SubRoutineName="DoPost" />[/B]
<While Condition="Lua.GetReturnVal<int>(Mail_IsEmpty,0) == 0" IgnoreCanRun="True">
<CallSubRoutine SubRoutineName="GetMail" />
<CallSubRoutine SubRoutineName="DoPost" />
</While>
<CustomAction Code="Lua.DoString("CloseAuctionHouse()");" />
<CustomAction Code="var1 = DateTime.Now;" />
<CustomAction Code="var2 = new Random().Next((int)Settings["MinWait"], (int)Settings["MaxWait"]);" />
<CustomAction Code="Log ("Starting the next Canceling and Posting cycle in {0} seconds",var2);" />
</If>
....
<While Condition="Me.IsAlive" IgnoreCanRun="True">
<If Condition="Me.IsAlive && DateTime.Now.Subtract((DateTime)var1).TotalSeconds >= (int)var2" IgnoreCanRun="True">
<CallSubRoutine SubRoutineName="DoCancel" />
<CallSubRoutine SubRoutineName="DoPost" />
<CallSubRoutine SubRoutineName="GetMail" />
<While Condition="Lua.GetReturnVal<int>(Mail_IsEmpty,0) == 0" IgnoreCanRun="True">
<CallSubRoutine SubRoutineName="GetMail" />
<CallSubRoutine SubRoutineName="DoPost" />
</While>
<CustomAction Code="Lua.DoString("CloseAuctionHouse()");" />
<CustomAction Code="var1 = DateTime.Now;" />
<CustomAction Code="var2 = new Random().Next((int)Settings["MinWait"], (int)Settings["MaxWait"]);" />
<CustomAction Code="Log ("Starting the next Canceling and Posting cycle in {0} seconds",var2);" />
</If>
It calls the routines from top to buttom so you would have to add the "DoPost" before "GetMail" if you wanted it to cancel before mail
PHP:<While Condition="Me.IsAlive" IgnoreCanRun="True"> <If Condition="Me.IsAlive && DateTime.Now.Subtract((DateTime)var1).TotalSeconds >= (int)var2" IgnoreCanRun="True"> <CallSubRoutine SubRoutineName="DoCancel" /> <CallSubRoutine SubRoutineName="DoPost" /> <CallSubRoutine SubRoutineName="GetMail" /> <While Condition="Lua.GetReturnVal<int>(Mail_IsEmpty,0) == 0" IgnoreCanRun="True"> <CallSubRoutine SubRoutineName="GetMail" /> <CallSubRoutine SubRoutineName="DoPost" /> </While> <CustomAction Code="Lua.DoString("CloseAuctionHouse()");" /> <CustomAction Code="var1 = DateTime.Now;" /> <CustomAction Code="var2 = new Random().Next((int)Settings["MinWait"], (int)Settings["MaxWait"]);" /> <CustomAction Code="Log ("Starting the next Canceling and Posting cycle in {0} seconds",var2);" /> </If>
And then i believe 1 DoPost is enough.
What this does is it will First call the "DoCancel" routine then the "DoPost" routine and at last the "GetMail" routine
Err: Custom Action:(var2 = new Random().Next((int)Settings["MinWait"], (int)Settings["MaxWait"]);)
var2 = new Random().Next((int)Settings["MinWait"], (int)Settings["MaxWait"]);
Is there any change you can do to the script so that when your bags are full but there are still items in the mail, the bot posts items on ah and goes to retrieve the rest of the mails and post them too?
I have it working fine but could someone please for the love of gold tell me how to edit waypoints? It looks too botty when you keep running the same path and running straight into the mailbox.
Thanks![]()
Anychance one can help with the keybindings mine dont seam to be working
Todo:
- Implement restock (pbank/gbank, craft from AH, craft from farming mats)
Just trust me on this, Blizzard doesn't care. The chances that anyone is going to check you are extremely slim.was checking chat log and someone reported me for AH botting, but w/e