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.
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?
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
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.
It is german Code: Der Typ- oder Namespacename "Logic" konnte nicht gefunden werden. (Fehlt eine Using-Direktive oder ein Assemblyverweis?)
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;