• Log in or sign up for an account here: https://www.sythe.org/login

Adding New Items to your Client

Exist2inspire

Member
Joined
Jul 26, 2007
Sythe Gold
0
Messages
85
Age
33
Location
NSW, Australia
Adding New Items to your Client
Hello friends,

Welcome to My Tut on adding new RuneScape Items. :cool:

First of all, your going to need a few things:
1. winRAR - http://www.download.com/3000-2250-10007677.html
2. A Client. (preferably a non-renamed 317 Deob)
3. A Server - to test your client on.
4. Bentski's Model Viewer + Some RS Models - http://www.megaupload.com/?d=FYP0BV38
5. Gzip - http://www.megaupload.com/?d=CPRVITCL

Ok, now that you have all the things you will need, we are ready to get started.


Firstly, we have to make some commands in your client, so open up your Clients
client.JAVA, press cntrl + f and search for:
Code:
String s = aString887.toLowerCase();

Under it, Add this:
Code:
	if(s.startsWith("add model"))
{
 try
 {
   int ModelIndex = Integer.parseInt(s.substring(10));
    byte[] abyte0 = GetModel(ModelIndex);
     if(abyte0 != null && abyte0.length > 0){
       aClass14Array970[1].method234(abyte0.length, abyte0, (byte)2, ModelIndex);
       method77("Model: "+ModelIndex+" added successfully!", 0, "", aBoolean991);
}else{
       method77("Unable to find the Model: "+ModelIndex, 0, "", aBoolean991);
 }
}
 catch(Exception e)
  {
	  method77("Try this instead: add model <path>", 0, "", aBoolean991);}
}

Now search for this:
Code:
public final void method74(int i, int j, int k)


And above it, add this:
Code:
                    public byte[] GetModel(int Index)
{
 try
 {
  File Model = new File("./Models/"+Index+".gz");
   byte[] aByte = new byte[(int)Model.length()];
   FileInputStream Fis = new FileInputStream(Model);
    Fis.read(aByte);
    method77("aByte = ["+aByte+"]!", 0, "", aBoolean991);
    Fis.close();
   return aByte;
  }
 catch(Exception e)
  {return null;}
}



Now you just have to replace your Clients class42_sub1 with this one:
http://www.megaupload.com/?d=0EW1IXZB


Ok, your done with adding the commands, next, you have to make your desired model
compatible with your client. this part can be a bit tricky, so make sure you
read this thoroughly.


First, open up Bentski's Model Viewer, and open up all of RuneScape's Models by doing this:



Then..




Now you should see this on the right hand side:



Ok, good job, next, search through them until you find one you wish to add to your server. i will add a Trimmed Strength Skill Cape. The Model ID of it is 18954, i will also need a picture of it when it's on the ground.. i can't remember what the ID was for that..


Now, copy the two .DAT files and paste them here:
Code:
C:\Program Files\GnuWin32\bin


Great work, you have just made those files ready for Gzipping. To Gzip, you must do the following:
press Start > then Run > and type in cmd

if you have done this correctly, you will see a black command prompt screen. now, you must type in this:

Code:
cd C:\Program Files\GnuWin32\bin
and then press enter.

now, type in:
Code:
gzip IDofwhatyourGzipping.DAT
(example: gzip 1993.DAT)
and press enter

(if you are Gzipping more than 1 .DAT file, you will obviously repeat that step..)

finally, type:
Exit


and your finished, you have successfully made your model compatible with your Client, give yourself a pat on the back.. but, you can't stop there.. you must go back to C:\Program Files\GnuWin32\bin and copy the files you Gzipped.

Now you have to make a new folder in your client called "Models" (without the quotation marks (" ")) and paste your Gzipped files into there.


Ok, now for the confusing part..

Say you want your new Model to take over a party hat.. (in other words, when you wear a party hat, you will actually see a skill cape) you have to find the party hat's model ID. it turns out to be 187 (correct me if i am wrong please) so simply, what you do, is open up the model folder you made earlier and rename the .DAT file to 187, easy enough right? also, repeat this step with a different Model ID (a burnt shrimp for example which is 2590) and rename the dropped version of your Model with the new Model ID (2590)

i understand that the above paragraph is very confusing.. just try to understand it, ok? (PS: don't forget i added 2 files (for adding a trimmed Strength Cape) renamed and ready to go at the bottom for you)


Ok, this part is easy, open up your client and run your sever, please..

once logged in, type in add model <ModelIdHere> (example add model 1993)

you should see in the chat box something saying (model added successfully)

now, close your client and open Class8.JAVA

search for:
Code:
if(class8.anInt163 != -1)

and above it add the following (if your adding my Strength Cape):
Code:
//START OF STRENGTH CAPE (t)
if(i == 91){ //Item ID
  class8.aStringArray189 = new String[5];
  class8.anIntArray156 = new int[6];
  class8.anIntArray160 = new int [6];
    class8.anIntArray156[0] = 8256; //Colours
	class8.anIntArray160[0] = 926; //Colours
	class8.anIntArray156[1] = 54183; //Colours
	class8.anIntArray160[1] = 926; //Colours
  class8.anIntArray156[2] = 57280;
  class8.anIntArray160[2] = 926;
  class8.anIntArray156[3] = 960;
  class8.anIntArray160[3] = 926;
  class8.anIntArray156[4] = 22464;
  class8.anIntArray160[4] = 926;
  class8.anIntArray156[5] = 21568;
  class8.anIntArray160[5] = 926;
	class8.anInt174 = 7295; //Unweilded Look
  class8.anInt181 = 2140;
  class8.anInt190 = 500;
	class8.anInt198 = 0; //Model Rotation
    class8.anInt169 = 3; //Model Offset
    class8.anInt194 = 6; //Model Offset
	class8.anInt165 = 1005; //Weilded Look
	class8.anInt200 = 1005; //Weilded Look
  class8.aStringArray189[1] = "Wear"; //Right-Click Options
  class8.aString170 = "Strength Cape (t)"; //Item Names
  class8.aByteArray178 = "It's a Trimmed Strength Cape..".getBytes(); //Examination Information
}
//END OF STRENGTH CAPE (t)


ok, see this?:
Code:
if(i == 91){ //Item ID

thats the Item ID, so you will have to make a command in your Servers Client.JAVA to spawn that item

just save, compile, run, log in, type your command, weild your cape and enjoy it.



What you have learnt:
i thought i should mention this.. In this Tut, you would have learnt how to: View RuneScape Models, Gzip them, add them to your client, follow instructions and i also gave you a start to learning how to get rid of the pink trim (by giving you a working skill cape)


NOTES:
Please, do not say that i leached this.. i certainly did not.
If you believe this is your own personal secret, you are wrong, how can you possibly own this?
If you have any trouble with this, post away, i'm more than happy to help.
If you think this is property of James, you are wrong, i wrote this myself.


EXTRA:
For the Attack Cape Trimmed Files, Download this:
http://www.megaupload.com/?d=5WAHMW7C

Make sure you add them to your Clients Models folder, and then do the add model command (explained above)
if they don't work, tell me, i'm not 100% sure i uploaded the right ones..


CREDITS:
James from rune-server.org for his model adding commands and class42_sub1
JaGeX for there Models
Developers of Gzip -> without it, we couldn't do this.

Thanks for reading my Tut! ;)
 
Runescape Gamblingrunescape gambling
Back
Top