PDA

View Full Version : [PI] Making Skillcape buttons Levels QC [PI]



Erased Rex
July 19th, 2010, 20:52
Ok i maked this becouse alot of ppl want it i guess..

Purpose: Making Level QC
Difficulty: 1/10
Knowledge To read and C&P
Classes Modified: ClickingButtons.Java

In clickingbuttons class add: ( If you already have skill buttons look wich one you like more and replace them with these )


/* Skill buttons */
case 33207:
c.forcedText = "[QC] My Hitpoints level is " + c.getPA().getLevelForXP(c.playerXP[3]) + ".";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33218:
c.forcedText = "[QC] My Prayer level is " + c.getPA().getLevelForXP(c.playerXP[5]) + ".";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33206:
c.forcedText = "[QC] My Attack level is " + c.getPA().getLevelForXP(c.playerXP[0]) + ".";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33212:
c.forcedText = "[QC] My Defence level is " + c.getPA().getLevelForXP(c.playerXP[1]) + ".";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33209:
c.forcedText = "[QC] My Strength level is " + c.getPA().getLevelForXP(c.playerXP[2]) + ".";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33215:
c.forcedText = "[QC] My Ranged level is " + c.getPA().getLevelForXP(c.playerXP[4]) + ".";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33221:
c.forcedText = "[QC] My Magic level is " + c.getPA().getLevelForXP(c.playerXP[6]) + ".";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 47130:
c.forcedText = "I must slay another " + c.taskAmount + " " + Server.npcHandler.getNpcListName(c.slayerTask) + ".";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;

case 24017:
c.getPA().resetAutocast();
//c.sendFrame246(329, 200, c.playerEquipment[c.playerWeapon]);
c.getItems().sendWeapon(c.playerEquipment[c.playerWeapon], c.getItems().getItemName(c.playerEquipment[c.playerWeapon]));
//c.setSidebarInterface(0, 328);
//c.setSidebarInterface(6, c.playerMagicBook == 0 ? 1151 : c.playerMagicBook == 1 ? 12855 : 1151);
break;
}
if (c.isAutoButton(actionButtonId))
c.assignAutocast(actionButtonId);
/* End of Skill buttons */

The slayer button tells you the amound of your task is left

Please leave a comment

Nosz
July 21st, 2010, 01:45
thank you ive been trying to learn PI and ive learned alot the past few days and this helped =)

also i finished them xD

Erased Rex
July 21st, 2010, 07:37
okay good to see another Pi user =]

Nosz
July 21st, 2010, 21:56
okay good to see another Pi user =]
yea there arnt many right now im working on a custom quest on my PI

Erased Rex
July 23rd, 2010, 11:21
yea there arnt many right now im working on a custom quest on my PI

Cool i'm currently making a Cool Pi Ranks system :)

Cris
September 2nd, 2010, 14:58
Half of the ; and brackets are missing if your not replacing an old clickbutton command..