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 


How to change the value using auto assembler immediately??

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Tue Jun 03, 2014 4:14 am    Post subject: How to change the value using auto assembler immediately?? Reply with quote

While making a cheat table for the game "Avatar-The Game", I made an auto assembler script to increase the value of XP by 9999. But, the value of XP increases by 9999 only when I do something in game to earn XP (for example, kill an enemy). I want to increase the XP by 9999 whenever the designated hotkey is pressed. Any ideas??? Confused

Below is the script which I used to increase XP -->

[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(exit)

newmem:
add [ebp+00004FD4],#9999

exit:
jmp returnhere

"Dunia.dll"+4DD2CE:
jmp newmem
nop
returnhere:


[DISABLE]
dealloc(newmem)
"Dunia.dll"+4DD2CE:
add [ebp+00004FD4],ebx
//Alt: db 01 9D D4 4F 00 00

_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Tue Jun 03, 2014 8:36 am    Post subject: Reply with quote

add adress manually with pointer, offset should be 0
then add hotkey to that value so when u press it, it should increase your value with the desired amount

Code:
[ENABLE]
alloc(newmem,2048)
alloo(_chv,8)
registersymbol(_chv)
label(returnhere)
label(exit)
label(originalcode)

newmem:

cmp [_chv],0
jne originalcode
push eax
lea eax,[ebp+00004FD4]
mov [_chv],eax
pop eax

originalcode:
add [ebp+00004FD4],ebx

exit:
jmp returnhere

"Dunia.dll"+4DD2CE:
jmp newmem
nop
returnhere:


[DISABLE]
dealloc(newmem)
dealloc(_chv)
"Dunia.dll"+4DD2CE:
add [ebp+00004FD4],ebx
unregistersymbol(_chv)
//Alt: db 01 9D D4 4F 00 00

_________________



Capture.PNG
 Description:
 Filesize:  3.76 KB
 Viewed:  6649 Time(s)

Capture.PNG


Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Tue Jun 03, 2014 10:29 am    Post subject: Reply with quote

createthread works, too.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Tue Jun 03, 2014 12:33 pm    Post subject: Reply with quote

Hey NanoByte, I did what you said, but it doesn't happen. Can you give me a short step-by-step tutorial?? And by the way, in the 3rd line, it will "alloc" and and not "alloo".


Capture.JPG
 Description:
 Filesize:  147.75 KB
 Viewed:  6622 Time(s)

Capture.JPG



_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Tue Jun 03, 2014 12:53 pm    Post subject: Reply with quote

you didnt do it right i can see your address is [] = nothing

yeah alloo ahhahah its a human thing to make errors Very Happy

make sure code is activated before you add the address
thats the reason that it didnt work probly,
Back to top
View user's profile Send private message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Wed Jun 04, 2014 3:50 am    Post subject: Reply with quote

Hey NanoByte, it WORKS!! Thanks a lot!! One last question, can I make a trainer using this cheat table??


Capture.JPG
 Description:
 Filesize:  180.04 KB
 Viewed:  6567 Time(s)

Capture.JPG



_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Wed Jun 04, 2014 9:09 am    Post subject: Reply with quote

Sorry man i dont know, i never made a trainer myself, i usually upload tables
Back to top
View user's profile Send private message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Wed Jun 04, 2014 12:49 pm    Post subject: Reply with quote

Well, thanks for helping.
Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy

_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Wed Jun 04, 2014 2:23 pm    Post subject: Reply with quote

No problem Mate Very Happy
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