Advertisement
Warfront1

Untitled

Oct 20th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. package scripts;
  2.  
  3. import org.tribot.api2007.GameTab;
  4. import org.tribot.api2007.Magic;
  5. import org.tribot.api2007.types.RSNPC;
  6. import org.tribot.script.Script;
  7. import org.tribot.script.ScriptManifest;
  8.  
  9. @ScriptManifest(authors = { "Warfront1" }, category = "Magic", name = "Monk Curser")
  10. public class Curser extends Script{
  11.  
  12. @Override
  13. public void run() {
  14. while(true){
  15. if(GameTab.getOpen()==GameTab.TABS.MAGIC){
  16. if(Magic.getSelectedSpellName().equals("Weaken")){
  17. RSNPC Monk[] = org.tribot.api2007.NPCs.find("Monk");
  18. if(Monk.length>0){
  19. Monk[0].click("");
  20. }
  21. }
  22. else{
  23. Magic.selectSpell("Weaken");
  24. }
  25. }
  26. else{
  27. GameTab.open(GameTab.TABS.MAGIC);
  28. }
  29.  
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement