Jump to content

Is player offline? GetParty() doesent work.


sowelu

Recommended Posts

 

 Logging.Write(Lua.LuaDoString<bool>("return UnitIsConnected(" + "PlayerName" + ")") + "");

Returns false, but player is online and near me.

 

List<WoWPlayer> playersInParty = new List<WoWPlayer>();
playersInParty = wManager.Wow.Helpers.Party.GetParty();
Logging.Write(playersInParty.Count + "");
 

Returns 0 , but im in party with 1 player.

Any idea? 

Link to comment
Share on other sites

15 hours ago, sowelu said:

 


 Logging.Write(Lua.LuaDoString<bool>("return UnitIsConnected(" + "PlayerName" + ")") + "");

Returns false, but player is online and near me.

 

Hello, try to use 

 Logging.Write(Lua.LuaDoString<bool>("return UnitIsConnected('" + "PlayerName" + "')") + "");

 

Link to comment
Share on other sites

List<string> partyMembers = new List<string>();
var numOfMembers = wManager.Wow.Helpers.Party.GetPartyNumberPlayers();


for (int i = 1; i < numOfMembers; i++) {

    var member = Lua.LuaDoString<List<string>>("return UnitName('party'.." + i + ")");
    Logging.Write(member[0]);
    partyMembers.Add(member[0]);
}

I wasn't able to get GetParty() to work, so above will get list of player names in the group.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...