예제 #1
0
        public void SetAsTarget()
        {
            //var allocatedMemory = (uint) Marshal.AllocHGlobal(0x10);

            //GeneralHelper.WriteGUID(allocatedMemory, Guid);
            //WoWFunctions._setTarget(allocatedMemory);
            WoWFunctions._setTarget(Guid);
            //Marshal.FreeHGlobal((IntPtr)allocatedMemory);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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));
        }
예제 #5
0
        //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);
        }
예제 #6
0
 public void Send()
 {
     WoWFunctions.Packet_SendJam(WoWFunctions._ClientConnection(), Cave, 2);
 }
예제 #7
0
 private void button13_Click(object sender, EventArgs e)
 {
     WoWFunctions._SetActiveMover(OldGUID, true);
 }
예제 #8
0
        public static string GetLocalizedText(string returnValue)
        {
            uint returnVal = WoWFunctions._GetLocalizedText(ObjectManager.LocalPlayer.Pointer, returnValue, -1);

            return(GeneralHelper.Memory.ReadString(returnVal, new ASCIIEncoding(), 5120));
        }
예제 #9
0
 public static void ExecuteBuffer(string command)
 {
     WoWFunctions._doString(command, command, 0);
 }
예제 #10
0
 public void TrackingStop()
 {
     WoWFunctions._TrackingStop(Pointer, 1, 1);
 }