PDA

View Full Version : [317] Afk Command [317]



123
July 24th, 2010, 09:33
Thanks for looking.


This is delta based but you can probably convert it to whatever you want...

Difficulty: 1
All you need to do is copy and paste...



Step 1
Copy and Paste this code into client.java in your customcommand or in your commands.java
Code:
if (command.startsWith("afk")) {
startAnimation(1353);
updateRequired = true;
appearanceUpdateRequired = true;

plrText = "I'm AFK!";
plrTextUpdateRequired = true;
sM("To return, type ::afkoff");
}
Change the plrText to what you want tbh....
Step 2:
Copy and paste this code directly underneath it.
Code:
if (command.startsWith("afkoff")) {
startAnimation(6);
updateRequired = true;
appearanceUpdateRequired = true;

plrText = "I'm Back!";
plrTextUpdateRequired = true;
}
Again. Change the plrText if you wish...

Save. Compile and Run

thirkle
July 25th, 2010, 19:42
Lolz Thanks yous :D

Relapse
July 25th, 2010, 19:44
Use the code blocks :) It will make it easier to read

Trey
July 25th, 2010, 19:45
Fixed the typo in your title.

123
July 26th, 2010, 02:51
Thanks trey