ofc you have to change that lua command with your command but it alway worked for me (and is working now..)Lua.GetReturnValues("return GetRaidRosterInfo('"+index+"')").First();
bool.Parse(Lua.GetReturnValues("return [INSERT LUA CODE]").First());
Lua.GetReturnVal<int>("GetCurrencyInfo(392)", 1);
Lua.GetReturnValues("return GetWeaponEnchantInfo()")[0] == "1"
Lua.GetReturnVal<int>("return GetWeaponEnchantInfo()",0) == 1
// if the lua funtion returns 'true'/ 'false' string than use the below examle
Lua.GetReturnValues("return GetWeaponEnchantInfo()")[0] == "true"
bool leader=bool.Parse(Lua.GetReturnValues("return GetLFGRoles()").First());
Could also do something like thisCode:bool leader = Lua.GetReturnVal<bool>("return GetLFGRoles()", 0);
Never gives true, when I just use a string it's output is blank when it should always return true or false.
bool leader = Lua.GetReturnVal<int>("if GetLFGRoles() == true then return 1 else return 0 end", 0) == 1;
string luaExecute = String.Format("local Leader, Tank, isHealer, Damage = GetLFGRoles(); if {0} == true then return 1 else return 0 end", type);
bool result = Lua.GetReturnVal<int>(luaExecute, 0) == 1;
Log("Roles: {0}, {1}, {2}", type, result, (uint)type);






