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
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