اولا
دور على case 154
في
clickingbuttons.java
و بدل الكود المجود عندك بهذا الكود
case 154:
if(System.currentTimeMillis() - c.logoutDelay < 8000) {
c.sendMessage("You cannot do skillcape emotes in combat!");
return;
}
if(System.currentTimeMillis() - c.lastEmote >= 7000) {
if(c.getPA().wearingCape(c.playerEquipment[c.playerCape])) {
c.stopMovement();
c.gfx0(c.getPA().skillcapeGfx(c.playerEquipment[c.playerCape]));
c.startAnimation(c.getPA().skillcapeEmote(c.playerEquipment[c.playerCape]));
} else if(c.playerEquipment[c.playerCape] == 19710) {
c.getPA().dungemote(c);
} else {
c.sendMessage("You must be wearing a Skillcape to do this emote.");
}
c.lastEmote = System.currentTimeMillis();
}
break;
و بعدين روح على
playerassistant.java
و دخل الكود ده فيه
public void dungemote(final Client c) {
EventManager.getSingleton().addEvent(new Event() {
int dungtime = 16;
public void execute(EventContainer dung) {
if (dungtime == 16) {
c.gfx0(2442);
c.startAnimation(13190);
}
if (dungtime == 15) {
c.npcId2 = 11228;
c.isNpc = true;
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.startAnimation(13192);
}
if (dungtime == 10) {
c.npcId2 = 11227;
c.isNpc = true;
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.startAnimation(13193);
}
if (dungtime == 6) {
c.gfx0(2442);
}
if (dungtime == 5) {
c.npcId2 = 11229;
c.updateRequired = true;
c.appearanceUpdateRequired = true;
c.startAnimation(13194);
}
if (dungtime == 0) {
c.isNpc = false;
c.updateRequired = true;
c.appearanceUpdateRequired = true;
}
if (c == null || dungtime <= 0) {
dung.stop();
return;
}
if (dungtime >= 0) {
dungtime--;
}
}
}, 600);
}
و انتهينا
المفروض ميجيش اي اerror