Exemple #1
0
        public bool TargetEnemy(GContext context, GPlayerSelf me, KeyHelper keyhelper)
        {
            GSpellTimer timer = new GSpellTimer(60 * 1000);

            keyhelper.SendKey("Common.TargetEnemy");
            Thread.Sleep(1000);
            while (!me.TargetGUID.Equals(GUID) && !timer.isReady)
            {
                keyhelper.SendKey("Common.TargetEnemy");
                Thread.Sleep(1000);
            }
            if (me.TargetGUID.Equals(GUID))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
        public GObjectList(int ProcessIdOfWoW)
        {
            bool didit = false;

            this.ProcessIdOfWoW = ProcessIdOfWoW;
            while (didit == false)
            {
                Memory = new BlackMagic();

                //this.form = form;
                //Lets Open wow for manipulation
                Memory.OpenProcessAndThread(ProcessIdOfWoW);
                //Lets find the Pattern - Shynd
                dwCodeLoc = SPattern.FindPattern(Memory.ProcessHandle, Memory.MainModule, PatternClientConnection, MaskClientConnection, ' ');

                //Lets find the s_curMgr
                try
                {
                    g_clientConnection = Memory.ReadUInt(dwCodeLoc + 0x16);
                    clientConnection   = Memory.ReadUInt(g_clientConnection);
                    curMgrOffset       = Memory.ReadUInt(dwCodeLoc + 0x1C);                //Lets find the CurMgr Offset
                    curMgr             = Memory.ReadUInt(clientConnection + curMgrOffset); //clientConnection + CurMgrOffest = Win

                    LocalGUIDVariable = Memory.ReadUInt64(curMgr + LocalGuidOffset);
                    localPlayerObject = getObjectByGUID(LocalGUIDVariable);
                    localPlayer       = new GPlayerSelf(this, localPlayerObject);
                }
                catch
                {
                }

                Descriptor = new Descriptors(Memory);
                //Lets start the object refresher
                objectRefresher = new Refresher(ProcessIdOfWoW);
                objectRefresher.GameObjectCreated  += new EventHandler <GameObjectEventArgs>(addToLists);
                objectRefresher.GameObjectReleased += new EventHandler <GameObjectEventArgs>(removeFromLists);


                didit = true;
            }
        }
Exemple #3
0
 public void stopRecordWayPoints(GPlayerSelf localPlayer)
 {
     //To do terminate the thread that records waypoints
 }
Exemple #4
0
 public void startRecordWayPoints(GPlayerSelf localPlayer)
 {
     //To do make a new thread that records the waypoints
 }