Devil T
Posts : 115 Points : 125 Reputation : 0 Join date : 2009-05-10 Location : Michigan, Ann Arbor
| Subject: [TUT]How to Add Models and how to Pre-Load Models[TUT] Wed May 20, 2009 5:33 am | |
| This selected tutorial is going to show you how you add models to your Client and how to Pre-Load them without damaging the Cache. Difficulty: 2/10 Tested Client: Bluurr's Client Modified by Shick Adding Models Part: First find a Model to add on [url=Rune-Server.org]Rune-Server.org[/url], I chose a Dragon PlateBody to add. Open up Class8.java in your Client, look for something like this and add it: - Quote :
- if(i == 13654) // change this if you need to "item number"
{ class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wield";//New option class8.anIntArray156 = new int[2]; class8.anIntArray160 = new int[2]; class8.anIntArray156[0] = 43072; class8.anIntArray160[0] = 925; class8.anIntArray156[1] = 4550; class8.anIntArray160[1] = 925; class8.anInt174 = 14104; //Model ID class8.anInt181 = 1330; //zoom increase will make it smaller class8.anInt190 = 310; //model rotate up+down increase to move doen away from you class8.anInt198 = 1800; //model rotate side ways increase to move right in circle class8.anInt169 = 0; // model offset increase to move to the right class8.anInt194 = 1; //model offset increase to move up class8.anInt165 = 14105;//male wearing class8.anInt200 = 14105;//female wearing class8.anInt164 = 14106;//Female arms/sleeves class8.anInt188 = 14106;//male arms/sleeves class8.aBoolean176 = false;//Stackable class8.aString170 = "Dragon platebody";//Name of the new item class8.aByteArray178 = "Provides excellent protection".getBytes();//examin info } Those are the Ints of the Armor. Now to display what the Dragon Plate will look like you need to make a New Folder called Models if you don't already have one, now download the Models, you need Winrar to extract, Models Here: http://www.mediafire.com/?5mmdhd2zjwh. Now that should be it, here's a picture of what it would look like in the game: Pre-Loading Models Part: Open up Client.java and make sure you have this Void, if not add it: - Quote :
- public void models()
{
for(int anIntX = 0; anIntX < 40000; anIntX++) { byte[] abyte0 = GetModel(anIntX); if(abyte0 != null && abyte0.length > 0){ aClass14Array970[1].method234(abyte0.length, abyte0, (byte)2, anIntX); method77("Model added successfully!", 0, "", aBoolean991);
} } } Now still in Client.Java search: - Quote :
- method13(80, (byte)4, "Unpacking media")
Now exactly underneath it add: - Quote :
- method13(80, (byte)4, "Pre-Loading models");
models(); Credits: Rune-Server: 40% for add Models part, which I kind of learned by myself. Me:60% Pre-Loading part was my method void..
Last edited by Devil T on Thu May 21, 2009 5:22 am; edited 1 time in total | |
|
Devil T
Posts : 115 Points : 125 Reputation : 0 Join date : 2009-05-10 Location : Michigan, Ann Arbor
| Subject: Re: [TUT]How to Add Models and how to Pre-Load Models[TUT] Thu May 21, 2009 5:17 am | |
| Guys, once you get the Dragon Plate working you need to go in item.java & item4.java and make it go to the right slot equipment place. I would suggest adding it in item.cfg to make it a existing item. | |
|
`isaac
Posts : 26 Points : 32 Reputation : 0 Join date : 2009-05-26 Location : Playing with your girlfriend while you're reading this
| Subject: Re: [TUT]How to Add Models and how to Pre-Load Models[TUT] Thu May 28, 2009 9:45 am | |
| gtfo with your non-refractored L2PROGRAMRENAMEDNOOB also that still damages the cache idiot, all it does is loads all of the models on startup, which laggs the client even more, l2program | |
|
Sponsored content
| Subject: Re: [TUT]How to Add Models and how to Pre-Load Models[TUT] | |
| |
|