Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. if (playerCommand.startsWith("afk") && c.sit == false) {
  2. if(c.inWild()) {
  3. c.sendMessage("You can not go AFK in the Wilderness.");
  4. return;
  5. }
  6. c.sit = true;
  7. c.startAnimation(4117);
  8. c.forcedText = "Going AFK!";
  9. c.forcedChatUpdateRequired = true;
  10. c.updateRequired = true;
  11. c.sendMessage("When you return type ::back, you cannot move while AFK is on.");
  12. }
  13.  
  14. if (playerCommand.startsWith("back") && c.sit == true) {
  15. c.sit = false;
  16. c.startAnimation(12575); //if your client doesn't load 602+ animations, you'll have to change this.
  17. c.forcedText = "I'm back!";
  18. c.forcedChatUpdateRequired = true;
  19. c.updateRequired = true;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement