public bool CastIfHasBuff(WoWGlobal wowinfo, WoWUnit unit) { if (unit.HasBuff(this.ID)) { this.SendCast(); return true; } return false; }
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); }
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; } }
public bool CastIfHasRunesFor(WoWGlobal wowinfo) { if (wowinfo.HasRunesFor(cost)) { this.SendCast(); return true; } else { return false; } }
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; } }
public virtual bool ReCast(WoWGlobal wowinfo, WoWUnit unit) { if (!unit.HasBuff(this.ID) /*&& !wowinfo.SpellIsPending*/) { this.SendCast(); return true; } else { return false; } }
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); }
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)); } } }
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; } }
public DruidDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) { Console.WriteLine("Initialize Druid Feral(cat) DPS bot"); }
public PaladinDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) { Console.WriteLine("Initialize Paladin Retribution DPS bot"); }
public WarlockDPS(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) { Console.WriteLine("Initialize Warlock Affliction DPS bot"); }
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); }
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); }
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"); }
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); }
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); }
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); }
public WarriTank(BlackMagic wowProcess, WoWGlobal globalinfo, uint tt) : base(wowProcess, globalinfo, tt) { Console.WriteLine("Initialize Warrior Tank bot"); }
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); }