Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adding to TaxiDB

Featured Replies

Ignoring the pseudo datasource, is this how flightmasters are added programmatically?

private static void addForFilter(CreatureFilter filter)
{
  List<creature> flightmasters = DbCreature.Get(filter);
  foreach (var creature in flightmasters)
  {
    TaxiNode node = new TaxiNode
    {
      Active = true,
      ContinentId = creature.map,
      Name = creature.Name,
      Position = creature.Position,
    };

    //PluginLog.Log("Adding " + node.Name + " to taxi db");
    Taxi.TaxiList.AddOrEditForCurrentPlayer(node);
  }
  Taxi.TaxiList.Save();
}
  • 2 weeks later...
  • Author

I still don't completely understand this. On one character, I have a couple flight paths. However, when checking with the following method, the list is empty (no IsCharacterAvailable for all nodes).

private static bool HasTaxiConnection()
{
  var taxiList = Taxi.TaxiList.GetTaxiNodesOfCurrentPlayer();
  return wManagerSetting.CurrentSetting.FlightMasterTaxiUse
    && taxiList.Exists(n => n.Name == "Ironforge, Dun Morogh" || n.Name == "Gryth Thurden")
    && taxiList.Exists(n => n.Name == "Stormwind, Elwynn" || n.Name == "Dungar Longdrink");
}

This is after I use the code in the original post. The entries in the original post also don't show up, when opening TaxiDB in development tools.
Can you maybe explain this a little? Should I ever add TaxiNodes to wRobot or should I always let wRobot do the adding himself?

My goal was to teach wRobot that there are taxis nearby and then let it walk up to the flightmaster before finding out can/can't use it.
How do I best achieve that - should I just fill a large TaxiDB manually and share the XML file with others?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.