• Visit Rebornbuddy
  • HB ARCHIVES: ProfessionBuddy--DO NOT DELETE

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

    1. BaturalNoobs

      BaturalNoobs Member

      Joined:
      Feb 10, 2012
      Messages:
      511
      Likes Received:
      4
      Trophy Points:
      18
      Can Professionbuddy complete a quest? I'm trying to add the daily A Token of Appreciation to my daily professions cooldowns profile. The quest is simple: accept it and complete it.

      I'm able to interact with the quest giver and "Accept Quest":

      PHP:
      <InteractionAction InteractType="NPC" Entry="64337" InteractDelay="2000" SpellFocus="Anvil" />
      <
      WaitAction Condition="false" Timeout="2500" />
      <
      CustomAction Code="Lua.DoString(&quot;AcceptQuest()&quot;);" />
      Unfortunately, I can't complete the quest (i.e. click the "Complete Quest" button):

      PHP:
      <CustomAction Code="Lua.DoString(&quot;CompleteQuest()&quot;);" />
      View attachment 180 2014-07-05 15.39.txt

      Any ideas how to complete a quest in Professionbuddy?
       
      Last edited: Jul 7, 2014
    2. luthebear

      luthebear New Member

      Joined:
      Mar 6, 2013
      Messages:
      92
      Likes Received:
      0
      Trophy Points:
      0
      Does it work with DE version too? :/
       
    3. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Some big internal changes to Professionbuddy are on the svn test branch. The primary change is the framework has been updated to use the new coroutine library that was recently added to Honorubddy but there has been some minor bug fixes added as well.

      These changes should not break any PB profiles however if you created your own PB action (any class that derives from PBAction) then you will need to update your code.
      To the average user PB will look and behave the same as previous versions of PB minus the few bug fixes there were added.

      List of bug fixes
      * 'Buy Item From AH' action will no-longer try to buy items that are posted by same character.
      * Mining/Herb 1 to 600 profile: Fixed a problem for Horde bots where they would not land on the zeplin moving from Kalimidor to Northren which resulted with zeplin leaving the bot behind.
      * Mining/Herb 1 to 600 profile: Fixed a looping issue where bot would do nothing but take zeplin rides between Kalimidor and Northrend.

      These changes are only available from the svn test branch (link) and once I feel it's stable enough I'll push the change to live. I've done a lot of testing already and it's pretty stable
       
      Frayman likes this.
    4. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Any chance that PB was trying to buy items on AH that were posted by your character? This is a bug that is fixed on the svn test branch which will be pushed to trunk soonish.
       
    5. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Professionbuddy doesn't have any build-in quest related API but you can use HB's. Custom Action can now execute coroutines/treesharp behaviors directly on the svn test branch so you could use something like the ScriptHelper.TurninQuest coroutine (ScriptHelpers.TurninQuest Method) to turnin the quest. ScriptHelper.TurninQuest doesn't work on the German HB edition so if that's what you're using I can't help you. If you decide to try ScriptHelper.TurninQuest then you'll need to keep calling it until quest is turned in.
       
    6. Igoblin

      Igoblin Banned

      Joined:
      Oct 16, 2013
      Messages:
      127
      Likes Received:
      2
      Trophy Points:
      0
      Hello and good morning! I have a question, when professionbuddy send the items to a recipient, take the objects from my bag slowly... How I can fix that? (before sending the objects quickly)
       
    7. razer

      razer New Member

      Joined:
      Apr 29, 2012
      Messages:
      1,347
      Likes Received:
      7
      Trophy Points:
      0
      So I am wondering, Is there anyway to sort the green's you want to sell by ilevel. So if I want to have a lvl 60 item up for sale for only 50g but I want a lvl 80 item for 200g. How could we do this?
       
    8. croberts19

      croberts19 Member

      Joined:
      Aug 15, 2010
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      6
      Got this problem running Bengan's 1-600 skinning/lw profile and using professionbuddy. Let me know if there is anything I should do to resolve this problem and get the bot moving again and leveling up the profs.

      Thanks
       

      Attached Files:

    9. Khasuistic

      Khasuistic Member

      Joined:
      Dec 2, 2010
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
      This morning professionbuddy was updated and all my bots started archaeologybuddy. I reloaded honorbuddy, start bots and all workinf rights. But! The ProfessionBuddy autoupdated and after restarting bot they again start archaeologybuddy.
      Now question: how Can I disable autoupdate ProfessionBuddy ??
       
    10. turya

      turya Member

      Joined:
      Jul 2, 2010
      Messages:
      70
      Likes Received:
      0
      Trophy Points:
      6
      ++1
       
    11. Smix

      Smix New Member

      Joined:
      Aug 30, 2011
      Messages:
      215
      Likes Received:
      2
      Trophy Points:
      0
      Undo this broken PB update ASAP, it corrupts every mfucking HB installation ;S

      edited: updater.cs line 14
       
      Last edited: Jul 15, 2014
    12. Khasuistic

      Khasuistic Member

      Joined:
      Dec 2, 2010
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
      I reinstall PB and changed this line but HB still messaged: A new version of ProfessionBuddy was installed. Please restart Honorbuddy
       
    13. Smix

      Smix New Member

      Joined:
      Aug 30, 2011
      Messages:
      215
      Likes Received:
      2
      Trophy Points:
      0
      yea just tested.
      updater.cs line 14 seem to do the trick, gives some kind of timeout error but doesnt crash and works like it should
       
    14. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      For those of you having problems with the latest update, attach a log. The update went smoothly on my end.
       
    15. Twisty

      Twisty New Member

      Joined:
      Mar 27, 2014
      Messages:
      328
      Likes Received:
      0
      Trophy Points:
      0
      Last edited: Jul 15, 2014
    16. bennyquest

      bennyquest Community Developer

      Joined:
      Dec 6, 2010
      Messages:
      2,644
      Likes Received:
      22
      Trophy Points:
      38
      a log always helps.
       
    17. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      The issue you're having is one of the files within the Professionbuddy\Composites\ folder is from a 3rd party and is not compatible with the new update.

      You do one of the following to resolve the issue.
      • Delete the Professionbuddy\Composites\EnableProfileAction.cs file if you don't need to use it.
      • Wait for the author to release an updated version. I know the author and have notified him of the changes
      • Revert to an older PB version and disabled auto-update. You can't just copy over the files from the older PB version; you need to remove the contents of the PB folder before copying the older PB version over. Be sure to backup any personal/3rd party profiles before doing a fresh PB install. Once you have the older PB files copied over open up Professionbuddy.cs with a text editor and delete the following line.
        Code:
        new Thread(Updater.CheckForUpdate) { IsBackground = true }.Start();

      The auto-update feature has been removed on SVN.
      Updates will be shipped with HB and one can still use a svn client to update from svn.
       
      Last edited: Jul 15, 2014
    18. Wullie

      Wullie New Member

      Joined:
      Jun 8, 2013
      Messages:
      411
      Likes Received:
      3
      Trophy Points:
      0
      Hi,

      Just wondered what changes there had been in latest version?

      It won't even load or run my profile whatsoever.

      Log doesn't seem to tell much. It just starts and does nothing. This profile is unchanged and has been working perfect for months and months.

      Even in the GUI where previously it would hang for a sec then display my profile (it's rather long), now it doesn't show anything when I load it.

      View attachment 4384 2014-07-15 19.41.txt

      Edit: Just spotted this in the log:

      Code:
      [18:41:41.046 N] Warning: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
         at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
         at System.String.Format(IFormatProvider provider, String format, Object[] args)
         at Styx.Common.Logging.WriteDiagnostic(Color color, String format, Object[] args)
         at HighVoltz.Professionbuddy.ProfessionbuddyBot.Debug(String format, Object[] args) in c:\Honorbuddy\GatherFarm\Bots\Professionbuddy\ProfessionBuddy.cs:line 949
         at HighVoltz.Professionbuddy.PbProfile.FromXml(XElement xml, Composite comp) in c:\Honorbuddy\GatherFarm\Bots\Professionbuddy\PbProfile.cs:line 121
         at HighVoltz.Professionbuddy.PbProfile.FromXml(XElement xml, Composite comp) in c:\Honorbuddy\GatherFarm\Bots\Professionbuddy\PbProfile.cs:line 209
         at HighVoltz.Professionbuddy.PbProfile.LoadFromFile(String path) in c:\Honorbuddy\GatherFarm\Bots\Professionbuddy\PbProfile.cs:line 73
      
      Edit 2:
      This isn't right, is it?:

      (PBProfile Line 121)
      Code:
      					ProfessionbuddyBot.Debug("Encountered a {0} node type");
      
      Surely that should have an argument passed?

      Assuming it's trying to tell me something's not right with my profile, presumably something non-fatal as it's worked okay till now...


      Edit 3:
      Changed to this and it's behaving:

      Code:
      					ProfessionbuddyBot.Debug("Encountered a {0} node type", node.NodeType);
      
      The line it outputs is:

      PB 1.688: Encountered a Text node type

      Not sure what exactly it's trying to tell me?
       
      Last edited: Jul 15, 2014
    19. Twisty

      Twisty New Member

      Joined:
      Mar 27, 2014
      Messages:
      328
      Likes Received:
      0
      Trophy Points:
      0

      first option worked. Thank you!
       
    20. Ramakandra

      Ramakandra New Member

      Joined:
      Oct 18, 2012
      Messages:
      49
      Likes Received:
      1
      Trophy Points:
      0
      It seems that with latest version <If Condition="Lua.GetReturnVal .... is broken but i cant find how, its like its not running the LUA code at all, for now i reverted to r684.

      The code is:

      <If Condition="Lua.GetReturnVal&lt;int&gt;(MYLUA,0) == 0" IgnoreCanRun="True">

      And MYLUA defined as:

      Code:
      <Declaration Code="string MYLUA=&quot;if LibStub(\&quot;AceAddon-3.0\&quot;):GetAddon(\&quot;MyAddon\&quot;):GetModule(\&quot;Post\&quot;):MyFunction() then return 1 else return 0 end&quot;;" />
       
      Last edited: Jul 16, 2014

    Share This Page