Ejemplo n.º 1
0
 public bool CastIfHasBuff(WoWGlobal wowinfo, WoWUnit unit) {
     if (unit.HasBuff(this.ID)) {
         this.SendCast();
         return true;
     }
     return false;
 }
Ejemplo n.º 2
0
 public DPSBot(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(tt) {
     this.wow = wowProcess;
     this.wowinfo = globalinfo;
     this.wowinfo.Refresh(wowProcess);
     Player = new GameObject(wowProcess, this.wowinfo.PlayerGUID);
     Target = new GameObject(wowProcess, this.wowinfo.TargetGUID);
     Focus = new GameObject(wowProcess, this.wowinfo.FocusGUID);
 }
Ejemplo n.º 3
0
 public override bool ReCast(WoWGlobal wowinfo, WoWUnit unit) {
     if (!unit.HasBuff(this.ID) && !wowinfo.SpellIsPending && wowinfo.HasRunesFor(cost)) {
         this.SendCast();
         return true;
     }
     else {
         return false;
     }
 }
Ejemplo n.º 4
0
 public bool CastIfHasRunesFor(WoWGlobal wowinfo) {
     if (wowinfo.HasRunesFor(cost)) {
         this.SendCast();
         return true;
     }
     else {
         return false;
     }
 }
Ejemplo n.º 5
0
 public override bool ReCast(WoWGlobal wowinfo, WoWUnit unit) {
     if (!unit.HasBuff(cot) && !unit.HasBuff(cote) && !unit.HasBuff(cow) && !unit.HasBuff(coe)) {
         this.SendCast();
         return true; 
     }
     else {
         return false;
     }
 }
Ejemplo n.º 6
0
 public virtual bool ReCast(WoWGlobal wowinfo, WoWUnit unit) {
     if (!unit.HasBuff(this.ID) /*&& !wowinfo.SpellIsPending*/) {
         this.SendCast();
         return true;
     }
     else {
         return false;
     }
 }
Ejemplo n.º 7
0
 public WalkBehindBot(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt, WalkTargetType wtf, float posThreshhold) : base(tt) {
     this.wow = wowProcess;
     this.wowinfo = globalinfo;
     this.wowinfo.Refresh(wowProcess);
     this.WhatToFollow = wtf;
     this.PositionThreshhold = posThreshhold;
     Player = new GameObject(wowProcess, this.wowinfo.PlayerGUID);
     setWalkTarget(out WalkTarget);
 }
Ejemplo n.º 8
0
        public void Print(WoWGlobal w) {
            Type type = w.GetType();
            PropertyInfo[] properties = type.GetProperties();
            Console.WriteLine("Printing Info about a " + type.ToString());
            foreach (PropertyInfo property in properties) {
                if (property.Name.Contains("GUID")) {
                    Console.WriteLine(property.Name.ToString().PadRight(Paddistance) + String.Format("0x{0:X16}",property.GetValue(w, null)));

                }
                else {
                    Console.WriteLine(property.Name.ToString().PadRight(Paddistance) + property.GetValue(w, null));
                }
            }
        }
Ejemplo n.º 9
0
        static void Main(string[] args) {
            myargs = args;
            WowPrinter.Print(ConstStrings.WelcomeMessage);
            if (args.Length > 0) {
                PROCESS_WINDOW_TITLE = args[0].ToString();  //If has arguments then connect to that window, not default
            }
            wowPrinter.Print(new Message("Connecting to window named " + PROCESS_WINDOW_TITLE));
            if (!Initializer.ConnectToGame(out wow, PROCESS_WINDOW_TITLE)) {
                WowPrinter.PrintExit(ConstStrings.InitError);            //Initialize if fail terminate the program
                return;
            }
            else {
                //Init success
                ClientInfo = new WoWGlobal(wow);
                WowPrinter.Print(ClientInfo);
                GameObject PlayerObject = new GameObject(wow, (UInt64)ClientInfo.PlayerGUID);
                GameObject TargetObject = new GameObject(wow, (UInt64)ClientInfo.TargetGUID);
                WoWRaid wr = new WoWRaid(wow);
                WoWParty wp = new WoWParty(wow);
                WowPrinter.Print(wp, 1);
                WowPrinter.Print(wr, 1);
                WowPrinter.Print(TargetObject); //For debug
                //DruidBalanceComplex gyula = new DruidBalanceComplex(100, 20);
                //Other.Tester tst = new Other.Tester(wow, PlayerObject, 60);
                //TestBot tb = new TestBot(100,100, ComplexBotStance.DpsTargetRanged);
                //WalkBehindBot kutya = new WalkBehindBot(wow, clientInfo, 100, WalkTargetType.CurrentTarget, 1);
                InitPvPBotBasedonClass(args, PlayerObject.Unit.WowClass);
                //SendKey.Rect pos =SendKey.GetWoWPosition();
                //SendKey.SetCursorPos((pos.Right-pos.Left)/2, (pos.Bottom - pos.Top) / 2);
                //StressTester asd = new StressTester(Wow, ClientInfo, 100);
                bool temp = true;
                while (temp) {
                    switch (Console.ReadKey().Key) {
                        case ConsoleKey.R:
                            RestartApp(args);
                            break;
                        case ConsoleKey.T:
                            temp = false;
                            break;
                    }
                }
                return;
            }

        }
Ejemplo n.º 10
0
 public DruidDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize Druid Feral(cat) DPS bot");
 }
