Jinrake
Welcome to PvP Planet's website!

Please register and view some cool guides and help!

Also vote for us at: Www.Jinrake.at.ua
Jinrake
Welcome to PvP Planet's website!

Please register and view some cool guides and help!

Also vote for us at: Www.Jinrake.at.ua
Jinrake
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Jinrake

Jinrake's website and forum
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  Vote For PVPVote For PVP  

 

 [TUT]How to Add Models and how to Pre-Load Models[TUT]

Go down 
2 posters
AuthorMessage
Devil T

Devil T


Posts : 115
Points : 125
Reputation : 0
Join date : 2009-05-10
Location : Michigan, Ann Arbor

[TUT]How to Add Models and how to Pre-Load Models[TUT] Empty
PostSubject: [TUT]How to Add Models and how to Pre-Load Models[TUT]   [TUT]How to Add Models and how to Pre-Load Models[TUT] EmptyWed 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:

[TUT]How to Add Models and how to Pre-Load Models[TUT] Untitled

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
Back to top Go down
http://mith-scape.webs.com
Devil T

Devil T


Posts : 115
Points : 125
Reputation : 0
Join date : 2009-05-10
Location : Michigan, Ann Arbor

[TUT]How to Add Models and how to Pre-Load Models[TUT] Empty
PostSubject: Re: [TUT]How to Add Models and how to Pre-Load Models[TUT]   [TUT]How to Add Models and how to Pre-Load Models[TUT] EmptyThu 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.
Back to top Go down
http://mith-scape.webs.com
`isaac




Posts : 26
Points : 32
Reputation : 0
Join date : 2009-05-26
Location : Playing with your girlfriend while you're reading this

[TUT]How to Add Models and how to Pre-Load Models[TUT] Empty
PostSubject: Re: [TUT]How to Add Models and how to Pre-Load Models[TUT]   [TUT]How to Add Models and how to Pre-Load Models[TUT] EmptyThu 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
Back to top Go down
Sponsored content





[TUT]How to Add Models and how to Pre-Load Models[TUT] Empty
PostSubject: Re: [TUT]How to Add Models and how to Pre-Load Models[TUT]   [TUT]How to Add Models and how to Pre-Load Models[TUT] Empty

Back to top Go down
 
[TUT]How to Add Models and how to Pre-Load Models[TUT]
Back to top 
Page 1 of 1
 Similar topics
-
» My designed models throughout my Mopar Times. [tabbykiller is my Mopar Name]
» Create Noob - First 3 Models
» Client Loadng stuck on Models

Permissions in this forum:You cannot reply to topics in this forum
Jinrake :: Rs2 Server :: Rs2 Tutorials-
Jump to: