 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
qwerty2107 How do I cheat?
Reputation: 0
Joined: 01 Mar 2015 Posts: 2
|
Posted: Thu Jun 04, 2015 1:24 am Post subject: need help to hook sound |
|
|
Hello, please help to find error(s) in CE script (DOTA 2:)
I am trying hook access to sound ability, but the game crashes with playing any ability :(
| Code: | [ENABLE]
aobscanmodule(pudghook,engine.dll,FF FF FF 8B C8 2B D1 90 8A 0C 02 84 C9) // should be unique
alloc(newmem,$1000)
label(return)
label(mismatch)
label(match)
newmem:
db 'hook_retract_stop.wav' // string to compare
pushad
cld
mov ecx, 14
lea esi, [edx+eax] // [edx+eax] pointer to name sound file
lea edi, [newmem] // [newmem] pointer(?) to constant db 'hook_retract_stop.wav'
repe cmpsb
jne mismatch //game crash in any case
match:
push 0
push 0
push 0
push 0x56
call 74BB02BF //WinApi keybd_event function (Key 'V' Down)
push 0
push 0x02
push 0
push 0x56
call 74BB02BF // (Key 'V' Up)
push 0
push 0
push 0
push 0x56
call 74BB02BF // (Key 'V' Down)
push 0
push 0x02
push 0
push 0x56
call 74BB02BF // (Key 'V' Up)
mismatch:
popad
mov cl,[edx+eax]
test cl,cl
jmp return
pudghook+08:
jmp newmem
return:
registersymbol(pudghook)
[DISABLE]
pudghook+08:
db 8A 0C 02 84 C9
unregistersymbol(pudghook)
dealloc(newmem) |
| Description: |
|
 Download |
| Filename: |
dotaHook.CT |
| Filesize: |
3.13 KB |
| Downloaded: |
493 Time(s) |
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25854 Location: The netherlands
|
Posted: Thu Jun 04, 2015 5:22 am Post subject: |
|
|
jmp newmem will execute "hook_retract_stop.wav" and i doubt that is valid code
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Jun 04, 2015 5:34 am Post subject: |
|
|
added:
- code: and label(code)
modified:
- from jmp newmem to jmp code
| Code: | { Game : dota.exe
Version:
Date : 2015-06-04
Author : Dima
This script does blah blah blah
}
[ENABLE]
aobscanmodule(pudghook,engine.dll,FF FF FF 8B C8 2B D1 90 8A 0C 02 84 C9) // should be unique
alloc(newmem,$1000)
label(return)
label(mismatch)
label(match)
label(code)
newmem:
db 'hook_retract_stop.wav' // string to compare
code:
pushad
cld
mov ecx,14
lea esi,[edx+eax] // [edx+eax] pointer to name sound file
lea edi,newmem //
repe cmpsb
jne mismatch //game crash in any case
match:
push 0
push 0
push 0
push 0x56
call 74BB02BF //WinApi keybd_event function (Key 'V' Down)
push 0
push 0x02
push 0
push 0x56
call 74BB02BF // (Key 'V' Up)
push 0
push 0
push 0
push 0x56
call 74BB02BF // (Key 'V' Down)
push 0
push 0x02
push 0
push 0x56
call 74BB02BF // (Key 'V' Up)
mismatch:
popad
mov cl,[edx+eax]
test cl,cl
jmp return
pudghook+08:
jmp code
return:
registersymbol(pudghook)
[DISABLE]
pudghook+08:
db 8A 0C 02 84 C9
unregistersymbol(pudghook)
dealloc(newmem) |
_________________
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|