• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Is it possibe to query this BGBot state?

    Discussion in 'Archives' started by stevenr, Dec 18, 2011.

    1. stevenr

      stevenr Member

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

      the BGBot are going to a point (example: Activity: Moving to Cliff Chokepoint [Middle]) and if he reached it he stand and wait for the next activity.
      Is it possibe to query this state? Because I want to do something in the waittime.
       
    2. Nevin

      Nevin New Member

      Joined:
      Nov 26, 2011
      Messages:
      15
      Likes Received:
      0
      Trophy Points:
      0
      I'd like this know this too.
      Now, while i don't want to hijack your thread, i feel this question is related:
      Is there a way to temporarily suspend the BG Bot (the movement in particular) so that a Plugin can handle the movement?
       
    3. stevenr

      stevenr Member

      Joined:
      Jan 15, 2010
      Messages:
      871
      Likes Received:
      0
      Trophy Points:
      16
      Is there a way to ask, if i not move for 5 sec. than do ....
       
    4. craftiestelk

      craftiestelk New Member

      Joined:
      Jun 3, 2011
      Messages:
      123
      Likes Received:
      1
      Trophy Points:
      0
      Code:
      private readonly WaitTimer _waitFiveSecs = WaitTimer.FiveSeconds;
      Logic.Pathing.WoWPoint tempPoint = StyxWoW.Me.Location;
      
      public override void Pulse()
      {
          if (_waitFiveSecs.IsFinished)
          {
              if (StywWoW.Me.Location.Distance(tempPoint, 1)
              {
                  //do some stuff
              }
              _waitFiveSecs.Reset();
              tempPoint = StyxWoW.Me.Location;
          }
      }
      
      Haven't tried it myself, but something along these lines should work :) Will create a 5 second timer, on Pulse() it will check if the timer has elapsed. Then it will check if you are within 1 yard of tempPoint, if so it will do something, then after that it will update tempPoint to your crrent location (no matter if you were within 1 yard or not), and reset the timer.

      :EDIT: Should probably throw in some StyxWoW.Me.Combat testing there too, as you might be in the same place for 5 seconds when fighting.

      As I said, haven't tried it, but the logic is correct I think. Good luck :)
       
      Last edited: Dec 28, 2011
    5. stevenr

      stevenr Member

      Joined:
      Jan 15, 2010
      Messages:
      871
      Likes Received:
      0
      Trophy Points:
      16
      What have I to include (using) for

      Code:
      [LEFT][COLOR=#333333]Logic.Pathing.WoWPoint tempPoint = StyxWoW.Me.Location;[/COLOR][/LEFT]
      


      Because I became an error.
       
    6. ZenLulz

      ZenLulz Community Developer

      Joined:
      Aug 17, 2011
      Messages:
      583
      Likes Received:
      98
      Trophy Points:
      28
      Could we know your error or do you keep it secret ?
       
    7. stevenr

      stevenr Member

      Joined:
      Jan 15, 2010
      Messages:
      871
      Likes Received:
      0
      Trophy Points:
      16
      It is german ;)

      Code:
      Der Typ- oder Namespacename "Logic" konnte nicht gefunden werden. (Fehlt eine Using-Direktive oder ein Assemblyverweis?)
       
    8. ZenLulz

      ZenLulz Community Developer

      Joined:
      Aug 17, 2011
      Messages:
      583
      Likes Received:
      98
      Trophy Points:
      28
      Logic is defined in the Styx namespace.
       
    9. stevenr

      stevenr Member

      Joined:
      Jan 15, 2010
      Messages:
      871
      Likes Received:
      0
      Trophy Points:
      16
      Hm, i use this...

      Code:
      using Styx;
      using Styx.Helpers;
      using Styx.Logic;
      using Styx.Logic.Combat;
      using Styx.Logic.Pathing;
      using Styx.Logic.POI;
      using Styx.Plugins.PluginClass;
      using Styx.WoWInternals;
      using Styx.WoWInternals.WoWObjects;
       
    10. ZenLulz

      ZenLulz Community Developer

      Joined:
      Aug 17, 2011
      Messages:
      583
      Likes Received:
      98
      Trophy Points:
      28
      Did you add HonorBuddy.exe and Tripper.Tools.dll as references ?
       
    11. stevenr

      stevenr Member

      Joined:
      Jan 15, 2010
      Messages:
      871
      Likes Received:
      0
      Trophy Points:
      16
      Yes, and it works know, thx.
       

    Share This Page