Jump to content

Get names of players from GetWhoInfo() to list


Recommended Posts

Hello everyone, I need a little help. I want to use the info from the GetWhoInfo () lua to create a List<string> and add the names of the players to it, I will be glad of any help.

I can’t understand how this can be done, because in C # I am new and understand little

Link to comment
Share on other sites

var list = new List<string>();
for (int i = 0; i <30; i++)   // 30 is example
var x = Lua.LuaDoString<string>(string.Format("name, guild, level, race, class, zone, classFileName = GetWhoInfo({0}); return name", i));


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