Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help Item vac.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
rajada1
Newbie cheater
Reputation: 0

Joined: 02 Jan 2017
Posts: 12

PostPosted: Sun Feb 05, 2017 9:19 am    Post subject: Help Item vac. Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Feb 05, 2017 10:04 am    Post subject: Reply with quote

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
View user's profile Send private message
rajada1
Newbie cheater
Reputation: 0

Joined: 02 Jan 2017
Posts: 12

PostPosted: Sun Feb 05, 2017 3:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Feb 05, 2017 8:03 pm    Post subject: Reply with quote

I have uploaded a few vac examples on this forum. You can check my posts.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites