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 


Getting address from shared opcode

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
nemesis9
How do I cheat?
Reputation: 0

Joined: 23 Sep 2022
Posts: 9

PostPosted: Mon Dec 04, 2023 4:20 am    Post subject: Getting address from shared opcode Reply with quote

How do I extract the address of the shared opcode?
Is it possible that I filtered it out using cmp and getting the address I wanted for my player not the npc.
I want if I add address manually and named it "myAltitude" it gave me the address I wanted from that opcode.

The shared opcode goes like this :

Code:

mov [ebx+0000011C],eax



I already find the offset that differentiate my player from the npc and I'll use [esi+340] where my player is 2 and the npcs are 1 to filter my address.
I want to get the address from the [ebx+0000011C]
I tried this things but not really working out

My attempt :

Code:

[ENABLE]

aobscanmodule(pAltitude,NxCharacter.2.8.1.dll,89 83 1C 01 00 00) // should be unique
alloc(newmem,$1000)

label(code)
label(return)
label(myAltitude)
registersymbol(myAltitude)

newmem:
cmp [esi+340],2
jne code
mov [myAltitude],[ebx+0000011C]


code:
  mov [ebx+0000011C],eax
  jmp return

pAltitude:
  jmp newmem
  nop
return:
registersymbol(pAltitude)

[DISABLE]

pAltitude:
  db 89 83 1C 01 00 00

unregistersymbol(pAltitude)
unregistersymbol(myAltitude)
dealloc(newmem)



com check.PNG
 Description:
Commonalities group, i want to get the blue one only
 Filesize:  5.01 KB
 Viewed:  661 Time(s)

com check.PNG


Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4196

PostPosted: Mon Dec 04, 2023 5:17 am    Post subject: Reply with quote

Revise script to include the following:

Code:
newmem:
cmp [esi+340],2
jne code

push edx
lea edx,[ebx+0000011C]
mov [myAltitude],edx
pop edx

code:
mov [ebx+0000011C],eax
jmp return

myAltitude:
dd 0

pAltitude:
jmp newmem
nop
return:
registersymbol(pAltitude)


Once the script is activated, add address manually to table. Click the pointer box. Put myAltitude in the bottom text field. Change type to float.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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