public UnitObject(WowProcess process, IntPtr address) : base(process, address) { // var name = FindPlayerNameByGuid(guid); // var harm = CallFunctionWithTainted(GetOffset("isHarm"), playerObject.ToInt64(), obj.ToInt64()); // var help = CallFunction(GetOffset("isHelp"), playerObject.ToInt64(), obj.ToInt64()); //var testvalue = CallFunction(0x8c0500, playerObject.ToInt64(), obj.ToInt64()); // guid = *(obj + 0x10) // position = *(*(obj + 0x198) + 0x20) // powerOffset = *(2316420 + ((*(obj+0x188) + 0xb5 - 1) * 0x13) + powerType) * 4) // powerType = *(*(obj+0x188) + 0xb8) // power = *(obj+0x8A10+4*powerOffset) // power = *(*(obj+0x188) + 0xC8 + 4*powerOffset) // powerMax = *(*(obj+0x188) + 0xe8 + 4*powerOffset) // health = *(*(obj+0x188) + 0xC0) // healthMax = *(*(obj+0x188) + 0xE0) // mount = *(obj+0x1850) // aura size = *(obj + 0x1ac8) // aura[n] = *(obj + 0x1ad0 + n * 0xa8) // aura_spellId[n] = *(obj + 0x1B58 + n * 0xa8) // AuraSize = 0xA8; // AuraTable1 = 0x1AD0; // AuraOwnerGuid = 0x68; // AuraSpellId = 0x88; // AuraFlags = 0x90; // AuraStack = 0x91; // AuraLevel = 0x92; // AuraDuration = 0x94; // AuraEndTime = 0x98; }
static void Main(string[] args) { var processList = System.Diagnostics.Process.GetProcessesByName("WowClassic"); // Console.WriteLine("Airj's Anti AFK starting..."); foreach (var process in processList) { new Thread(() => { var wowProcess = new WowProcess(process); wowProcess.Open(); wowProcess.OffsetHolder.InitializeOffsets(); wowProcess.AllowCreateRemoteThread(true); Thread.Sleep(5); if (wowProcess.IsInGame()) { Console.WriteLine($"Starting for process {process.Id}, {wowProcess.GetPlayerName()}"); } // wowProcess.ResumeAllThread(); while (true) { if (wowProcess.IsInGame()) { wowProcess.SuspendAllThread(); var tainted = wowProcess.GetTaintedValue(); Console.WriteLine($"Tainted = {tainted}"); if (tainted != 0) { wowProcess.SetTaintedValue(0); } wowProcess.Test5(); if (tainted != 0) { wowProcess.SetTaintedValue(tainted); } wowProcess.ResumeAllThread(); Thread.Sleep(20); } } Thread.Sleep(5); wowProcess.AllowCreateRemoteThread(false); wowProcess.Close(); }).Start(); } // Console.WriteLine("Airj's Anti AFK finished. press any key to exit"); Console.ReadKey(); }
public MoveExecutor(WowProcess process) { this.process = process; }
public CallExecutor(WowProcess process) { this.process = process; }
public GameObject(WowProcess process, IntPtr address) { this.process = process; this.address = address; }
public PlayerObject(WowProcess process, IntPtr address) : base(process, address) { }
public ScriptExecutor(WowProcess process) { this._process = process; }
public NameCacheManager(WowProcess process) { this.process = process; }
public OffsetHolder(WowProcess process) { this.process = process; }
public GameObjectManager(WowProcess process) { this.process = process; }