Advertisement
asciicat

zzAlch 1.35

Jun 4th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 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.  
  6. @ScriptManifest(authors = "asciicat", name = "zzAlch", version = 1.35, description = "Put desired item \"behind\" alch. Start with Magic tab open. Small anti, no paint. Fast.")
  7.  
  8. public class zzAlch extends Script
  9. {
  10.     int ftpolice = 0;
  11.     int amt = 0;
  12.     int spell=Magic.SPELL_HIGH_LEVEL_ALCHEMY;
  13.  
  14.     @Override
  15.     public int loop()
  16.     {
  17.         if(game.getCurrentTab() != Game.TAB_MAGIC)
  18.         {
  19.             log("750ms sleep");
  20.             sleep(700,800);
  21.             keyboard.press(KeyEvent.VK_F4);
  22.             sleep(66,126);
  23.             keyboard.release(KeyEvent.VK_F4);
  24.             mouse.click(true);
  25.         }
  26.         else
  27.         {
  28.         log("casting");
  29.         magic.castSpell(spell);
  30.         sleep(166,188);
  31.         mouse.click(true);
  32.         amt++;
  33.         log("alch click #"+amt);
  34.         }
  35.  
  36.         return 0;
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement