Advertisement
Sanwi

SpiderBot

Apr 6th, 2015
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. $${
  2.  
  3. volume(0);
  4.  
  5. // Set current player afk state
  6. push(@&afk_key,"%PLAYER%");
  7. push(@afk_value,true);
  8.  
  9. look(225,90);
  10. keydown(forward);
  11. wait(200ms);
  12. keyup(forward);
  13.  
  14. #attack_wait = 0;
  15. do;
  16. pick("golden_sword");
  17. if("golden_sword" == %ITEM%);
  18. look(225,90);
  19. key(attack);
  20. inc(#attack_wait,1);
  21. if(50 <= #attack_wait);
  22. #attack_wait = 0;
  23. wait(500ms);
  24. endif;
  25. else;
  26. look(300,75);
  27. wait(100ms);
  28. key(use);
  29. wait(200ms);
  30. endif;
  31.  
  32. //Eat
  33. if(%HUNGER% < 18);
  34. look(0,0);
  35. &foods[] = split(" ","cookie rotten_flesh spider_eye fish rabbit mutton pumpkin_pie apple beef porkchop chicken poisonous_potato melon potato baked_potato cooked_chicken cooked_mutton mushroom_stew bread cooked_rabbit cooked_fished carrot cooked_porkchop cooked_beef golden_carrot golden_apple rabbit_stew");
  36. foreach(&foods,&cfood);
  37. pick("%&cfood%");
  38. next;
  39. do(150);
  40. key(use);
  41. loop;
  42. endif;
  43. if((%HUNGER% < 2) || (%HEALTH% < 2));
  44. disconnect();
  45. endif;
  46. loop;
  47.  
  48. stop();
  49. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement