Guest User

Untitled

a guest
Jan 14th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. new Decorator(ctx => _fightTimer.ElapsedMilliseconds > 30 * 1000 && GigaRift.Me.CurrentTarget.MaxHealth < GigaRift.Me.MaxHealth * 2,
  2. new Sequence(
  3. new Action(ctx => Logging.Write("Warning: {0} is a bugged target.", GigaRift.Me.CurrentTarget.Name)),
  4. new Action(ctx => Navigator.MoveTo( Navigator.Mesh.GetNode(Navigator.Mesh.Search(GigaRift.Me.Location, 25f, float.MaxValue).FirstOrDefault()).Location)),
  5. new Action(ctx => GigaRift.Me.ClearTarget()),
  6. new Action(ctx => _fightTimer.Restart()))),
  7.  
  8. // Are we in range?
  9. new Decorator(ctx => GigaRift.Me.CurrentTarget.Distance > MeleeDistance,
  10. new Sequence(
  11. new Action(ctx => Logging.Write("Move to {0} at {1} yards.", GigaRift.Me.CurrentTarget.Name, (int)GigaRift.Me.CurrentTarget.Distance)),
  12. new Action(ctx => Navigator.MoveTo(MoveLocation, "Combat: " + GigaRift.Me.CurrentTarget.Name)))),
Add Comment
Please, Sign In to add comment