Page 1 of 1

How do you combine scripts?

Posted: Fri Mar 24, 2023 2:40 am
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.

Re: How do you combine scripts?

Posted: Fri Mar 24, 2023 4:23 am
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(*)

Re: How do you combine scripts?

Posted: Fri Mar 24, 2023 4:43 am
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!

Re: How do you combine scripts?

Posted: Fri Mar 24, 2023 7:53 am
by BabyGroot
You're welcome. :)

Re: How do you combine scripts?

Posted: Thu May 18, 2023 1:23 am
by Gear2ndGandalf
Now I’m going to have to redo all my tables lol