ok this is only my third tutorial enjoy
description: add the gfx for skill cape emotes into your client
files edited: (serverside): client.java. (clientside): class23.java
tested server: allstarscape(should work on all that have the skillcape emotes)
ok i'll start with client side this is the easy part the models for the skill cape emotes go from 19069 to 19092
im only going to do one of the skill cape emotes for you so you will hopefully learn, first you need to open up class23(client side) and find this:
this should be right near the top then you will seeQuote:
aClass23Array403[j].anInt404 = j;
under the last {Quote:
aClass23Array403[j].anInt404 = j;
int originalDataID = -1;
Class23 gfx = aClass23Array403[j];
switch(j)
{
u need to add the case for the gfx so for example i'll use the prayer cape coz its my fav
now the case 652 is the gfx id you will need this later 9085 is the model the gfx is loading so now u've added that u can save it and the 282 represents the originaldata id different id's do different things im pretty sure that this just loads the model from top to bottom, now presuming that the model for the gfx is in your models folder log onto your server with your client and type, add model 9085 now thats the clientside part completeQuote:
case 652: // This is the GFX ID for prayer cape change if you want
originalDataID = 282;
gfx.anInt405 = 9085; // original model id was 19085
break;
serverside:
open up client.java and find this
if this isnt in your client.java then exit this tut nowQuote:
public void capeEmote
ok under that you will see all of your skillcape emotes now find this
this will be further down your emotes you will now seeQuote:
if (playerEquipment[playerCape] == 14085) {
where it has stillgfx(### change those ### to the case u chose to use for the cape that takes us back up to step 1Quote:
if (playerEquipment[playerCape] == 14085) { //prayer
stillgfx(###, absY, absX);
setAnimation(1500);
txt4 = "A prayer skill cape.";
playerLevel[5] = getLevelForXP(playerXP[5]);
playerLevel[5] += 1;
sendFrame126(""+playerLevel[5]+"", 4016);
updateRequired = true;
appearanceUpdateRequired = true;
string4UpdateRequired = true;
}
if (playerEquipment[playerCape] == 14086) { //prayer
stillgfx(###, absY, absX);
setAnimation(1500);
txt4 = "A prayer skill cape.";
playerLevel[5] = getLevelForXP(playerXP[5]);
playerLevel[5] += 1;
sendFrame126(""+playerLevel[5]+"", 4016);
updateRequired = true;
appearanceUpdateRequired = true;
string4UpdateRequired = true;
}
in this case the case was 652 so change the ### to 652 save and compile
now that u've done that hopefully you have learnt how to add the gfx for skill cape if you have any errors post here and i will try help or add me on msn [Only registered and activated users can see links. Click Here To Register...]
thanks this was not leached i wrote this my self if you think it is leached your on something and wat ever it is i want some lol :P joke but it isnt leached, enjoy.
[Only registered and activated users can see links. Click Here To Register...] <-- this is link for models download there already gziped and sorted for you, enjoy :)
REPLY OR I DELETE!
