View previous topic :: View next topic |
Author |
Message |
rajada1 Newbie cheater
Reputation: 0
Joined: 02 Jan 2017 Posts: 12
|
Posted: Sun Feb 05, 2017 9:19 am Post subject: Help Item vac. |
|
|
I have the x and y position of the item and the player.
What I need is to do with the item's position follow the player's features.
I can put the item anywhere on the screen, but I wanted to make it follow the player.
My biggest difficulty is that the value is in another address
item x
Code: | "epic.exe"+45C834:
fadd dword ptr [esi+38] |
item y
Code: | "epic.exe"+45C81F:
fadd dword ptr [esi+3C] |
player x
Code: | "epic.exe"+7B5C98:
fstp dword ptr [ebp+000051B8] |
player y
Code: | "epic.exe"+7B5B00:
fstp dword ptr [ebp+000051A15] |
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Feb 05, 2017 10:04 am Post subject: |
|
|
Code: | label(player_pos)
"epic.exe"+7B5C98:
fstp dword ptr [ebp+000051B8]
mov [player_pos],ebp
jmp returnhere
player_pos:
dd 0 |
Code: | "epic.exe"+45C834:
//fadd dword ptr [esi+38]
push [player_pos+000051B8]
pop [esi+38] |
|
|
Back to top |
|
 |
rajada1 Newbie cheater
Reputation: 0
Joined: 02 Jan 2017 Posts: 12
|
Posted: Sun Feb 05, 2017 3:08 pm Post subject: |
|
|
unsuccessfully.
I will leave below the complete script, to move the items to anywhere on the screen.
obs:I ended up writing some wrong code on the first post
Code: | [ENABLE]
// Y
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
originalcode:
fadd dword ptr [esi+3C]
fadd dword ptr [edi+08]
mov [esi+3C], (float)0.2705555558 //Place where I want to move
exit:
jmp returnhere
"epic.exe"+45C81F:
jmp newmem
nop
returnhere:
// X
alloc(newmem2,2048)
label(returnhere2)
label(originalcode2)
label(exit2)
newmem2:
originalcode2:
fadd dword ptr [esi+38]
fstp dword ptr [esp+14]
mov [esi+38], (float)0.002752 // Place where I want to move
exit2:
jmp returnhere2
"epic.exe"+45C834:
jmp newmem2
nop
nop
returnhere2:
[DISABLE]
dealloc(newmem)
"epic.exe"+45C81F:
fadd dword ptr [esi+3C]
fadd dword ptr [edi+08]
//Alt: db D8 46 3C D8 47 08
dealloc(newmem2)
"epic.exe"+45C834:
fadd dword ptr [esi+38]
fstp dword ptr [esp+14]
//Alt: db D8 46 38 D9 5C 24 14 |
This is the AA of the position X player
Code: | alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
originalcode:
fld dword ptr [ebp+000051B4]
exit:
jmp returnhere
"epic.exe"+7B5A30:
jmp newmem
nop
returnhere:
|
And this is the position Y AA
Code: | alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
fstp dword ptr [ebp+000051B8]
exit:
jmp returnhere
"epic.exe"+7B5B00:
jmp newmem
nop
returnhere:
|
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Feb 05, 2017 8:03 pm Post subject: |
|
|
I have uploaded a few vac examples on this forum. You can check my posts.
|
|
Back to top |
|
 |
|