Skip to content

Commit 15a167e

Browse files
authored
Update README.md
1 parent 3fb9f06 commit 15a167e

File tree

1 file changed

+67
-1
lines changed

1 file changed

+67
-1
lines changed

README.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,67 @@
1-
# NullMemory
1+
# Advanced Memory class
2+
3+
Advanced Memory Read/Write class
4+
5+
- [x] Memory Read/Write
6+
- [x] WorldToScreen function
7+
- [x] FindDMAAddy function
8+
- [x] Advanced Signature Scan function
9+
- [x] Module Object
10+
- [x] others ...
11+
12+
## Example usage
13+
14+
```csharp
15+
16+
Memorys.Initialize(p[0].Id);
17+
Memorys.Module client = new Memorys.Module(p[0], "client.dll");
18+
Memorys.Module engine = new Memorys.Module(p[0], "engine.dll");
19+
20+
strClient.Text = client.ToString();
21+
StrEngine.Text = engine.ToString();
22+
int clientstate = Memorys.FindPattern(engine, "A1 ? ? ? ? 33 D2 6A 00 6A 00 33 C9 89 B0", 1, 0, true);
23+
/*
24+
25+
{
26+
"name": "dwClientState",
27+
"extra": 0,
28+
"relative": true,
29+
"module": "engine.dll",
30+
"offsets": [
31+
1
32+
],
33+
"pattern": "A1 ? ? ? ? 33 D2 6A 00 6A 00 33 C9 89 B0"
34+
},
35+
36+
*/
37+
int clientstate_state = Memorys.FindPattern(engine, "83 B8 ? ? ? ? ? 0F 94 C0 C3", 2, 0, false);
38+
/*
39+
40+
{
41+
"name": "dwClientState_State",
42+
"extra": 0,
43+
"relative": false,
44+
"module": "engine.dll",
45+
"offsets": [
46+
2
47+
],
48+
"pattern": "83 B8 ? ? ? ? ? 0F 94 C0 C3"
49+
},
50+
51+
*/
52+
53+
int EngineBase = Memorys.ReadMemory<int>(engine.Address + clientstate);
54+
strResult.Text = "dwClientState => 0x" + clientstate.ToString("X") + Environment.NewLine +
55+
"dwClientState_State => 0x" + (clientstate_state).ToString("X") + Environment.NewLine +
56+
"dwState => " + Memorys.ReadMemory<int>(EngineBase + clientstate_state).ToString();
57+
58+
```
59+
60+
## Example usage - Output
61+
![alt text](https://github.com/Lufzy/Advanced-Memory/blob/master/example_output.PNG?raw=true)
62+
63+
- [Signature Scan working correctly]
64+
![alt text](https://github.com/Lufzy/Advanced-Memory/blob/master/memorys_example.PNG?raw=true)
65+
66+
## License
67+
[MIT](https://choosealicense.com/licenses/mit/)

0 commit comments

Comments
 (0)