sowelu 1 Posted September 14, 2017 Share Posted September 14, 2017 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 https://wrobot.eu/forums/topic/7089-is-player-offline-getparty-doesent-work/ Share on other sites More sharing options...
Avvi 98 Posted September 15, 2017 Share Posted September 15, 2017 I posted same thing in bug tracker: I'm pretty sure that there is an issue with the wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid That the .GetParty() function uses. sowelu 1 Link to comment https://wrobot.eu/forums/topic/7089-is-player-offline-getparty-doesent-work/#findComment-32096 Share on other sites More sharing options...
Droidz 2742 Posted September 15, 2017 Share Posted September 15, 2017 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" + "')") + ""); sowelu 1 Link to comment https://wrobot.eu/forums/topic/7089-is-player-offline-getparty-doesent-work/#findComment-32107 Share on other sites More sharing options...
sowelu 1 Posted September 15, 2017 Author Share Posted September 15, 2017 Awesome, thanks Link to comment https://wrobot.eu/forums/topic/7089-is-player-offline-getparty-doesent-work/#findComment-32109 Share on other sites More sharing options...
Avvi 98 Posted September 15, 2017 Share Posted September 15, 2017 @Droidz are we using the GetParty() function incorrectly? Link to comment https://wrobot.eu/forums/topic/7089-is-player-offline-getparty-doesent-work/#findComment-32111 Share on other sites More sharing options...
Avvi 98 Posted September 16, 2017 Share Posted September 16, 2017 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 https://wrobot.eu/forums/topic/7089-is-player-offline-getparty-doesent-work/#findComment-32170 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now