コード例 #1
0
ファイル: BotUtils.cs プロジェクト: IgorYunusov/wow-bot
 public static void Dismount()
 {
     if (int.Parse(LUAHelper.GetLUA("IsMounted()")) == 1)
     {
         LUAHelper.DoString("Dismount()");
     }
 }
コード例 #2
0
ファイル: BotUtils.cs プロジェクト: IgorYunusov/wow-bot
 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);
     }
 }
コード例 #3
0
        static void Main(string[] args)
        {
            while (true)
            {
                try
                {
                    Work();
                }
                catch
                {
                    LUAHelper.ResumeMainWowThread();
                }
            }

            Console.Read();
        }
コード例 #4
0
ファイル: WorldUtils.cs プロジェクト: IgorYunusov/wow-bot
 public static Continent getContinent()
 {
     return((Continent)uint.Parse(LUAHelper.GetLUA("GetCurrentMapContinent()")));
 }
コード例 #5
0
ファイル: WorldUtils.cs プロジェクト: IgorYunusov/wow-bot
 public static void Interact()
 {
     LUAHelper.DoString("RunBinding(\"INTERACTTARGET\")");
 }
コード例 #6
0
ファイル: BotUtils.cs プロジェクト: IgorYunusov/wow-bot
 public static void CastSpell(string spell)
 {
     LUAHelper.DoString("CastSpellByName(\"" + spell + "\")");
 }