Fatamorgen Cheater
Reputation: 0
Joined: 17 Feb 2021 Posts: 29
|
Posted: Tue Feb 23, 2021 11:32 pm Post subject: Create a simple timer through code injection. |
|
|
As the title says I want to create a simple timer. When it reaches 0 the code is activated.
I know i need "call GetTickCount" to activate the code, but the game crashed after I tried.
| Code: | define(address,.....)
define(bytes, .....)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000,"gpgxl.dll"+6DB86)
label(code)
label(return)
newmem:
code:
call GetTickCount
cmp eax,#100 // when it reaches zero it should proceed with the code and then freeze ["gpgxl.dll"+6D765] at 500. ↓↓↓
mov word ptr ["gpgxl.dll"+6D765],#500
jmp return
address:
jmp newmem
nop
return:
[DISABLE]
address:
db bytes
dealloc(newmem) |
The timer starts with 100 ms but when it reaches 0 the value is set to 500.
|
|