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

WeaponTable() static private method

static private WeaponTable ( ISmartMemory memUtils ) : void
memUtils ISmartMemory
return void
        static void WeaponTable(ISmartMemory memUtils)
        {
            scan = memUtils["client.dll"].Find(new byte[] { 0xA1, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xB7, 0xC9, 0x03, 0xC9, 0x8B, 0x44, 0x00, 0x0C, 0xC3 }, "x????xxxxxxx?xx");
            if (scan.Success)
            {
                int tmp = memUtils.Read<int>((IntPtr)(scan.Address.ToInt32() + 1));
                Offsets.MiscWeaponInfo = (IntPtr)tmp - clientDllBase;
                Logger.Info(ObjectEx.GetName(() => Offsets.MiscWeaponInfo) + "\n" + Offsets.MiscWeaponInfo.ToString("X8"));
            }
        }