Exemplo n.º 1
0
 public override bool Do()
 {
     Functions.Interact(npc);
     Thread.Sleep(1000);             // Give it a sec in case of lag.
     if (TaxiFrame.IsVisible())      // Huh, we must already know this flightpath
     {
         GContext.Main.SendKey("Common.Escape");
     }
     // Should have learned the FP now?
     return(true);
 }
Exemplo n.º 2
0
        public override bool Do()
        {
            Functions.Interact(npc);
            Thread.Sleep(2000);
            //PPather.WriteLine("UI.TaxiFrame.IsVisible:" + (TaxiFrame.IsVisible() ? "yes" : "no"));

            if (TaxiFrame.IsVisible())
            {
                PPather.WriteLine("Taxi: Got Taxi Frame - Time to Fly");
                int buttonId = TaxiFrame.GetButtonId(destination);

                if (buttonId > 0)
                {
                    ppather.ResetMyPos();

                    TaxiFrame.ClickTaxiButton(buttonId);
                    Thread.Sleep(2000);

                    EnjoyFlight();
                }
            }

            return(true);
        }