How do you combine scripts?

Add topics here with methods, analysis, code snippets, mods etc. for a certain game that normally won't make it in the Tables or Requests sections.
Post Reply
User avatar
EphenSteve
Expert Cheater
Expert Cheater
Posts: 105
Joined: Wed Mar 22, 2017 12:30 pm
Reputation: 73

How do you combine scripts?

Post by EphenSteve »

so everytime I make scripts i usually just hide the second part as a child even when activated but i feel like its a little messy and im just trying to see if theres a better way to do things.

for instance for the Resident evil 3 remake on steam. its for an FOV at all times and aiming doesnt zoom in. just a little different way to play the game. PS i name stuff terribly.

Code: Select all

[ENABLE]

aobscanmodule(nozoomwhenaiming,re3.exe,F3 0F 11 43 54 F3 0F 10 45 A0) // should be unique
alloc(newmem,$1000,nozoomwhenaiming)

label(code)
label(return)

newmem:

code:
  mov [rbx+54],(float)110
  jmp return

nozoomwhenaiming:
  jmp newmem
return:
registersymbol(nozoomwhenaiming)

[DISABLE]

nozoomwhenaiming:
  db F3 0F 11 43 54

unregistersymbol(nozoomwhenaiming)
dealloc(newmem)
And this Script

Code: Select all

[ENABLE]

aobscanmodule(camerazoom,re3.exe,F3 0F 11 46 54 E9) // should be unique
alloc(newmem,$1000,camerazoom)

label(code)
label(return)

newmem:

code:
  mov [rsi+54],(float)110
  jmp return

camerazoom:
  jmp newmem
return:
registersymbol(camerazoom)

[DISABLE]

camerazoom:
  db F3 0F 11 46 54

unregistersymbol(camerazoom)
dealloc(newmem)
Not asking for someone to do it for me as I want to learn. Everytime I think i figured it out i make things crash. shoot me a hint or a youtube link if you have one.

User avatar
BabyGroot
Table Makers
Table Makers
Posts: 1403
Joined: Sun Mar 29, 2020 1:39 pm
Reputation: 2347

Re: How do you combine scripts?

Post by BabyGroot »

Try this way

Code: Select all

[ENABLE]

aobscanmodule(nozoomwhenaiming,re3.exe,F3 0F 11 43 54 F3 0F 10 45 A0) // should be unique
alloc(newmema,$1000,nozoomwhenaiming)

label(codea)
label(returna)

aobscanmodule(camerazoom,re3.exe,F3 0F 11 46 54 E9) // should be unique
alloc(newmemb,$1000,camerazoom)

label(codeb)
label(returnb)

newmema:

codea:
  mov [rbx+54],(float)110
  jmp returna

nozoomwhenaiming:
  jmp newmema
returna:
registersymbol(nozoomwhenaiming)

newmemb:

codeb:
  mov [rsi+54],(float)110
  jmp returnb

camerazoom:
  jmp newmemb
returnb:
registersymbol(camerazoom)

[DISABLE]

nozoomwhenaiming:
  db F3 0F 11 43 54
camerazoom:
  db F3 0F 11 46 54

unregistersymbol(*)
dealloc(*)

User avatar
EphenSteve
Expert Cheater
Expert Cheater
Posts: 105
Joined: Wed Mar 22, 2017 12:30 pm
Reputation: 73

Re: How do you combine scripts?

Post by EphenSteve »

oh it works! ok so i see what you did. you basically just made sure to change the name of the registers so everything stays seperate! I didnt think it was that simple. thanks so much man!

User avatar
BabyGroot
Table Makers
Table Makers
Posts: 1403
Joined: Sun Mar 29, 2020 1:39 pm
Reputation: 2347

Re: How do you combine scripts?

Post by BabyGroot »

You're welcome. :)

User avatar
Gear2ndGandalf
Expert Cheater
Expert Cheater
Posts: 125
Joined: Mon Aug 23, 2021 11:27 pm
Reputation: 131

Re: How do you combine scripts?

Post by Gear2ndGandalf »

Now I’m going to have to redo all my tables lol

Post Reply

Who is online

Users browsing this forum: No registered users