Jump to content
  • 0
Epic Ranger

Adding 317 PI MODELS [HELP] [EXPLAINED]

Question

[quote]First, download the models, you can find them here.

After downloading that, make a folder in your client, and name it Raw(If you already have this, then just skip this part)

Extract the models, and put them into your Raw folder, now open up ItemDef.java, and search
[Code]
/* Hardcoded items start here */Right under that, add this int[/code]
[Code]
if(i == 11740) {
itemDef.actions = new String[5];
itemDef.actions[1] = "Wield";
itemDef.modelID = 44590;
itemDef.maleEquip1 = 43660;//anInt165
itemDef.femaleEquip1 = 43660;//anInt200
itemDef.modelZoom = 789;
itemDef.modelRotation1 = 240;
itemDef.modelRotation2 = 60;
itemDef.modelOffset1 = -1;
itemDef.modelOffset2 = -23;
itemDef.name = "Dragon claws";
itemDef.description = "A set of fighting claws.".getBytes();
}
[/code]
After adding that int, it should now look like this
[code]
/* Hardcoded items start here */
/**/
if(i == 11740) {
itemDef.actions = new String[5];
itemDef.actions[1] = "Wield";
itemDef.modelID = 44590;
itemDef.maleEquip1 = 43660;//anInt165
itemDef.femaleEquip1 = 43660;//anInt200
itemDef.modelZoom = 789;
itemDef.modelRotation1 = 240;
itemDef.modelRotation2 = 60;
itemDef.modelOffset1 = -1;
itemDef.modelOffset2 = -23;
itemDef.name = "Dragon claws";
itemDef.description = "A set of fighting claws.".getBytes();
}
return itemDef;
}
[/code]Save and Compile, and there you go. Now load up your client, and ingame type in add model, something should pop up asking you the model number, in there type 43660, then do it again, this time type 44590[/QUOTE]

When I log on to my server, and I spawn the item 15037 it gives me a invisible item in my inventory "Chaotic Rapier"... I wield it and on my Equipment Tab, the item is in the helmet area. Also notice that the item isnt visible on the character when equipped. I opened Equipment Stats, and the stats for the Chaotic Rapier are correct; so I must be doing part of it right.
[B]
*-I added the item into my item.cfg list (server-side) and it appears to be correct.
*-Added the two models 35084 and 35085 into Client>Cache>Data.
*-Added the ints into ItemDef.java.[/B]

... My ints for the chaotic rapier. (based off quoted guide guide above)
[code]
if(i == 15037) {
itemDef.actions = new String[5];
itemDef.actions[1] = "Wield";
itemDef.modelID = 35084;
itemDef.maleEquip1 = 35085;//anInt165
itemDef.femaleEquip1 = 35085;//anInt200
itemDef.modelZoom = 1425;
itemDef.modelRotation1 = 700;
itemDef.modelRotation2 = 1300;
itemDef.modelOffset1 = 9;
itemDef.modelOffset2 = 13;
itemDef.name = "Chaotic Rapier";
itemDef.aByte205 = -12;
itemDef.aByte154 = -12;
itemDef.anInt188 = -1;//female sleeve
itemDef.anInt164 = -1;//male sleeve
itemDef.description = "A razor-sharp rapier. (It doesnt look in good condition.)".getBytes();
}
return itemDef;
}
[/code]

... I will tell you my server/client layout if this helps you:
[code]
Client >
"Folder=Cache":"Folder=Sprites":"Folder=Sign":'Classfiles# = .class/.java'
Cache >
"Folder=Data":'Cachefiles# = .dat/.IDX0/.IDX1/.IDX2/.IDX3/.IDX4/.wav'
Data >
'Datafiles# = .dat'
[/code]
Code contains whats in my CLIENT-side. I think the models are in the Cache>Data folder.. which contains only .dats.
[B]
Any help?? I have Teamviewer, also if requested I'll post model links to check for courrupt (but I doubt this cause I downloaded two sets of the models from two different people.. Tried both, no work.)[/B]

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Write [B]add model 35084[/B] I think - no ::s

Share this post


Link to post
Share on other sites
  • 0
FUCK, I need the code and a guide on how to add the "add models" command on my client.. I have tried all of the commands 'add models' 'addmodels' 'add model 15037' '::addmodels' '::add model 15037' ect..

Could you help me? I rep you for the answer anyway. Thats probably the problem of all this.

Share this post


Link to post
Share on other sites
  • 0
After you go in the cache folder in your client, is there a Raw folder next to the Data folder as well? Edited by mojo

Share this post


Link to post
Share on other sites
  • 0
no....... the only things in my client-sided folder are shown above in a code with a label "Code contains whats in my CLIENT-side. I think the models are in the Cache>Data folder.. which contains only .dats."

[code]
Client >
"Folder=Cache":"Folder=Sprites":"Folder=Sign":'Classfiles# = .class/.java'
Cache >
"Folder=Data":'Cachefiles# = .dat/.IDX0/.IDX1/.IDX2/.IDX3/.IDX4/.wav'
Data >
'Datafiles# = .dat'
[/code]
But thats beyond the point, I know the problem.. My client dosnt have the codes to reload all models, I need to add it to fix.. Which creates another problem because I dont know that code and have no idea where to look for 317 [PI] tutorials.

Share this post


Link to post
Share on other sites

×