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 make a 'x2 experience hack' [ASM QUESTION]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Sat Jul 06, 2013 4:59 pm    Post subject: How to make a 'x2 experience hack' [ASM QUESTION] Reply with quote

Hi

I just want to know how to make a hack that gives me x2 experience, or x5 gold. Here is han example:

- Every time I kill a mob, I get 2 EXP points
- Here is the code is ASM:

mov [esi+34],eax (where EAX = 2)

- If I kill another mob, EAX = 4

I want to make a hack to get something like this:

mov [esi+34],eax*2 (this line can't be compiled)

How should I code this? I tried with MUL instruction but I dont know how to use it Sad

THANKS! Very Happy

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sat Jul 06, 2013 5:20 pm    Post subject: Re: How to make a 'x2 experience hack' [ASM QUESTION] This post has 1 review(s) Reply with quote

AikonCWD wrote:
I just want to know how to make a hack that gives me x2 experience, or x5 gold. Here is han example:
FYI: what you describe will twice your TOTAL experience at each kill, it does not simply twice the xp you get per kill. Ie: if a mob gives 1 xp, you will have
1*2 xp
(2+1)*2=6 xp
(6+1)*2=14 xp
....


AikonCWD wrote:
I want to make a hack to get something like this:

mov [esi+34],eax*2 (this line can't be compiled)

How should I code this?
If that's what you want:
Code:
shl eax,1  //multiply eax by 2, one time
mov [esi+34],eax

You mentioned money x5 earlier, use that:
Code:
lea eax,[eax+eax*4]  //set eax to eax+eax*4
mov [esi+34],eax


But if instead you want to get x2 xp INCOME, use:
Code:
sub eax,dword [esi+34] //now eax=new xp-old xp=xp income
shl eax,1 //twice eax ie: twice income
add dword [esi+34], eax //add incomex2 to the old xp
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Sat Jul 06, 2013 6:31 pm    Post subject: Re: How to make a 'x2 experience hack' [ASM QUESTION] Reply with quote

Gniarf wrote:
AikonCWD wrote:
I just want to know how to make a hack that gives me x2 experience, or x5 gold. Here is han example:
FYI: what you describe will twice your TOTAL experience at each kill, it does not simply twice the xp you get per kill. Ie: if a mob gives 1 xp, you will have
1*2 xp
(2+1)*2=6 xp
(6+1)*2=14 xp
....


AikonCWD wrote:
I want to make a hack to get something like this:

mov [esi+34],eax*2 (this line can't be compiled)

How should I code this?
If that's what you want:
Code:
shl eax,1  //multiply eax by 2, one time
mov [esi+34],eax

You mentioned money x5 earlier, use that:
Code:
lea eax,[eax+eax*4]  //set eax to eax+eax*4
mov [esi+34],eax


But if instead you want to get x2 xp INCOME, use:
Code:
sub eax,dword [esi+34] //now eax=new xp-old xp=xp income
shl eax,1 //twice eax ie: twice income
add dword [esi+34], eax //add incomex2 to the old xp


Thats exactly what i want

Rep+ for you man. You are the boss Very Happy

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 221

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Jul 07, 2013 3:01 am    Post subject: Reply with quote

x7 - IMUL example:
Code:
sub eax,dword [esi+34]  //now eax has "xp income"
imul eax,eax,7               //multiply it by 7
add dword [esi+34], eax //add modified income to the old xp

http://www.jaist.ac.jp/iscenter-new/mpc/altix/altixdata/opt/intel/vtune/doc/users_guide/mergedProjects/analyzer_ec/mergedProjects/reference_olh/mergedProjects/instructions/instruct32_hh/vc136.htm



Could you give screenshot of what's above "mov [esi+34],eax", is there something like this "add EAX,xxx" ?

_________________
Back to top
View user's profile Send private message MSN Messenger
BadCake
How do I cheat?
Reputation: 0

Joined: 08 May 2023
Posts: 7

PostPosted: Thu Oct 24, 2024 12:37 am    Post subject: Re: How to make a 'x2 experience hack' [ASM QUESTION] Reply with quote

Gniarf wrote:

But if instead you want to get x2 xp INCOME, use:
Code:
sub eax,dword [esi+34] //now eax=new xp-old xp=xp income
shl eax,1 //twice eax ie: twice income
add dword [esi+34], eax //add incomex2 to the old xp


I wanna know that if the code is
movss [rbx+78],xmm2

instead of
mov [esi+34],eax

then, what do I do?



2024-10-24 14_35_19-Memory Viewer.png
 Description:
 Filesize:  29.97 KB
 Viewed:  2015 Time(s)

2024-10-24 14_35_19-Memory Viewer.png


Back to top
View user's profile Send private message
Diambro
Newbie cheater
Reputation: 0

Joined: 12 Sep 2023
Posts: 23
Location: Austria

PostPosted: Sat Oct 26, 2024 2:34 am    Post subject: Reply with quote

i think this should work, dont see the full code, also id use another xmm register thats empty:

Code:

...
registersymbol(multiplier)
...
yourcode:
mov [multiplier],(float)2.0         //Whatever you want your multiplier to be
subss xmm2,[rbx+78]            
mulss xmm2,[multiplier]            //multiplying the added value
addss xmm2,[rbx+78]

originalcode:
movss [rbx+78],xmm2
jmp return

multiplier:
dd 0
...
Back to top
View user's profile Send private message
BadCake
How do I cheat?
Reputation: 0

Joined: 08 May 2023
Posts: 7

PostPosted: Sat Oct 26, 2024 8:04 pm    Post subject: Reply with quote

Diambro wrote:

mov [multiplier],(float)2.0 //Whatever you want your multiplier to be


This one says can't be compiled. Also the game prevent me from changing the money that I have. float is the appeared money, 4 bytes is the "actual" money. But if I try changing the value, I still can't buy anything more than my actual money.

The code is from the float value. Unknown initial value-> increase/decease value will lead to those 2 value. I didn't try the changed value path.

I do this because the table script that I wanna use is broken and wanna try creating a mini of my own. And funnily enough, in the broken table script, there is no money value, only a multiplier of the money gain.

--unrelated--
I wanna try fixing the broken table script instead but I have no Idea of what Im doing. The picture is the original- now broken table.
If you still wanna help, ask for anything.



1-wildfrost.png
 Description:
 Filesize:  55.29 KB
 Viewed:  1817 Time(s)

1-wildfrost.png


Back to top
View user's profile Send private message
Diambro
Newbie cheater
Reputation: 0

Joined: 12 Sep 2023
Posts: 23
Location: Austria

PostPosted: Mon Oct 28, 2024 4:24 am    Post subject: Reply with quote

id love to help, but im a beginner myself and this back and forth in forum would take ages. You can write me a PM (if you're intrested in a newbies help) and we'll figure things out. Or you ask the pros.
Cheers
Back to top
View user's profile Send private message
BadCake
How do I cheat?
Reputation: 0

Joined: 08 May 2023
Posts: 7

PostPosted: Tue Oct 29, 2024 8:55 am    Post subject: Reply with quote

Diambro wrote:
id love to help, but im a beginner myself and this back and forth in forum would take ages. You can write me a PM (if you're intrested in a newbies help) and we'll figure things out. Or you ask the pros.
Cheers
I got it semi-working by being very3 lucky. Among 500 address/result, the first 10 to 20 is the right address and got the player data working. Enemy & combo gold factor hack is enough. Inventory/deck edit is preferable too but, I take what I can get. Thanks for you time anyway.
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