Rsps Community


Rsps Community


Rsps Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Rsps Community

Rsps Community
 
HomeHomeSearchLatest imagesRegisterLog in
Welcome To Ancientpk!

 

 How to get skillcape emotes. BUT YOU NEED YOUR OWN GFX

Go down 
AuthorMessage
l roidz l
Members
l roidz l


Posts : 26
Join date : 2010-10-25
Age : 29
Location : Nottingham

How to get skillcape emotes. BUT YOU NEED YOUR OWN GFX Empty
PostSubject: How to get skillcape emotes. BUT YOU NEED YOUR OWN GFX   How to get skillcape emotes. BUT YOU NEED YOUR OWN GFX EmptyTue Oct 26, 2010 8:29 pm

Okay first add these two methods to Player.java


public void SkillcapeGfx(int gfx) {
mask100var1 = gfx;
mask100var2 = 6553600;
mask100update = true;
updateRequired = true;
}

public void SkillcapeAnimation(int animId) {
animationRequest = animId;
animationWaitCycles = 0;
updateRequired = true;
}


While in player.java find "appearanceUpdateRequired = true;" and make it


public boolean appearanceUpdateRequired = true;




Now finally just replace your skillCapeEmotes() void with this, don't miss anything.



public void skillCapeEmotes() {
int capes[] = {15000,15001,15002,15003,15004,15005,15006,15008,15009,
15010,15011,15012,15013,15014,15015,15016,15017,15018,15019,15020};
int emotes[] = {4959,4981,4961,4973,4979,4939,4947,4977,4969,4965,4949,4937,
4967,4941,4943,4951,4955,4975,4957,4963};
int gfx[] = {611,614,621,617,606,629,607,625,626,623,620,619,624,610,609,616,
618,615,613,622};
for (int i = 0; i < capes.length; i++) {
if (playerEquipment[playerCape] == capes[i] || playerEquipment[playerCape] == capes[i] + 21) {
SkillcapeAnimation(emotes[i]);
SkillcapeGfx(gfx[i]);
updateRequired = true;
appearanceUpdateRequired = true;
}
}
if (playerEquipment[playerCape] == 15007
|| playerEquipment[playerCape] == 15028) { //Hitpoints cape
if (playerAppearance[0] == 0) {
SkillcapeGfx(612);
SkillcapeAnimation(4971);
sendMessage("You Do your skillcape emote");
updateRequired = true;
appearanceUpdateRequired = true;
} else
if (playerAppearance[0] == 1) {
SkillcapeGfx(628);
SkillcapeAnimation(4971);
sendMessage("You Do your skillcape emote");
updateRequired = true;
appearanceUpdateRequired = true;
}
}
if (playerEquipment[playerCape] == 15042) { //Quest cape
SkillcapeGfx(608);
SkillcapeAnimation(4945);
updateRequired = true;
appearanceUpdateRequired = true;
}





This is what I did on this guys PI base server to get his skillcape emotes working but you just need the GFX for this and your good to go. If it dosn't work tell me and I will update it.
Back to top Go down
 
How to get skillcape emotes. BUT YOU NEED YOUR OWN GFX
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Rsps Community :: Ancientpk Server General :: General Discussion-
Jump to: