|
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 | + |
| 62 | + |
| 63 | + - [Signature Scan working correctly] |
| 64 | + |
| 65 | + |
| 66 | +## License |
| 67 | +[MIT](https://choosealicense.com/licenses/mit/) |
0 commit comments