• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • HB ARCHIVES: ProfessionBuddy--DO NOT DELETE

    Discussion in 'Archives' started by highvoltz, Jul 18, 2012.

    1. Kekskruemel

      Kekskruemel Member

      Joined:
      Jan 15, 2010
      Messages:
      236
      Likes Received:
      0
      Trophy Points:
      16
      Hi highvoltz,

      one little question

      Code:
      <If Condition="(bool)Settings[&quot;AH Buy Ore&quot;] &amp;&amp; (int)Me.Gold &gt;= (int)Settings[&quot;Minimum goldz to be able to buy.&quot;] &amp;&amp; Me.FreeNormalBagSlots  &gt; 7 &amp;&amp; (GainLoss = (Int32)MyStartingGold - (Int32)Me.Gold) &lt; 2000" IgnoreCanRun="False">
            <CallSubRoutine SubRoutineName="MoveToMAuctionhouse" />
            <If Condition="(Int32)Me.Gold &gt;= (Int32)Settings[&quot;Minimum goldz to be able to buy.&quot;] &amp;&amp; Me.FreeNormalBagSlots  &gt; 7 &amp;&amp; (GainLoss = (Int32)MyStartingGold - (Int32)Me.Gold) &lt; 2000" IgnoreCanRun="False">
              <CustomAction Code="var2 = (Int32)Settings[&quot;BuyOut Amount Ghost&quot;];" />
              <!--Klick "Buy Item From AH" Below then edit Max Buyout at the bottom-->
              <BuyItemFromAhAction ItemListType="Item" ItemID="72092" MaxBuyout="4g0s0c" Amount="20 * (Int32)var2" BuyAdditively="False" AutoFindAh="True" BidOnItem="False" Location="0, 0, 0" />
            </If>
      [Code from Bengan, modified by me]

      he is buying all the items from one AH Page before running again the If Check with calculating (GainLoss = (Int32)MyStartingGold - (Int32)Me.Gold) &lt; 2000".

      Is this a Bug ? If not is there any way to force checking the If condition after buying each item and not the whole 50 from one AH Page ?

      Thx
       
    2. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      This might be an issue caused by lag, where Me.Gold isn't updated instantly
       
    3. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Do you remember exactly where the bot was stuck ? like by a mailbox? Did it have mail frame open?
       
    4. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      This is now fixed on svn.
       
    5. eXtOphius

      eXtOphius Member

      Joined:
      Jan 15, 2010
      Messages:
      219
      Likes Received:
      3
      Trophy Points:
      18
      I am still having this issue.

      Are you guys?

      XtO
       
    6. krizzl3

      krizzl3 New Member

      Joined:
      Jul 11, 2010
      Messages:
      127
      Likes Received:
      2
      Trophy Points:
      0
      Hello, I am trying to modify an script to better suite my needs. Anywho i am trying to make it so that the profile sends matching materials needed to make potions to an alt in matched amounts. here is an examle of the code.

      <!--Mogu Power-->
      <WhileCondition="InbagCount(79011) &gt; 20 &amp;&amp; InbagCount(72234) &gt; 20" IgnoreCanRun="True">
      <MailItemAction Mail="Amount" Amount="20" Entry="79011, 72234" AutoFindMailBox="True" UseCategory="False" Category="TradeGoods" SubCategoryType="WoWItemTradeGoodsClass" SubCategory="None" X="0" Y="0" Z="0" />
      <WaitAction Condition="false" Timeout="500" />
      </While>


      I have tried both while a While or If loop. the problem that is happening is with the && statement in the condition. it seems to loop as if behaving for and OR argument. If it runs out of Fools Cap(79011) it will keep looking and sending Green Tea(72234) it will also send amounts if < 20 where the condition also states > 20

      Thanks for your help guys
       
    7. Liferose

      Liferose New Member

      Joined:
      Sep 1, 2010
      Messages:
      1,586
      Likes Received:
      37
      Trophy Points:
      0
      Edit: I have no clue how all of those weird ProfessionBuddy conditions work. However if I recall the format was something like BlahCount(#####) &gt;= 20. If I was making a questing profile i'd be throwing around parenthesis but snooping around it doesn't seem like this bot cares for them.
       
      Last edited: Jun 21, 2013
    8. Nab

      Nab Member

      Joined:
      May 31, 2010
      Messages:
      381
      Likes Received:
      2
      Trophy Points:
      18
      Hey Highvoltz,

      I've been spending quite some hours looking for what I need in the PB code but I just can't find, so I'll ask you straight up :p
      Is there a way to specify which guildbank tabs to withdraw from/deposit to?

      The only parameters that I'm seeing in GetItemFromGBank are the ItemID and the amount of said item, but not the tab (even though there's code for listing the amount of bank tabs).
      Are my fears correct and is this just not possible with PB?

      Regards,
      Nab
       
    9. krizzl3

      krizzl3 New Member

      Joined:
      Jul 11, 2010
      Messages:
      127
      Likes Received:
      2
      Trophy Points:
      0
      yeah i really dunno why its not listening to the conditions. im almost wondering if its loopings before the game updates. is there anyway i can add a wait() interval, does that work in PB?
       
    10. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      GetItemFromGBank has no way to specify which tab to get from. It will withdraw items from the first tab it finds item in and has permission to withdraw.
       
    11. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      The condition looks good but unless you set 'IgnoreCanRun' to false the condition is only re-evaluated after the last action inside the If/While Condition is finished executing. In this case you'll want to set 'IgnoreCanRun' to false to force the condition to get re-evaluated on every pulse.
       
      Last edited: Jun 22, 2013
    12. krizzl3

      krizzl3 New Member

      Joined:
      Jul 11, 2010
      Messages:
      127
      Likes Received:
      2
      Trophy Points:
      0

      I have done that, it seems to help with the issue. but does not completely resolve it, it will still send a few extra of 1 type and a few non full stacks.
      it feels almost as if its being caused by server delay. is there anyway i can issue a pause command of some kind to wait for wow to update? or get the condition to compare how many stacks of each there are. then automantically send a matching amount of matts.
       
    13. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Try replacing the single MailItemAction with these two.
      PHP:
      <MailItemAction Category="TradeGoods" SubCategoryType="WoWItemTradeGoodsClass" SubCategory="None" Mail="Amount" UseCategory="False" ItemID="79011" Amount="InbagCount(79011) - 20" AutoFindMailBox="True" Location="0,0,0" />
        <
      MailItemAction Category="TradeGoods" SubCategoryType="WoWItemTradeGoodsClass" SubCategory="None" Mail="Amount" UseCategory="False" ItemID="72234" Amount="InbagCount(72234) - 20" AutoFindMailBox="True" Location="0, 0, 0" />
       
    14. krizzl3

      krizzl3 New Member

      Joined:
      Jul 11, 2010
      Messages:
      127
      Likes Received:
      2
      Trophy Points:
      0

      Well i finally got it to send an accurate match of matts to my alt. without miscalculating or or glitching. took awhile but i had to run it like this, and thanks everyone for your help

      Code:
      	  <CustomAction Code="var2 = InbagCount(79011);" />
      	  <CustomAction Code="var3 = InbagCount(72234);" />
      
      	  <!--Mogu Power Fools Cap GT-->
            <If Condition="InbagCount(79011) &gt; 0 &amp;&amp; InbagCount(72234) &gt; 0 &amp;&amp; InbagCount(72234) &gt; InbagCount(79011)" IgnoreCanRun="true">
      	  <CustomAction Code="Log (&quot;Sending Mogu Power GT&quot;);" />
               <MailItemAction Category="TradeGoods" SubCategoryType="WoWItemTradeGoodsClass" SubCategory="None" Mail="Amount" UseCategory="False" ItemID="79011, 72234" Amount="(Int32)var2" AutoFindMailBox="True" Location="0,0,0" />
      	   <WaitAction Condition="false" Timeout="5000" />
            </If>
      
      	  <!--Mogu Power Fools Cap LT-->
            <If Condition="InbagCount(79011) &gt; 0 &amp;&amp; InbagCount(72234) &gt; 0 &amp;&amp;  InbagCount(79011) &gt; InbagCount(72234)" IgnoreCanRun="true">
      	  <CustomAction Code="Log (&quot;Sending Mogu Power LT&quot;);" />
               <MailItemAction Category="TradeGoods" SubCategoryType="WoWItemTradeGoodsClass" SubCategory="None" Mail="Amount" UseCategory="False" ItemID="72234, 79011" Amount="(Int32)var3" AutoFindMailBox="True" Location="0,0,0" />
      	   <WaitAction Condition="false" Timeout="5000" />
            </If>
      
       
    15. Nab

      Nab Member

      Joined:
      May 31, 2010
      Messages:
      381
      Likes Received:
      2
      Trophy Points:
      18
      So are you saying that specific funtion within PB can't specify a tab, or that there is no way at all in general?

      Thanks for the quick reply,

      Nab
       
    16. chtpm

      chtpm Member

      Joined:
      Nov 26, 2011
      Messages:
      649
      Likes Received:
      6
      Trophy Points:
      18
      How do I make this condition work in PB
      Me.Class == WoWClass.DeathKnight &amp;&amp; !IsQuestCompleted(13189)

      It aparentelly doesnt support IsQuestCompleted
       
    17. leo0727

      leo0727 New Member

      Joined:
      Jun 11, 2013
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      0
      Mine stays stuck at loading tile...when I'm loading the farming 1-3000 herb/mine
       
    18. aniketd

      aniketd New Member

      Joined:
      Sep 5, 2010
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      0
      I'm having a very major problem with PB. It will NOT travel through tunnels or under bridges. It gets stuck and will stay stuck for hours. NO matter what profile I use. Please help. I cannot afk at all using PB. ( It don't seem to matter what profiles / bots I use with PB the results are the same, however my logs will show one particular log because of so many fresh installs and cache clears.

      Please help i'm very frusterated i'm not able to AFK!
       

      Attached Files:

    19. draught

      draught New Member

      Joined:
      Jul 9, 2012
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      1
      Hi,

      i re-installed now a few times HB and PB - always the same problem:

      My Char wont attack any mobs - any ideas?

      Thanks!
       
    20. dumars

      dumars New Member

      Joined:
      Apr 17, 2012
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      0
      Hello coders :)

      Im trying to make my first PB profile and got a little problem :)

      I would like it to check if i got 12 total of stacks of itemid1 + itemid2 + itemid3 before i go and mail them.
      So it can be like 4stacks of itemid1, 4stacks of itemid2 and 4stacks of itemid3
      or just only 12stacks of itemid1, or 6x of itemid2 and 6x of itemid3.

      The thing im using right now is this:
      <If Condition="InbagCount(itemid1) &gt;= 20" IgnoreCanRun="False">
      /../
      </If>

      But i would like to edit it so it only send if i got more than 12 stacks.

      Sorry for bad english
      Thanks
       

    Share This Page