AgaHackTools.Example.MemoryModule.OffsetScanner.PlayerTeamNum C# (CSharp) Method

PlayerTeamNum() static private method

static private PlayerTeamNum ( ISmartMemory memUtils ) : void
memUtils ISmartMemory
return void
        static void PlayerTeamNum(ISmartMemory memUtils)
        {
            scan = memUtils["client.dll"].Find(
                new byte[] { 0xCC, 0xCC, 0xCC, 0x8B, 0x89, 0x00, 0x00, 0x00, 0x00, 0xE9, 0x00, 0x00, 0x00, 0x00, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x8B, 0x81, 0x00, 0x00, 0x00, 0x00, 0xC3, 0xCC, 0xCC },
                "xxxxx????x????xxxxxxx????xxx");
            if (scan.Success)
            {
                //int tmp = memUtils.Read<int>((IntPtr)(lastScan.Address.ToInt32() + 5));
                Offsets.Team = (IntPtr)memUtils.Read<int>((IntPtr)(scan.Address.ToInt32() + 5));
                Logger.Info(ObjectEx.GetName(() => Offsets.Team) + "\n" + Offsets.Team.ToString("X8"));
            }
        }