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.

Vendoring issues

Featured Replies

It will repeatedly choose an Alliance vendor when I'm Horde, it made 17 trips to an Alliance base, obviously dying.

I manually disabled it in the DB and it still will go to that vendor which is farther than the nearest Horde one.

 

Any plans for fixes or at least an API call so I can rewrite functionality?

For  what I have heard it is recommend to split wrobot into two folders. One folder for each faction. That should fix all of these problems. 

 

Greetings

private static Predicate<Npc> _dbFilter = n => n.CurrentProfileNpc && (n.Type == Npc.NpcType.Vendor || n.Type == Npc.NpcType.Repair);

public static void Start()
{
  FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += VendorHandler;
}



private static void VendorHandler(Engine engine, State state, CancelEventArgs cancelable)
{
  if(state != null && state.GetType() == typeof(ToTown) && new ToTown().NeedToRun)
  {
    NpcDB.AcceptOnlyProfileNpc = true;
    NpcDB.ListNpc.RemoveAll(_dbFilter);
    Npc vendor = FindVendor(); //this is your own function that returns an object of type NPC
    if (vendor != null)
    {
      NpcDB.AddNpc(vendor, false, true);
    }
  }
}

 

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.