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.

Check If in Group/Party and Party Member Online

Featured Replies

I have a spell ability that I need to check for use only if the player is in a group/party. I was in a group, but the group member went offline, and my ability was still being used despite the player actually being online in game. Is there a check for this?

Thanks!

if (Party.IsInGroup())
{
  // in group
    var partyMembers = wManager.Wow.Helpers.Party.GetParty
    foreach (var member in partyMembers)
    {
        // UnitIsConnected("unit")
        var isConnected = Lua.LuaDoString<bool>("return UnitIsConnected('" + "member.Name" + "')");
        if (isConnected)
        {
            Logging.Write("Player " + member.Name + " is online.");
        }
    }
}
else{
	// not in group
}

The above will check if you are in a group and then tell you whether each party member is online/not online.

Edited by Avvi

  • Author

I am not sure if it's working as intended. It even returns that I am offline, and I am clearly in game. How can I search for a player by string and through settings if they are online and in range?

IE: Cast Vigilance On: ____[Player Name Here]______

I have tried different variations with the lua code provided and to no avail. Thanks!

 

  • 2 weeks later...

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.