View previous topic :: View next topic |
Author |
Message |
IllumiZoldick How do I cheat?
Reputation: 0
Joined: 01 Mar 2015 Posts: 4
|
Posted: Sun Mar 01, 2015 4:22 pm Post subject: Multiply an address's value by a X |
|
|
How do i multiply an address value, say like [####] = 3.969, i want [####] = 9.969... I want to do it in assembly commands, not in lua script!!! Is that even possible ??
Should be something like :
movq [0A49C698],xmm0
//multiply [0A49C698]*3
movq xmm0,[0A49C698]
(Note: the value is a double) js, because add doesn't work with signed doubles somehow!!!
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Mar 01, 2015 4:43 pm Post subject: |
|
|
alloc(myvar,8 )
myvar:
dq (double)3.0
mulsd xmm0,[myvar]
|
|
Back to top |
|
 |
IllumiZoldick How do I cheat?
Reputation: 0
Joined: 01 Mar 2015 Posts: 4
|
Posted: Sun Mar 01, 2015 5:31 pm Post subject: |
|
|
Zanzer wrote: | alloc(myvar,8 )
myvar:
dq (double)3.0
mulsd xmm0,[myvar] |
Thanks for the reply, but i think the is crashing the flash game, then i tried this code alone (just to see what crashes the game)
Code: | alloc(myvar,8 )
myvar:
dq (double)3.0 |
and it crashed!!
|
|
Back to top |
|
 |
deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Sun Mar 01, 2015 7:42 pm Post subject: |
|
|
I just do:
Code: | push eax
push ecx
mov eax,[your thing]
mov ecx,03 // the mulitplier
mul ecx // result is put into eax
mov [your thing],eax
pop ecx
pop eax
|
Can't remember if it works with floats.
|
|
Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Mon Mar 02, 2015 10:54 am Post subject: Re: Multiply an address's value by a X |
|
|
@IllumiZoldick, better post your script, whole. (with ENABLE ans DISABLE parts)
@deama1234, nope, mul and imul works only on integer values.
_________________
|
|
Back to top |
|
 |
|