Description: This is a TuT on how to add commands to look through all the gfx's and animation's. and put them together as one.
This is my first tutorial, and i have learn from just looking in java files =)
Difficulty: 1/10
Assumed Knowledge: Copy and Paste (like i did to find this out)
Tested Server: palidino's server
Files/Classes Modified: src/paladino76/rs2/io/packets/Command.java
Step 1: Go into Command.java and open it
Step 2: find
Code:
if (p.rights >= 2) {
Step 3: Paste this between a ELSE and a IF
Code:
if (cmd[0].equals("anim")) {
int anim = Integer.parseInt(cmd[1]);
p.requestAnim(anim, 0);
} else if (cmd[0].equals("angx")) {
int anim = Integer.parseInt(cmd[1]);
int gfx = Integer.parseInt(cmd[2]);
p.requestAnim(anim, 0);
p.requestGFX(gfx, 0);
} else if (cmd[0].equals("gfx")) {
int gfx = Integer.parseInt(cmd[1]);
p.requestGFX(gfx, 0);
} else
like this:
Code:
} else <paste here> if (..........
Then this code should fit right in.
step 4: now save and compile
How to use: ok Now that u got it work, the commands are
::anim <id>(put any number here and then the animation should start)
::gfx <id>(put any number here aswell and the gfx should start)
::angx <animid> <gfxid> (if you found a anim and a gfx that could fit together, you can put both ids here, and then they should run together)
that was all folks... this might not be a good tutorial but i tryed my best to explain this for new people cause im one of em...
Credits: most of it to palidino76, cause it was his server i looked through to learn this =) tyvm