Advertisement
asciicat

zzAlch 1.37

Jun 4th, 2011
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. import org.rsbot.script.Script;
  2. import org.rsbot.script.ScriptManifest;
  3. import org.rsbot.script.methods.Game;
  4. import org.rsbot.script.methods.Magic;
  5. import java.awt.event.KeyEvent;
  6.  
  7. @ScriptManifest(authors = "asciicat", name = "zzAlch", version = 1.37, description = "Put desired item \"behind\" alch. Start with Magic tab open. Small anti, no paint. Fast.")
  8.  
  9. public class zzAlch extends Script
  10. {
  11. int slept = 0;
  12. int key = KeyEvent.VK_F4;
  13. int ftpolice = 0;
  14. int amt = 0;
  15. int spell=Magic.SPELL_HIGH_LEVEL_ALCHEMY;
  16.  
  17. @Override
  18. public int loop()
  19. {
  20. if(game.getCurrentTab() != Game.TAB_MAGIC)
  21. {
  22. log("750ms sleep");
  23. sleep(700,800);
  24. slept++;
  25. log(slept);
  26. if(slept>=4)
  27. {
  28. game.openTab(Game.TAB_MAGIC);
  29. magic.castSpell(spell);
  30. sleep(166,188);
  31. mouse.click(true);
  32. slept = 0;
  33. }
  34. }
  35. else
  36. {
  37. log("casting");
  38. magic.castSpell(spell);
  39. sleep(166,188);
  40. mouse.click(true);
  41. amt++;
  42. slept = 0;
  43. log("alch click #"+amt);
  44. }
  45.  
  46. return 0;
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement