public void SetAsTarget() { //var allocatedMemory = (uint) Marshal.AllocHGlobal(0x10); //GeneralHelper.WriteGUID(allocatedMemory, Guid); //WoWFunctions._setTarget(allocatedMemory); WoWFunctions._setTarget(Guid); //Marshal.FreeHGlobal((IntPtr)allocatedMemory); }
public bool HaveAggroWith(uint objectPointer) { //if (!this.InCombat) // return false; uint Status = 0; uint RawPercentage = 0; uint ThreatValue = 0; uint ScaledPercent = 0; WoWFunctions._unitThreatInfo(Pointer, objectPointer, ref Status, ref RawPercentage, ref ScaledPercent, ref ThreatValue); return(Status >= 3); }
private void button12_Click(object sender, EventArgs e) { GeneralHelper.MainLog(ObjectManager.LocalPlayer.Pointer.ToString("X"), "wow"); OldGUID = ObjectManager.LocalPlayer.Guid; /*WoWPacket moverPacket = new WoWPacket(0x002708E1); * moverPacket.Set<ulong>(0x10, 0x0); * moverPacket.Send(); * ulong RandomPlayer = ObjectManager.LocalPlayer.TargetGuid;*/ WoWFunctions._SetActiveMover(0, true); }
public void Cast(WoWUnit target) { if (!IsValid) { return; } if (target == null || !target.IsValid) { return; } WoWFunctions._setTarget(target.Guid); WoWLua.ExecuteBuffer(string.Format("CastSpellByID(\"{0}\")", Id)); }
//This is the first thing called in our injected dll, Ensure to start your form and call any Initalize Functions you may need. public static int Run() { MessageBox.Show("Attach if you want to debug!"); GeneralHelper.Initialize(); Offsets.Initialize(); WoWFunctions.Initialize(); //Some internal functions we can call :) ObjectManager.Initialize(); Pulsator.Initialize(); WoWEvents.Initialize(); Application.EnableVisualStyles(); Application.Run(new MainForm()); return(0); }
public void Send() { WoWFunctions.Packet_SendJam(WoWFunctions._ClientConnection(), Cave, 2); }
private void button13_Click(object sender, EventArgs e) { WoWFunctions._SetActiveMover(OldGUID, true); }
public static string GetLocalizedText(string returnValue) { uint returnVal = WoWFunctions._GetLocalizedText(ObjectManager.LocalPlayer.Pointer, returnValue, -1); return(GeneralHelper.Memory.ReadString(returnVal, new ASCIIEncoding(), 5120)); }
public static void ExecuteBuffer(string command) { WoWFunctions._doString(command, command, 0); }
public void TrackingStop() { WoWFunctions._TrackingStop(Pointer, 1, 1); }