/// <summary> /// Constructor /// Needs to RescanAOB() for pointers to update /// </summary> /// <param name="process"></param> public PrepareToDie(PHook process) : base(process) { // Set pointers base.pFlags = Process.RegisterAbsoluteAOB(FLAGS_AOB, 8, 0, 0); base.pLoaded = Process.RegisterAbsoluteAOB(CHR_DATA_AOB, 4, 0, 0x4, 0x0); pBasePtr = Process.RegisterAbsoluteAOB(BASE_PTR_AOB, 2); pInventoryData = Process.RegisterAbsoluteAOB(INVENTORY_DATA_AOB, 1); Process.RescanAOB(); }
/// <summary> /// Constructor /// Needs to RescanAOB() for pointers to update /// </summary> /// <param name="process"></param> public Remastered(PHook process) : base(process) { // Set pointers base.pFlags = Process.RegisterRelativeAOB(FLAGS_AOB, 3, 7, 0, 0); base.pLoaded = Process.RegisterRelativeAOB(CHR_FOLLOW_CAM_AOB, 3, 7, 0, 0x60, 0x60); pBasePtr = Process.RegisterRelativeAOB(BASE_PTR_AOB, 3, 7); pItemAddr = Process.RegisterAbsoluteAOB(ITEM_ADDR_AOB); pInventoryData = Process.RegisterRelativeAOB(INVENTORY_DATA_AOB, 3, 7); Process.RescanAOB(); }
/// <summary> /// Constructor /// Needs to RescanAOB() for pointers to update /// </summary> /// <param name="process"></param> public PrepareToDie(PHook process) : base(process) { // Set pointers pCharClassBase = Process.RegisterAbsoluteAOB(CHAR_CLASS_BASE_AOB, 2, 0); pInventoryReset = Process.RegisterAbsoluteAOB(INVENTORY_RESET_AOB, 36); pLoaded = Process.RegisterAbsoluteAOB(CHR_DATA_AOB, 4, 0, 0x4, 0x0); pCurrentSlot = Process.RegisterAbsoluteAOB(CURRENT_SLOT_AOB, 2, 0); pSL2 = Process.RegisterAbsoluteAOB(SL2_INFORMATION_AOB, 7); Process.RescanAOB(); if (!Process.AOBScanSucceeded) { throw new Exception("At least one AOB scan failed."); } }
/// <summary> /// Constructor /// Needs to RescanAOB() for pointers to update /// </summary> /// <param name="process"></param> public Remastered(PHook process) : base(process) { // Set pointers pCharClassBase = Process.RegisterRelativeAOB(CHR_CLASS_BASE_AOB, 3, 7, 0); pLoaded = Process.RegisterRelativeAOB(CHR_FOLLOW_CAM_AOB, 3, 7, 0, 0x60, 0x60); pInventoryReset = Process.RegisterRelativeAOB(INVENTORY_RESET_AOB, 3, 7); pCurrentSlot = Process.RegisterRelativeAOB(CHR_CLASS_WARP_AOB, 3, 0, 7); Process.RescanAOB(); if (!Process.AOBScanSucceeded) { throw new Exception("At least one AOB scan failed."); } // Only compute those values once steamId3 = SteamID3(); isJapanese = IsJapanese(); }
public DS2GXPointLight(PHook hook, PHPointer b, int index) { Hook = hook; BasePointer = b; Index = index; }
/// <summary> /// Default constructor /// </summary> public DarkSouls(PHook process) { this.Process = process; }
/// <summary> /// Creates a new absolute AOB pointer. /// </summary> public PHPointerAOBAbsolute(PHook parent, byte?[] aob, params int[] offsets) : base(parent, aob, offsets) { }
public DS3GXLightManager(PHook hook, PHPointer b, int offset) { Hook = hook; BasePointer = b; Offset = offset; }