Beispiel #1
0
 public static void Dismount()
 {
     if (int.Parse(LUAHelper.GetLUA("IsMounted()")) == 1)
     {
         LUAHelper.DoString("Dismount()");
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 public static void Interact()
 {
     LUAHelper.DoString("RunBinding(\"INTERACTTARGET\")");
 }
Beispiel #4
0
 public static void CastSpell(string spell)
 {
     LUAHelper.DoString("CastSpellByName(\"" + spell + "\")");
 }