byron 0 Posted June 15, 2018 Share Posted June 15, 2018 something similar to below sent from c Lua.LuaDoString for groupindex = 1; MAX_PARTY_MEMBERS do debuff = UnitDebuff("party"..groupindex , 1, SHOW_DISPELLABLE_DEBUFFS); if ( debuff ) then DEFAULT_CHAT_FRAME:AddMessage("how do I return a list of player names here back to c#" ); else DEFAULT_CHAT_FRAME:AddMessage("return no -one to dispel" ); end end Link to comment https://wrobot.eu/forums/topic/9599-how-do-i-return-a-list-of-player-names-based-on-party-index/ Share on other sites More sharing options...
Ordush 185 Posted June 15, 2018 Share Posted June 15, 2018 1 hour ago, byron said: something similar to below sent from c Lua.LuaDoString for groupindex = 1; MAX_PARTY_MEMBERS do debuff = UnitDebuff("party"..groupindex , 1, SHOW_DISPELLABLE_DEBUFFS); if ( debuff ) then DEFAULT_CHAT_FRAME:AddMessage("how do I return a list of player names here back to c#" ); else DEFAULT_CHAT_FRAME:AddMessage("return no -one to dispel" ); end end you just do a return with Lua.LuaDoString<String>("return functionName"); Link to comment https://wrobot.eu/forums/topic/9599-how-do-i-return-a-list-of-player-names-based-on-party-index/#findComment-44513 Share on other sites More sharing options...
byron 0 Posted June 15, 2018 Author Share Posted June 15, 2018 Hi I think I was more wondering from c# how do I find the party index number for a member of the group or given the index number, from lua how do I find the players name to return to c# (it it was a raid I could use raidroster with the index to return the players name, just wondered how to do it when they are a party) Link to comment https://wrobot.eu/forums/topic/9599-how-do-i-return-a-list-of-player-names-based-on-party-index/#findComment-44515 Share on other sites More sharing options...
sb360 17 Posted June 16, 2018 Share Posted June 16, 2018 Lua.LuaDoString("name=UnitName("party1");", "name"); ? Link to comment https://wrobot.eu/forums/topic/9599-how-do-i-return-a-list-of-player-names-based-on-party-index/#findComment-44516 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