Advertisement
asciicat

zzAlch 1.35

Jun 4th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 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.35, 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.  
  21. if(game.getCurrentTab() != Game.TAB_MAGIC)
  22. {
  23. log("750ms sleep");
  24. sleep(700,800);
  25. slept++;
  26. }
  27. else if(slept>=4)
  28. {
  29. game.openTab(Game.TAB_MAGIC);
  30. magic.castSpell(spell);
  31. sleep(166,188);
  32. mouse.click(true);
  33. }
  34. else
  35. {
  36. log("casting");
  37. magic.castSpell(spell);
  38. sleep(166,188);
  39. mouse.click(true);
  40. amt++;
  41. log("alch click #"+amt);
  42. }
  43.  
  44. return 0;
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement