| View previous topic :: View next topic |
| Author |
Message |
Niko Cheater
Reputation: 0
Joined: 28 Mar 2014 Posts: 33
|
Posted: Sat May 17, 2014 3:11 am Post subject: Some help with a script/command |
|
|
Hi all.
I have this script that I generated with auto assmble>code injection:
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
movss [esi-50],xmm0
exit:
jmp returnhere
"AvP_DX11.exe"+303DEE:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"AvP_DX11.exe"+303DEE:
movss [esi-50],xmm0
//Alt: db F3 0F 11 46 B0 |
What I want to do, is to set the specific value of the addresses this instruction accesses to 1 float. So should the command be movss [esi-50],1 or what? Post a script that sets this instruction to set the value to 1 float if you could. I know this is very basic, but I need it for a few scripts and im not exactly sure how it works. Thanks in advance. |
|
| Back to top |
|
 |
NanoByte Expert Cheater
Reputation: 1
Joined: 13 Sep 2013 Posts: 222
|
Posted: Sat May 17, 2014 6:39 am Post subject: |
|
|
Once again its those weird xmm stuff but if u want to set a float just do it like this
mov [esi-50],(float)1 |
|
| Back to top |
|
 |
Niko Cheater
Reputation: 0
Joined: 28 Mar 2014 Posts: 33
|
Posted: Sat May 17, 2014 7:58 am Post subject: |
|
|
| NanoByte wrote: | Once again its those weird xmm stuff but if u want to set a float just do it like this
mov [esi-50],(float)1 |
Thanks for the info, it works. |
|
| Back to top |
|
 |
NanoByte Expert Cheater
Reputation: 1
Joined: 13 Sep 2013 Posts: 222
|
Posted: Sat May 17, 2014 3:02 pm Post subject: |
|
|
Np Mate  |
|
| Back to top |
|
 |
|