| View previous topic :: View next topic |
| Author |
Message |
3viserate How do I cheat?
Reputation: 0
Joined: 14 Apr 2007 Posts: 5
|
Posted: Tue Apr 17, 2007 12:26 am Post subject: Can someone look at this code... |
|
|
And tell me how i can change it so my health doesnt drop
Now when i freeze the address thats highlighted, i dont loose any life.
If i nop out that instruction it nops out the highlighted and the 2 below it and it causes the AI to be invulnerable as well, so anyway to change it so that only i am invulnerable and not the ai as well?
PS. IF you know how to fix it please explain why your code works and how it accomplishes it goal, so i dont have to ask for code ?'s when i come up against this again
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Tue Apr 17, 2007 1:28 am Post subject: |
|
|
You will have to dig deeper, Like using player id to do a comparison to see if it was You or enemy HP.
Here is a topic on it, you can get an idea of whats going down.
http://www.extalia.com/forum/viewtopic.php?t=1999
|
|
| Back to top |
|
 |
3viserate How do I cheat?
Reputation: 0
Joined: 14 Apr 2007 Posts: 5
|
Posted: Tue Apr 17, 2007 2:44 am Post subject: |
|
|
I cant pm you anymore cause i dont have enough post Labyrnth so ill tell you here
well i changed the code to:
mov ecx,340 <<<<< 340 is 800 in hex and since 800 is the value when my health bar is full i kinda got the feeling from the 0 that was in the previous it wasnt adding anything to my health therefore when i got hit once i died
mov [ebp+00],ecx
It worked!!! but then the game crashed so
Edit! Well i thought i figured out why it didnt work becasue when i tried to compile it the first time not all of the info was put in i overlooked it i guess and press ok before i read it soo......
I increased the size of the code cave i needed then recompiled it and it all fit. When i when to fight someone again they were invincible and it looked like as soon as i got shot it crashed again, so i dunno im going ot crash for the night and look over it again tomorrow.
|
|
| Back to top |
|
 |
SXGuy I post too much
Reputation: 0
Joined: 19 Sep 2006 Posts: 3551
|
Posted: Tue Apr 17, 2007 5:57 am Post subject: |
|
|
looks to me like EBP is a pointer with offset of 0
add the address to your ct and click, find out what writes to this address.
if an address doesnt pop up in the window, fight someone or let somthing hit you.
when an address pops up, click it, then click more information, and see what the address is for ebp.
Search the address in hex for ebp, add it as a pointer on your ct, and leave the offset 0.
you should have a hp pointer, freeze it at the value you want.
that post looks to me like he just nopped a few things thats all, db 90 is nop
_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"
Sign up today and receive your free "I Hate x0r Badge" |
|
| Back to top |
|
 |
CZ3R0C Grandmaster Cheater
Reputation: 0
Joined: 17 Nov 2006 Posts: 792
|
Posted: Tue Apr 17, 2007 7:34 am Post subject: |
|
|
| 3viserate wrote: | I cant pm you anymore cause i dont have enough post Labyrnth so ill tell you here
well i changed the code to:
mov ecx,340 <<<<< 340 is 800 in hex and since 800 is the value when my health bar is full i kinda got the feeling from the 0 that was in the previous it wasnt adding anything to my health therefore when i got hit once i died
mov [ebp+00],ecx
It worked!!! but then the game crashed so
Edit! Well i thought i figured out why it didnt work becasue when i tried to compile it the first time not all of the info was put in i overlooked it i guess and press ok before i read it soo......
I increased the size of the code cave i needed then recompiled it and it all fit. When i when to fight someone again they were invincible and it looked like as soon as i got shot it crashed again, so i dunno im going ot crash for the night and look over it again tomorrow. |
Since you wanna make the value of ecx 340[800] just right click-->change register-->tick ecx-->input the value 340-->click ok and try that.
_________________
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Tue Apr 17, 2007 1:00 pm Post subject: |
|
|
| SXGuy wrote: |
that post looks to me like he just nopped a few things thats all, db 90 is nop |
ehem. Try looking down father in the post at SunBeams Threads, not just the first post.
What he has going on is his health address, is that it effects the enemies also.
You will have to do a comparison possibly with player id.
And this is what SunBeam is talking about doing.
|
|
| Back to top |
|
 |
3viserate How do I cheat?
Reputation: 0
Joined: 14 Apr 2007 Posts: 5
|
Posted: Tue Apr 17, 2007 3:04 pm Post subject: |
|
|
label(04bd0000)
label(returnhere)
label(originalcode)
00578F0C:
jmp newmem
nop
returnhere:
newmem:
cmp ebp, [0491f71c] <<<<<<<< Both AI and my instruction is cmp
je 04bd0014 <<<<<<<< if my values are equal go to my new instruction
mov [ebp+00],ecx <<<<<<<< AI inst follows original code
cmp dword ptr [ebx],03 <<<<<<<< AI inst follows original code
jmp 00578f12 <<<<<<<< jmp to original code
mov ecx,0 <<<<<<<< this happens to me
mov [ebp+00],ecx <<<<<<<< this happens to me
exit:
jmp returnhere <<<<<<<< jmps to original code
Ok so i understand what sunbeam was talkig about cause here it basically sends my inst and the AI's inst to my code cave the AI's code gets sorted and shifted back to the orignal code. My code takes a diff route inside the code cave but how do i determine exactly what line i want my seperate code to actually write to so i can tell my instruction to go to it. Right now i have my instruction at 04bd0014 but im not sure its actually goign to be written at that line that my instruction gets routed to it, ive tried doing this in the code injection but it cant be compiled i have changed things around and around and still wont compile.
However i get error in line 2 (label(04bd0000)) : label 04bd0000 is not defined in the script.
How do i define that offset int he script? Anyone know where im screwing up?
|
|
| Back to top |
|
 |
|