What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

GetLFGRoles Issue

Vastico

New Member
Joined
Jul 28, 2011
Messages
424
Reaction score
10
Does anyone know why:

Code:
        private bool IsRole(RoleType type)
        {
            for (uint i = 0; i < 4; i++)
            {
                Log("LFGRole: {0},{1}", i, Lua.GetReturnVal<bool>("return GetLFGRoles()", i));
            }
            return Lua.GetReturnVal<bool>("return GetLFGRoles()", (uint) type);
        }

Isn't outputting true when I have that role selected?
 
I also tried:

Code:
List<string> results = Lua.GetReturnValues("return GetLFGRoles()", "LFG.lua");
            Log("IsRole Count: {0}", results.Count);
            Log("IsRole {0}, {1}", results.ToArray()[0], results.ToArray()[results.Count - 1]);

Count is 4 but when I query the array they are blank...
 
So Lua.DoString("print(GetLFGRoles())");

Prints correctly but

Lua.GetReturnVal<bool>("return GetLFGRoles()", 0);

Doesn't return true or false at all...
 
So Lua.DoString("print(GetLFGRoles())");

Prints correctly but

Lua.GetReturnVal<bool>("return GetLFGRoles()", 0);

Doesn't return true or false at all...
you dont need lua, just make a new method.

Code:
         foreach(WoWPartyMember PM in Me.PartyMemberInfos)
                    {
                        if (PM.Role == WoWPartyMember.GroupRole.Damage)
                        {
                            Logging.Write("{0} Is DPS", PM.ToPlayer().Name.ToString());
                        }

                    }
 
once your in the dungeon you can get the roles, to get them before they are set, the only person who has messed around with that lua, would be raphus.
 
I don't think you understand what I mean, when you open the LFD tool/frame you get to select your roles before queuing. I want to get those roles and to get them you use GetLFGRoles(), to set SetLFGRoles(leader, tank, healer, damage) (booleans accordingly)
 
I don't think you understand what I mean, when you open the LFD tool/frame you get to select your roles before queuing. I want to get those roles and to get them you use GetLFGRoles(), to set SetLFGRoles(leader, tank, healer, damage) (booleans accordingly)
what i said is, you need to send a PM to raphus, i have not messed with that API, where as Raphus can just Give you the method he made for instancebuddy. and be a lot more help full about that section of the API then i can.
 
Back
Top