private void Read() { var success = ProcessMemory.ReadChipsState(process, chipsStateAddress, chipsState); if (!success) { Log("Error encountered when reading"); } }
private void ReadMonsters() { if (monsterListAddress != NotFound) { var success = ProcessMemory.ReadMonsterList(process, monsterListAddress, monsterList, chipsState.MonsterList.Cap); if (!success) { monsterListAddress = NotFound; Log("Could not read monster list"); } } }
private void MonstersPropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e) { if (!IsHooked()) { return; } var success = ProcessMemory.WriteMonsterList(process, monsterListAddress, monsterList, chipsState.MonsterList.Length); if (!success) { Log($"Error encountered when writing"); } }
private void PropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e) { if (!IsHooked()) { return; } var success = ProcessMemory.WriteChipsState(process, chipsStateAddress, chipsState); if (!success) { Log($"Error encountered when writing"); } }
private void FindBlip2Marker() { var address = ProcessMemory.Find(process, Marker); if (address != NotFound) { chipsStateAddress = address + BlipWavToStateOffset; Log($"Success! Game state address = {chipsStateAddress.ToInt32():X}\r\n" + $"Data address = {(chipsStateAddress + DataOffset).ToInt32():X}\r\n" + $"Game state - 0xF160 = {(chipsStateAddress + MonsterListOffset).ToInt32():X}"); return; } else { chipsStateAddress = NotFound; } }