PDA

View Full Version : [PI] Quick Chat + X10 Hit Multiplier [PI]



Exion
July 2nd, 2010, 20:31
Difficulty: 0, it's copy and paste.

I'll also post new snippets/tutorials in this thread of new things that I add.

Some people asked me how I added some some stuff like this on my server, so I thought I would post it.

Quick Chat:

In ClickingButtons.java, add these anywhere:



case 33206:
c.forcedText = "[Quick Chat] My Attack level is " + c.playerLevel[0] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33209:
c.forcedText = "[Quick Chat] My Strength level is " + c.playerLevel[2] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33212:
c.forcedText = "[Quick Chat] My Defence level is " + c.playerLevel[1] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33215:
c.forcedText = "[Quick Chat] My Range level is " + c.playerLevel[4] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33218:
c.forcedText = "[Quick Chat] My Prayer level is " + c.playerLevel[5] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33221:
c.forcedText = "[Quick Chat] My Magic level is " + c.playerLevel[6] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33224:
c.forcedText = "[Quick Chat] My Runecrafting level is " + c.playerLevel[20] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33207:
c.forcedText = "[Quick Chat] My Hitpoints level is " + c.playerLevel[3] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33210:
c.forcedText = "[Quick Chat] My Agility level is " + c.playerLevel[16] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33213:
c.forcedText = "[Quick Chat] My Herblore level is " + c.playerLevel[15] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33216:
c.forcedText = "[Quick Chat] My Thieving level is " + c.playerLevel[17] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33219:
c.forcedText = "[Quick Chat] My Crafting level is " + c.playerLevel[12] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33222:
c.forcedText = "[Quick Chat] My Fletching level is " + c.playerLevel[9] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33208:
c.forcedText = "[Quick Chat] My Mining level is " + c.playerLevel[14] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33211:
c.forcedText = "[Quick Chat] My Smithing level is " + c.playerLevel[13] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33214:
c.forcedText = "[Quick Chat] My Fishing level is " + c.playerLevel[10] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33217:
c.forcedText = "[Quick Chat] My Cooking level is " + c.playerLevel[7] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33220:
c.forcedText = "[Quick Chat] My Firemaking level is " + c.playerLevel[11] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33223:
c.forcedText = "[Quick Chat] My Woodcutting level is " + c.playerLevel[8] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;
case 33226:
c.forcedText = "[Quick Chat] My Farming level is " + c.playerLevel[19] + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;


Here's the Slayer one:


case 47130:
c.forcedText = "[Quick Chat] My Slayer level is " + c.playerLevel[18] + ", and I must slay another " + c.taskAmount + " " + Server.npcHandler.getNpcListName(c.slayerTask) + "";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
break;


Save and compile.

X10 hit multiplier:

(Client sided) In client.java, search for:

public static boolean newDamage = and change the

false;
to

true;

Save and compile. Your hits should now be x10.

iMPeX
July 2nd, 2010, 20:44
For the Quick Chat, what exactly do you have to click upon to make it work? A preadded QC Symbol?

Ryan
July 2nd, 2010, 20:51
The skill in the stat menu.

Exion
July 2nd, 2010, 20:51
For the Quick Chat, what exactly do you have to click upon to make it work? A preadded QC Symbol?

Nope. Just click the skill guides.

iMPeX
July 2nd, 2010, 21:24
Ah, mmk, I see, thanks. :P

Benjiboyyy
July 2nd, 2010, 21:28
You have to increase the hp of players and npc's by ten... otherwise whats the use of a x10 multiplier

Zerk3D
July 9th, 2010, 13:41
lol, so in my 517 theres no file named like clickingoptions or somthing.

Billy
July 10th, 2010, 08:16
Lols, what is the point in this :S just say it out loud it's a private server who cares if people dont believe you. :p

P r 0 tank
August 25th, 2010, 23:47
very nice :)

bluefire
August 26th, 2010, 00:13
clickingMost.java:392: orphaned case
case 25120:
^
clickingMost.java:4007: class, interface, or enum expected
}→
^
2 errors
Finished!
Press any key to continue . . .

2errors help?

Stxalth
May 23rd, 2012, 17:17
I added this, no errors. But when I click them, nothing happens.
Although, when I click skill menus it shows up on my source : "ajax - actionbutton: ####"