-
-
Notifications
You must be signed in to change notification settings - Fork 208
writeMemory()
Jacob Fliss edited this page Feb 12, 2019
·
16 revisions
bool writeMemory(string code, string type, string write, string file = "")
code = The memory address or INI file label.
type = byte, 2bytes, bytes, float, int, string, double or long
write = must be in string format, but you can write whatever as long as the type is set.
file = Path with INI file name. (OPTIONAL)
MemLib.writeMemory("0x006163DB","byte", "0xEB");
MemLib.writeMemory("0x006163DB","bytes", "0xEB 0xF9");
MemLib.writeMemory("0x006163DB", "float", "50.55");
MemLib.writeMemory("0x006163DB", "int", "100");
MemLib.writeMemory("0x006163DB", "string", "This is a test");
MemLib.writeMemory("0x006163DB", "long", "0x012345678910");
more info: writing an ini file
codes.ini
health=game.exe+0x006163DB,0x455,0x54,0xC455
C# code
MemLib.writeMemory("health", "int", "100", Environment.CurrentDirectory + @"\codes.ini");
MemLib.writeMemory("game.exe+0x006163DB,0x455,0x54,0xC455", "int", "100");
if (MemLib.writeMemory("game.exe+0x006163DB,0x455,0x54,0xC455", "int", "100")){
MessageBox.Show("Memory Write Was Successful!");
} else {
MessageBox.Show("Memory Write Was NOT Successful.");
}