Beispiel #1
0
        public void Refresh()
        {
            wowConnection.TryToRefreshObjectManager();
            WoWObject.GetAllObjects(ref Game1.allUnits, ref Game1.allSpells, ref Game1.allPlayers, wowConnection);
            player.Refresh(wowConnection);
            byte combatByte = wowConnection.Connection.ReadByte(wowConnection.Connection.ReadUInt(player.BaseAddress + MemoryOffsets.ObjectManagerLocalCombatInfoArray) + MemoryOffsets.UnitIsInCombat);

            channeledSpell = wowConnection.Connection.ReadByte((uint)wowConnection.Connection.MainModule.BaseAddress + MemoryOffsets.GlobalInfoSpellBeingChanelled);
            castedSpell    = wowConnection.Connection.ReadByte((uint)wowConnection.Connection.MainModule.BaseAddress + MemoryOffsets.GlobalInfoSpellBeingCasted);
            isInCombat     = (combatByte & 0x4) != 0;
            RefreshTarget();
            RefreshPet();
        }
Beispiel #2
0
 private void Refresh(TimeSpan totalgameTime)
 {
     if ((totalgameTime - previousRefreshTime) > TimeSpan.FromMilliseconds(50))
     {
         previousRefreshTime = totalgameTime;
         mainwow.TryToRefreshObjectManager();
         WoWObject.GetAllObjects(ref allUnits, ref allSpells, ref allPlayers, mainwow);
         mainPlayer.RefreshFromList(allPlayers, mainPlayer.WindowTitle);
         WoWPlayer.SetWindowTitleForPlayer(ref allPlayers, mainPlayer.Guid, mainwow.WindowTitle);
         foreach (WoWPlayer wp in allPlayers)
         {
             if (wp.WindowTitle != null && Vector2.Distance(wp.MovementTarget, new Vector2(wp.Position.X, wp.Position.Y)) < 80)
             {
                 if (MoveController.RotateTowards(wp, wp.MovementTarget, (double)0.06 * Math.PI, true))
                 {
                     MoveController.WalkingTowards(wp, wp.MovementTarget, 5);
                 }
             }
         }
     }
 }
Beispiel #3
0
 public void RefreshShit()
 {
     mainwow.TryToRefreshObjectManager();
     WoWObject.GetAllObjects(ref allUnits, ref allSpells, ref allPlayers, mainwow);
 }