pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Advertising: Credit Card Consolidation - Cheap Car Insurance - Loans - Loans
Java paste-bin - collaborative debugging tool View Help

Posted by illusion on Wed 9th Apr 15:02 (modification of post by view diff)
download | new post

  1. import com.speljohan.rsbot.script.Script;
  2.  
  3. /**
  4. * Created Using IntelliJ IDEA.
  5. * User: illusion
  6. * Date: Apr 9, 2008
  7. * Time: 4:44:15 PM
  8. */
  9. public class NewStats extends Script {
  10.     public static int index;
  11. public String getAuthor() {
  12.         return "illu";
  13.     }
  14.  
  15.     public double getVersion() {
  16.         return 0.1;
  17.     }
  18.  
  19.     public String getName() {
  20.         return "Getting New Stats";
  21.     }
  22.  
  23.     public boolean onStart(String[] args) {
  24.         index = Integer.parseInt(args[0].toLowerCase());
  25.         return true;
  26.     }
  27.     public int loop() {
  28.         log("The current level at index " + index + " is " +getCurrentSkillLevel(index));
  29.         log("The current Skill Exp at index " + index + " is " + getCurrentSkillExp(index));
  30.         log("The current Skill Max at index " + index + " is " + getSkillMax(index));
  31.         log("The current Skill Max Exp at index " + index + " is " + getSkillMaxExp(index));
  32.         return -1;
  33.     }
  34. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me
: