View previous topic :: View next topic |
Author |
Message |
Spawnova Newbie cheater
Reputation: 0
Joined: 12 Feb 2013 Posts: 22
|
Posted: Sat May 04, 2013 5:42 pm Post subject: novice at assembler what am i doing wrong? |
|
|
I'm trying to make it so if hp is lower then 36 raise it back to 36
I'm doing this for training purposes otherwise I would use nop
Here's what I got so far
Code: | [ENABLE]
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(mytest)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [00E74C24],36 //compare value at adress to 36
jl mytest //if lower then goto test
jmp exit //else exit
originalcode:
{and al,00
add [eax],al
add [eax],al}
mytest:
mov [00E74C24],36 //making value at adress 36?
exit:
jmp returnhere
"DeSmuME.exe"+A74C24:
jmp newmem
nop
returnhere:
[DISABLE]
DeSmuME.exe+A74C24:
and al,00 |
|
|
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: Sat May 04, 2013 5:54 pm Post subject: |
|
|
You probably hooked piece of code that is never executed
(judging by original code: and al,00 ; add [eax],al ; add [eax],al )
_________________
|
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sat May 04, 2013 5:59 pm Post subject: |
|
|
Also use #36 instead of 36, because without # the number is used as hex and not decimal.
_________________
I'm rusty and getting older, help me re-learn lua. |
|
Back to top |
|
 |
Spawnova Newbie cheater
Reputation: 0
Joined: 12 Feb 2013 Posts: 22
|
Posted: Sat May 04, 2013 6:03 pm Post subject: |
|
|
I went to the address with static offset for player health in the memory viewer is that not correct?
also If i disable script it sets health to maxhealth
*edit I've done another search this time for all and found 3 offsets all of which are static and lead to same opcodes
thanks flash I thought that was the case but wasnt sure
Last edited by Spawnova on Sat May 04, 2013 6:16 pm; edited 1 time in total |
|
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
|
|
Back to top |
|
 |
|