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.

Target pet when moving towards him

Featured Replies

I'm trying to write custom plugin that will target a battle pet way before bot reaches it (due to Rematch addon pet swap).

TIMESTAMP - [FightPetBattle] Player XXX (lvl 1)
-- HERE I'D LIKE TO SET TARGET, BEFORE BOT MOVES
[N] TIMESTAMP - [Path-Finding] GetZPosition: YYY
[N] TIMESTAMP - [Path-Finding] GetZPosition result: Z
[N] TIMESTAMP - [Path-Finding] FindPath from YYY to ZZZ
[N] TIMESTAMP - [Path-Finding] Path Count: 2 (49,30226y)

Sadly there is no event that I'm aware of that I can use to get target to which path is being generated, nor retrieve a target to whom I'm trying to generate path when using event "wManager.Events.OthersEvents.OnPathFinderFindPath/OnPathFinderFindPathResult".

  • Author

I have managed to workaround this:

 

wManager.Events.OthersEvents.OnPathFinderFindPathResult += RematcherEventHandler;

private void RematcherEventHandler(Vector3 @from, Vector3 to, List<Vector3> path, string continentnamempq, bool resultsuccess)
{
    // Put some checks as you want them to avoid too many checks.
    var nearbyPet = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitWildPets(), to);

    if (nearbyPet != null && ObjectManager.Target.Guid != nearbyPet.Guid)
    {
        Logging.Write("[Rematcher] Changing target: " + nearbyPet.Name);
        Lua.LuaDoString("local rematch = Rematch; rematch: LoadTeam(\"" + nearbyPet.Name + "\")");
    }
}

Not ideal when 2 different as in same spot and are moving, but does the trick.

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.