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 


Combine two different scripts into one?

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

Joined: 29 Nov 2012
Posts: 212

PostPosted: Mon Sep 21, 2015 8:45 pm    Post subject: Combine two different scripts into one? Reply with quote

So let's say that i have two completely different scripts. One for no recoil and one for no spread. How can i combine these two into one?

Thanks!

Script 1:

Code:
[ENABLE]

aobscanmodule(Accuracy,mgsvtpp.exe,F3 0F 11 4E 3C 0F B7 46 20 66 0F 6E C0 0F 5B C0 * * * * C0 48 FF C9 75) // should be unique
alloc(newmem,$100,"mgsvtpp.exe"+3D4B945)

label(code)
label(return)

newmem:

code:
mov [rsi+3C],(float)0
  jmp return

Accuracy:
  jmp code
return:
registersymbol(Accuracy)

[DISABLE]

Accuracy:
  db F3 0F 11 4E 3C

unregistersymbol(Accuracy)
dealloc(newmem)


Script2:

Code:
[ENABLE]

aobscanmodule(accuracywalk,mgsvtpp.exe,F3 0F 58 F3 F3 41 0F 11 98 9C 00 00 00) // should be unique
alloc(newmem,$100,"mgsvtpp.exe"+3D4E2AF)

label(code)
label(return)

newmem:

code:
  mov [r8+0000009C],0
  jmp return

accuracywalk:
  jmp code
  nop
  nop
  nop
  nop
  nop
  nop
  nop
  nop
return:
registersymbol(accuracywalk)

[DISABLE]

accuracywalk:
  db F3 0F 58 F3 F3 41 0F 11 98 9C 00 00 00

unregistersymbol(accuracywalk)
dealloc(newmem)
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Tue Sep 22, 2015 6:25 am    Post subject: Reply with quote

Merge them both, the enable part of script 1 goes with enable part of script 2 and the same for disable. Rename labels so they are different for each script. Like this

[ENABLE]

aobscanmodule(Accuracy,mgsvtpp.exe,F3 0F 11 4E 3C 0F B7 46 20 66 0F 6E C0 0F 5B C0 * * * * C0 48 FF C9 75) // should be unique
alloc(newmema,$100,"mgsvtpp.exe"+3D4B945)

label(codea)
label(returna)

aobscanmodule(accuracywalk,mgsvtpp.exe,F3 0F 58 F3 F3 41 0F 11 98 9C 00 00 00) // should be unique
alloc(newmemb,$100,"mgsvtpp.exe"+3D4E2AF)

label(codeb)
label(returnb)


newmema:

codea:
mov [rsi+3C],(float)0
jmp returna

Accuracy:
jmp codea
returna:
registersymbol(Accuracy)






newmemb:

codeb:
mov [r8+0000009C],0
jmp returnb

accuracywalk:
jmp codeb
nop
nop
nop
nop
nop
nop
nop
nop
returnb:
registersymbol(accuracywalk)

[DISABLE]

accuracywalk:
db F3 0F 58 F3 F3 41 0F 11 98 9C 00 00 00

Accuracy:
db F3 0F 11 4E 3C

unregistersymbol(Accuracy)
dealloc(newmema)

unregistersymbol(accuracywalk)
dealloc(newmemb)

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
XaneXXXX
Expert Cheater
Reputation: 0

Joined: 29 Nov 2012
Posts: 212

PostPosted: Wed Sep 23, 2015 2:32 am    Post subject: Reply with quote

THank you very much! Got it Very Happy
Back to top
View user's profile Send private message
BadCake
How do I cheat?
Reputation: 0

Joined: 08 May 2023
Posts: 1

PostPosted: Mon May 08, 2023 4:20 am    Post subject: Thanks. Reply with quote

Thanks, it works for my table too.
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