Ejemplo n.º 1
0
        private void Read()
        {
            var success = ProcessMemory.ReadChipsState(process, chipsStateAddress, chipsState);

            if (!success)
            {
                Log("Error encountered when reading");
            }
        }
Ejemplo n.º 2
0
 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");
         }
     }
 }
Ejemplo n.º 3
0
        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");
            }
        }
Ejemplo n.º 4
0
        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");
            }
        }
Ejemplo n.º 5
0
        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;
            }
        }