public static void Dismount() { if (int.Parse(LUAHelper.GetLUA("IsMounted()")) == 1) { LUAHelper.DoString("Dismount()"); } }
public static bool IsOnCooldown(string spell) { LUAHelper.DoString("start, duration, enabled = GetSpellCooldown(\"" + spell + "\");"); Thread.Sleep(100); try { return(int.Parse(LUAHelper.GetLocalizedText("duration")) > 0); } catch { return(true); } }
static void Main(string[] args) { while (true) { try { Work(); } catch { LUAHelper.ResumeMainWowThread(); } } Console.Read(); }
public static Continent getContinent() { return((Continent)uint.Parse(LUAHelper.GetLUA("GetCurrentMapContinent()"))); }
public static void Interact() { LUAHelper.DoString("RunBinding(\"INTERACTTARGET\")"); }
public static void CastSpell(string spell) { LUAHelper.DoString("CastSpellByName(\"" + spell + "\")"); }