Jump to content
  • wManager.Wow.Helpers.Party.GetParty() Broken?


    Avvi
    • Version: All Product: WRobot General Type: Bug Status: Cannot Reproduce

    I think GetParty() is broken for Burning Crusade and possibly Legion? It is not broken in WoTLK, as below snippet works. Running code below always returns 0 members in the group in BC. 

    var party = wManager.Wow.Helpers.Party.GetParty();
    
    Logging.Write("Total members in group: " + party.Count);
    foreach (var members in party)
    {
       Logging.Write("Player name: " + members.name);
    }


     



    User Feedback

    Recommended Comments

     

    Below always returns 0 from wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid. I think real issue is with wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid

                    var numofMembers = wManager.Wow.Helpers.Party.GetPartyNumberPlayers();
    
                    if (numofMembers >= 2) {
                        WoWObject objectByGuid = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember1GUID());
                        WoWObject objectByGuid2 = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember2GUID());
                        WoWObject objectByGuid3 = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember3GUID());
                        WoWObject objectByGuid4 = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember4GUID());
    
                        Logging.Write(" "+objectByGuid.GetBaseAddress);
                        Logging.Write(" " + objectByGuid2.GetBaseAddress);
                        Logging.Write(" " + objectByGuid3.GetBaseAddress);
                        Logging.Write(" " + objectByGuid4.GetBaseAddress);
    
                    }

     

    Edited by Avvi
    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 it working, but for anyone interested in a workaround for getting player names in group, the above function should work.

    Link to comment
    Share on other sites

    1 hour ago, Avvi said:
    
    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 it working, but for anyone interested in a workaround for getting player names in group, the above function should work.

     

    Quote

    var party = wManager.Wow.Helpers.Party.GetParty();

    Logging.Write("Total members in group: " + party.Count);
    foreach (var members in party)
    {
       Logging.Write("Player name: " + members.Name);
    }

    I have run this code and is works. Party product dont works?

    Link to comment
    Share on other sites

    Just now, Droidz said:
    
    var party = wManager.Wow.Helpers.Party.GetParty();
    
    Logging.Write("Total members in group: " + party.Count);
    foreach (var members in party)
    {
       Logging.Write("Player name: " + members.Name);
    }

    I have run this code and is works. Party product dont works?

    I am able to use some funcitons from Party, but the GetParty() funtion isn't working for me. I restarted, re-installed, etc but it doesn't seem to work for me. 

    Link to comment
    Share on other sites

    I think the real issue with the Party function is the GetObjectByGuid, and not actually the party helper. When i use GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember4GUID()), it doesn't work.

    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...