this is rather simple, if u just want a list of spell id's using Lua_GetReturnValue
Code:
public static void DumpSpells(int StartSpellId, int StopSpellId)
{
int x = StartSpellId;
while (x < int.MaxValue)
{
String s = "";
try
{
s = InjectionManager.Lua_GetReturnValue("name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange = GetSpellInfo(" + x.ToString() + ");", "name");
}
catch { MessageBox.Show("Error on ID " + x); }
System.Threading.Thread.Sleep(10);
if (s.Length > 0)
{
log.WriteToStart("" + x + "=" + s, false); // output to *.txt
}
x++;
if (x > StopSpellId)
{
MessageBox.Show("Debug int > " + StopSpellId);
break;
}
}
}