im not sure but you have to add this to your cache - data - raw , there u can add the .dat file to it , and i dont know if u have a method for that in ur client
|
Hey everyone,
I'm using the ImpunityX source and I am trying to add a model to the client. The model in question is the DragonSlayer Wing model released by Lumplum (https://www.rune-server.ee/runescape...ms-models.html)
I was able to add the model (successful repacking of the cache) to the client, but it always spawns in as a null. Here are the steps I've taken:
1) Renamed the .dat file to .gz and named it 22000.gz (the model ID to use)
2) Added in server-side information in items.txt
3) Added in client-side information in ItemDef.java
I added the following in items.txt:
and the following in ItemDef.java:Code:Item Id: 22000 Name: DragonSlayer Wings Examine: It's a pair of wings. Value: 0 Stackable: false Noted: false Double-handed: false Equipment type: CAPE Is Weapon: false finish
Any help is appreciated! Thank you very much.Code:case 22000: itemDef.modelID = 22000; itemDef.name = "DragonSlayer Wings"; itemDef.description = "The wings of a legendary dragon slayer."; itemDef.modelZoom = 1700; itemDef.rotationY = 500; itemDef.rotationX = 0; itemDef.modelOffset1 = -6; itemDef.modelOffsetY = 1; itemDef.actions = new String[5]; itemDef.actions = new String[] { null, "Wear", null, null, "Drop" }; break;
im not sure but you have to add this to your cache - data - raw , there u can add the .dat file to it , and i dont know if u have a method for that in ur client
Try using case # under 20k
1) you never had to rename it to 22000.gz - Neither had to make it from .dat to .gz (Pretty sure most ruses have the preLoadModels method in Client class
2) You should use a lower ID 19085 for example - Just use an item that is "null" or something
3) The maleEquip / femaleEquip isn't even defined in your code
Thanks for all the suggestions and help everybody.
I was able to add the model by re-installing the cache and just taking the preloadModels way of doing things.
These are the steps I took (in case others can't figure it out):
1) Renamed [model name].dat file to 19085.dat
2) Added the preloadModels() method AFTER all of the unpackConfig calls (this seemed to be the fix)
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |