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 


Value Double...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Wed Nov 16, 2016 9:25 am    Post subject: Value Double... Reply with quote

Hey.

While searching for best cmp found another great thing like this:
Minion Attack Speed / Movement Speed by editing only one value.
Its located on [ebp+dbc], but the problem is that the value is Double.

Was searching in google solution for editing Double value, but yeah...
Tried many ways, and failed them all lol.. Nothing was overwriting value..

Would love to see any help on how to mix [ebp+dbc] into the script below.
(Script is just with cmp and Unlimited Minion Health)

[ebp+dbc] by default is Value type Double 0.0078125
Would be very awesome if overwrite with value 1

Code:
[ENABLE]

aobscanmodule(Minions,Overlord.exe,D9 85 2C 04 00 00 D9 9B)
alloc(newmem,$100)
label(RestoreHealth)
label(code)
label(return)

newmem:
  cmp [ebp+434],0
  je code

RestoreHealth:
  mov dword ptr [ebp+00000430],(float)999.0  // expand max health
  fld dword ptr [ebp+00000430]  //  max health
  fst dword ptr [ebp+0000042C]  //  exact health
  jmp return

code:
  fld dword ptr [ebp+0000042C]
  jmp return

Minions:
  jmp newmem
  nop
return:
registersymbol(Minions)
[DISABLE]

Minions:
  db D9 85 2C 04 00 00

unregistersymbol(Minions)
dealloc(newmem)
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Nov 16, 2016 5:57 pm    Post subject: Reply with quote

DBC doesn't sound like a correct offset for a double, but here ya go.
Code:
[ENABLE]

aobscanmodule(Minions,Overlord.exe,D9 85 2C 04 00 00 D9 9B)
alloc(newmem,$100)
label(RestoreHealth)
label(myvar)
label(code)
label(return)

newmem:
  cmp [ebp+434],0
  je code

  push [myvar]
  pop [ebp+0DBC]
  push [myvar+4]
  pop [ebp+0DC0]

RestoreHealth:
  mov dword ptr [ebp+00000430],(float)999.0  // expand max health
  fld dword ptr [ebp+00000430]  //  max health
  fst dword ptr [ebp+0000042C]  //  exact health
  jmp return

code:
  fld dword ptr [ebp+0000042C]
  jmp return

myvar:
  dq (double)1.0

Minions:
  jmp newmem
  nop
return:
registersymbol(Minions)
[DISABLE]

Minions:
  db D9 85 2C 04 00 00

unregistersymbol(Minions)
dealloc(newmem)
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Thu Nov 17, 2016 2:23 am    Post subject: Reply with quote

Whoops, my bad again.. Yeah, posted wrong offset..
But its all good cause replaced with correct one:
Works amazing, minions like on speed hack.
Code:
  push [myvar]
  pop [ebp+02B0]
  push [myvar+4]
  pop [ebp+02B4]


Before i tried:
1) Can see the script in this - Link
2) From Cheat Engine Forum this - Link
3) More from Cheat Engine Forum this - Link
4) Tried convert to other type from this - Link

At 3). Can see DarkByte mentioned similar method, but instead of label used alloc.
I was kinda on right way, but was doing wrong math with offset.
Thank you Zanzer, now i understand how to work with Double.

Edit:
[ebp+2B0] - Movement Speed
[ebp+2DC] - Move + Attack Speed.

If try:
Code:
  push [myvar]
  pop [ebp+02DC]
  push [myvar+4]
  pop [ebp+02E0]

myvar:
  dq (double)1.0

It makes them run in slow-mo, while script is Activated.
When Deactivate script they start run and hit with value 1 speed instead of default 0.0078125.

If change like this:
Code:
  push [myvar]
  pop [ebp+02DC]
  push [myvar+4]
  pop [ebp+02E0]

myvar:
  dq (double)0.01

While script is activated they instead of moving just teleport.
When Deactivate script it goes back to the default 0.0078125 value.
(Which is fun also cause, - instantly brings items and teleports to enemies.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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