Ejemplo n.º 11
0
 public PaladinDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize Paladin Retribution DPS bot");
 }
Ejemplo n.º 12
0
 public WarlockDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize Warlock Affliction DPS bot");
 }
Ejemplo n.º 13
0
 public PaladinPVEDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt, uint walkerTimerInterval) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize Paladin PVE Retribution DPS bot");
     followBot = new WalkerBot(this.wow, this.wowinfo, walkerTimerInterval, WalkTargetType.CurrentTarget, 5);
 }
Ejemplo n.º 14
0
 public DruidPVEDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt, uint walkerTimerInterval) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize Druid Feral(cat) PVE walker DPS bot");
     followBot = new WalkBehindBot(this.wow, this.wowinfo, walkerTimerInterval, WalkTargetType.CurrentTarget, 1);
 }
Ejemplo n.º 15
0
 public MageFirePVEDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt, uint walkerTimerInterval) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize FireMage PVE DPS bot");
     followFocus = new WalkerBot(this.wow, this.wowinfo, walkerTimerInterval, WalkTargetType.CurrentFocus, 10);
 }
 public DeathKnightBloodDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize Death Knight Blood DPS bot");
 }
Ejemplo n.º 17
0
 public WarlockDemoPVEDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint dpsTimerInterval) : base(wowProcess, globalinfo, dpsTimerInterval) {
     Console.WriteLine("Initialize Warlock Demonology Complex PvE (Beta) bot");
 }
 public PriestDiscPartyHeal(BlackMagic wowProcess, WoWGlobal globalinfo, uint healTimerInterval) : base(wowProcess, globalinfo, healTimerInterval) {
     Console.WriteLine("Priest Beta Healing");
 }
 public PriestDiscPartyHeal(BlackMagic wowProcess, WoWGlobal globalinfo, uint healTimerInterval, uint walkerTimerInterval) : base(wowProcess, globalinfo, healTimerInterval) {
     Console.WriteLine("Priest Beta Healing");
     followFocus = new WalkerBot(this.wow, this.wowinfo, walkerTimerInterval, WalkTargetType.CurrentFocus, 10);
 }
Ejemplo n.º 20
0
 public MageFirePVEDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize FireMage DPS bot");
 }
 public ShamanRestoPartyHeal(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize Shaman Resto Heal bot");
 }
 public ShamanRestoPartyHeal(BlackMagic wowProcess, WoWGlobal globalinfo, uint healinterval, uint walkerinterval) : base(wowProcess, globalinfo, healinterval) {
     Console.WriteLine("Initialize Shaman Resto Heal bot");
     focusfollow = new WalkerBot(wow, wowinfo, walkerinterval, WalkTargetType.CurrentFocus,10);
 }
Ejemplo n.º 23
0
 public StressTester(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(tt) {
     this.wow = wowProcess;
     this.wowinfo = globalinfo;
     Player = new GameObject(wowProcess, this.wowinfo.PlayerGUID);
     Target = new GameObject(wowProcess, this.wowinfo.TargetGUID);
 }
Ejemplo n.º 24
0
 public WarriTank(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) {
     Console.WriteLine("Initialize Warrior Tank bot");
 }
Ejemplo n.º 25
0
 public WarlockDemoPVEDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint dpsTimerInterval, uint walkerTimerInterval) : base(wowProcess, globalinfo, dpsTimerInterval) {
     Console.WriteLine("Initialize Warlock Demonology Complex PvE (Beta) bot");
     followFocus = new WalkerBot(this.wow, this.wowinfo, walkerTimerInterval, WalkTargetType.CurrentFocus,10);
 }