What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Is it possibe to query this BGBot state?

stevenr

Member
Joined
Jan 15, 2010
Messages
871
Reaction score
0
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?
 
Is there a way to ask, if i not move for 5 sec. than do ....
 
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:
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.
 
Could we know your error or do you keep it secret ?

It is german ;)

Code:
Der Typ- oder Namespacename "Logic" konnte nicht gefunden werden. (Fehlt eine Using-Direktive oder ein Assemblyverweis?)
 
Logic is defined in the Styx namespace.
 
Logic is defined in the Styx namespace.

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;
 
Did you add HonorBuddy.exe and Tripper.Tools.dll as references ?
 
Back
Top