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 


Need of assitance Multiply or divide

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Thu Jun 12, 2014 2:24 pm    Post subject: Need of assitance Multiply or divide Reply with quote

How would you multiply or divide a value?

multiply [eax] // multiply eax by 2 or 3 or 4 or 5 etc = mul [eax],2
Divide [eax]

Also somebody explain concept behind

define //what does this do

also if some one got a link to somewhere where i can check the different commands with description Very Happy
Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Thu Jun 12, 2014 2:59 pm    Post subject: Reply with quote

The easiest way is probably to fld fmul/fdiv and fstp. If your operand is a power of two, you can shift instead.

Define is like C pre-processor #define. It simply replaces all occurrences of one thing with another.

Press f1 at any time.

_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Thu Jun 12, 2014 3:09 pm    Post subject: Reply with quote

Thx Mate Very Happy

Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
registersymbol(_gold)
aobscanmodule(_gold,Game.dll,8B 01 2B 44 24 04 79 02)

newmem:

originalcode:
sub eax,[esp+04]
jns Game.GAME::Character::SubtractMoney+10

exit:
jmp returnhere

_gold+2: // this dosent work = dosent jump 2 bytes over why? is it because i didnt use a label instead?
jmp newmem
returnhere:


 
 
[DISABLE]
dealloc(newmem)
_gold:
sub eax,[esp+04]
jns Game.GAME::Character::SubtractMoney+10
unregistersymbol(_gold)
//Alt: db 8B 01 2B 44 24 04 79 02
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