• Visit Rebornbuddy
  • Control HBRelog from plugin

    Discussion in 'Development' started by murkop, Feb 27, 2017.

    1. murkop

      murkop New Member

      Joined:
      Mar 17, 2016
      Messages:
      18
      Likes Received:
      0
      Trophy Points:
      1
      Hi, how can I control from my plugin hbrelog, what I want to achieve is to turn off the bot on HBRelog level, something like when some event occurs I want to turn off HB and stop the profile in HBRelog. I remember that in old versions of HB I could find remoting plugin and cast it and use the apis that I wanted. But as of now it seems like the Plugins are wrapped and there is no way to get the plugin. Thanks in advance and hope the wise gurus will help me.
       
    2. Wikordann

      Wikordann Member

      Joined:
      Jan 5, 2017
      Messages:
      66
      Likes Received:
      3
      Trophy Points:
      8
      Plugin
      PHP:
      private static Bots.Professionbuddy.Dynamic.HBRelogApi HBRelogRemoteApi Bots.Professionbuddy.Dynamic.Helpers.HBRelog;

      HBRelogRemoteApi.RestartHB();
      HBRelogRemoteApi.SkipCurrentTask(HBRelogRemoteApi.CurrentProfileName);

      Questing profile
      PHP:
      <CustomBehavior File="RunCode" Type="Definition"><![CDATA[Bots.Professionbuddy.Dynamic.HBRelogApi HBRelogRemoteApi Bots.Professionbuddy.Dynamic.Helpers.HBRelog;]]></CustomBehavior>
      <
      CustomBehavior File="RunCode" Code="HBRelogRemoteApi.RestartHB();" />
      <
      CustomBehavior File="RunCode" Code="HBRelogRemoteApi.SkipCurrentTask(HBRelogRemoteApi.CurrentProfileName);" />
       
      Last edited: Feb 28, 2017

    Share This Page