Re: Teleport Knife [HELPER] code...
Quote:
Originally Posted by
1st-Hokage
Instead of people trying to figure out what the ID's are you could just set up a lobby packet data for them and it will copy the ids for them and teleport knife!
- addiu sp, sp, -10
- sw a0, $0000(sp)
- sw a1, $0004(sp)
- sw a2, $0008(sp)
- sw ra, $000C(sp)
- lui a0, 08D0
- lw a0, $5858(a0)
- lui a1, $08D6
- lw a1, $1458(a1) <--- // Lobby data
- addu a2, a1, 0 <---- This will copy the lobby data ids into the in-game pointer
- sw a2, $0638(a0)
- lw a0, $0000(sp)
- lw a1, $0004(sp)
- lw a2, $0008(sp)
- lw ra, $000C(sp)
- jr ra
- addiu sp, sp, 10
- addiu sp, sp, -10 <Sets aside 10 bits
- sw a0, $0000(sp) <Saved a0 into the 0000 offset
- sw a1, $0004(sp) <Saved a1 into the 0004 offset
- sw a2, $0008(sp) <Saved a2 into the 0008 offset
- sw ra, $000C(sp) <Saved something and returns address (not sure)
- lui a0, 08D0 <Loading the first half of the in-game pointer
- lw a0, $5858(a0) <Loading the second half of the in-game pointer
- lui a1, $08D6 <Loading IDK what address that is.
- lw a1, $1458(a1) <--- // Lobby data
- addu a2, a1, 0 <---- This will copy the lobby data ids into the in-game pointer
- sw a2, $0638(a0) <Loading the offset its saving the ID's too
- lw a0, $0000(sp) <Reseting a0 to the way it was before
- lw a1, $0004(sp) <Reseting a1 to the way it was before
- lw a2, $0008(sp) <Reseting a2 to the way it was before
- lw ra, $000C(sp) <Not sure
- jr ra <Jump register return address
- addiu sp, sp, 10 <Add 10 bits back into the stack
So i think I'm getting the hang of it, but i don't understand the red. If you could help me out some that would be greatly appreciated.
Re: Teleport Knife [HELPER] code...
anytime there is a jal in a stack, the ra is changed.....so to avoid freezing, u must reload its original which u saved at the beginning......
lui a1, $08d6 is just the first half of the lobby data
Re: Teleport Knife [HELPER] code...
Quote:
Originally Posted by
--_Joe_--
anytime there is a jal in a stack, the ra is changed.....so to avoid freezing, u must reload its original which u saved at the beginning......
lui a1, $08d6 is just the first half of the lobby data
Thank you, that helps a lot.