SilabGarza - RS Private Server  
Home Forum Play Register Store Market Highscores Mark Forums Read
Go Back   SilabGarza - RS Private Server > SilGar Media > Computers > Programming
Reload this Page [TUT]Adding Models To a 317 Client[TUT]


[TUT]Adding Models To a 317 Client[TUT]
Old
  (#1 (permalink))
Mumi is Offline
Always here to help

image
 
Mumi's Avatar
 
Posts: 26
Cookies Given: 0
Cookies Received: 0
Time Online: 1 d N/A
Clan: Clanless
   
Default [TUT]Adding Models To a 317 Client[TUT] - 11-01-2010, 04:30 PM

Please note, this will not work on Galkons Renamed Client, as it uses a different style of code.


Adding Models To Your Client


There are a few simple steps you need to do to add your models to a client.

All the downloads I will post further down.


1.)
Download, 7zip.

2.)
Download DatMaker.


3.)
Open up DatMaker and open the folder you saved your 'MQO' model in.


5.)
Scroll down to your model.


6.)
Select your model and click the box ' Priorities ', This should make a number appear by your model.

NOTE:
If no number appears by your model, don't worry. ( Just skip step 8 )


8.)
Enter the number that appears above your model into the box with the number '0' in. ( Bottom left corner. )

NOTE:
If your model is a cape, legs or torso model, miss out step 9.


9.)
Select the drop down menu ' No Anim ' and select what position your model is going to be in on your character.


10.)
Click ' Make .dat '


11.)
Open ' 7zip ' and select your model.


12.)
Click ' Add ' and change the archive format to ' GZip '


13.)
Your file will now be called ' [MODELNAME].dat.gz '


14.)
Delete the '.dat' part from the name and click ' Ok '


15.)
Copy the new archive into your clients ' Model ' folder.


16.)
Rename the archive to a number that is not already taken. [ Eg. 14421 ]


17.)
Go into Class8.java

For Weapons.)
Code:
 if(i == [ITEM ID]) {
      class8.aStringArray189 = new String[5];
      class8.aStringArray189[1] = "Wear";
      class8.anIntArray156 = new int[2];
      class8.anIntArray160 = new int[2];
      class8.anIntArray156[0] = 933;
      class8.anIntArray160[0] = 6073;
      class8.anIntArray156[1] = 935;
      class8.anIntArray160[1] = 5959;
      class8.anInt174 = [INVENTORY MODEL];
      class8.anInt181 = 2000;
      class8.anInt190 = 350;
      class8.anInt198 = 1020;
      class8.anInt204 = 324;
      class8.anInt169 = -2;
      class8.anInt194 = 0;
      class8.anInt165 = [MALE WIELD MODEL];
      class8.anInt200 = [FEMALE WIELD MODEL];
      class8.anInt175 = -1;
      class8.anInt197 = -1;
      class8.aString170 = "[WEAPON NAME]";
      class8.aByteArray178 = "[WEAPON DESCRIPTION]".getBytes();
    }

For Everything Else.)
Code:
	 if(i == [ITEM ID]) {
      class8.aStringArray189 = new String[5];
      class8.aStringArray189[1] = "Wear";
      class8.anIntArray156 = new int[1];
      class8.anIntArray160 = new int[1];
      class8.anIntArray156[0] = 0;
      class8.anIntArray160[0] = 0;
      class8.anIntArray156[1] = 935;
      class8.anIntArray160[1] = 5959;
      class8.anInt174 = [INVENTORY MODEL];
      class8.anInt181 = 2000;
      class8.anInt190 = 350;
      class8.anInt198 = 1020;
      class8.anInt204 = 324;
      class8.anInt169 = -2;
      class8.anInt194 = 0;
      class8.anInt165 = [MALE WIELD MODEL];
      class8.anInt200 = [FEMALE WIELD MODEL];
      class8.anInt175 = -1;
      class8.anInt197 = -1;
      class8.aString170 = "[ITEM NAME]";
      class8.aByteArray178 = "[ITEM DESCRIPTION]".getBytes();
    }

18.)
Save and compile.


19.)
Run the client.


20.)
Log into to your server and type ' add model [MODEL ID] '


NOTE:
If that doesn't work try ' add models '


21.)
You should see a message like ' Model [MODEL ID] Added successfully. '


22.)
Exit the client, and compile.


23.)
Run the client, spawn the item, and it should all work.





I hope this helped.

Downloads:

7Zip:
http://uppit.com/v/98M5CR4K

DatMaker:
http://uppit.com/v/OBIQJ0OC


This tutorial was written from scratch. I will add pictures when I can.

Credits:

The Rune-server community for helping me when I started out.
Me.
Google.

Thanks.

~Mumi~




Gotta love the people of SilabGarza

I make Runescape/SilabGarza Buddys, I'm not going to start yet another thread about it, so just send me a message, with what you want, using the same kind of request form as the people who do the Buddy Shop's do, and I'll get it done.

Here's one I made for myself:



And here are some that I have done for others:

Spoiler
  
Old
  (#2 (permalink))
Stefenatefun is Offline
<span style="color: cornflowerblue">Dead Memory</span>
image
 
Stefenatefun's Avatar
 
Posts: 363
Cookies Given: 0
Cookies Received: 0
Time Online: 3 d 7 h 38 m
Clan: None
   
Default 11-26-2010, 08:35 PM

Is this meant for a Mac? Because 7zip is for Macs only.
  
Old
  (#3 (permalink))
Phil... is Offline
<span style="color: #5b535b">SilabGarza Ex-staff member</span>
image
 
Phil...'s Avatar
 
Posts: 1
Cookies Given: 0
Cookies Received: 1
Time Online: 12 d 20 h N/A
   
Default 11-27-2010, 12:01 PM

Quote:
Originally Posted by Stefenatefun View Post
Is this meant for a Mac? Because 7zip is for Macs only.
No? I have 7zip and I'm on Windows 7.

OT;; Pretty nice guide! I give it a 9/10, add some pictures and I'll give you a 10/10!


No.
  
Old
  (#4 (permalink))
Humor is Offline
<span style="color: #9999FF">SilabGarza's Best Mercher</span>
image
 
Humor's Avatar
 
Posts: 5,412
Cookies Given: 49
Cookies Received: 15
Time Online: 41 d 19 h 23 m
Clan: Raw Material
   
Default 11-28-2010, 08:18 AM

Decent guide,
this is one of the things people tend to do when they newly start a server or get hyped up.
Greaat Jobb 9/10

Btw on the server I was coding,
the command was: ' @add models@


  
Old
  (#5 (permalink))
Asert One is Offline
Senior Member
image
 
Asert One's Avatar
 
Posts: 498
Cookies Given: 0
Cookies Received: 0
Time Online: 5 d 23 h 6 m
   
Default 11-30-2010, 03:21 AM

Oh lord...

Last edited by Asert One; 11-30-2010 at 03:25 AM.
  
Old
  (#6 (permalink))
ILLZONE
Guest
 
ILLZONE's Avatar
 
Posts: n/a
Time Online: N/A
   
Default 01-23-2011, 09:23 PM

Almost posted that u ripped it cuz i found it on another forum, then I saw name was Mumi xD

Good guide
  
adsense code2.3
Closed Thread

Bookmarks

[TUT]Adding Models To a 317 Client[TUT]

Programming




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
adsense2.6
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:41 PM.





Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.