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); }
private void TAXIMAP_OPENED() { if (TaxiFrame.IsOpen) { TaxiFrame.Destroy(); } TaxiFrame.Create(); #if OUTPUT Console.WriteLine("###############\nNodes avaible: " + TaxiFrame.Instance.NodesAvailable); Console.WriteLine("Current Node: " + TaxiFrame.Instance.CurrentNodeName); foreach (var x in TaxiFrame.Instance.Nodes) { Console.WriteLine(x.Name + " ->" + "\n\tNode Number: " + x.NodeNumber + "\n\tCost: " + x.Cost + "\n\tState: " + x.Status + "\n"); } Console.WriteLine("###############"); #endif OnTaxiShow?.Invoke(this, new EventArgs()); }
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); }
private void TAXIMAP_CLOSED() { TaxiFrame.Destroy(); OnTaxiClosed?.Invoke(this, new EventArgs()); }