Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • My Scripts Source


    Nuclear Nezz

    Recommended Posts

    I have used your Druid's source as reference to add some improvements to my script :) thanks very much


    E: Haven't copied anything!

    Link to comment
    Share on other sites

    so we can do anything we want with it and don't give credit? i saw an enum i like

    I'd like a bit of credit, especially if you're gonna sell it.

    But an enum is just data collection so I wouldn't be too upset. :P

     

    I have used your Druid's source as reference to add some improvements to my script :) thanks very much

    E: Haven't copied anything!

    Woo :)

    Link to comment
    Share on other sites

    I'd like a bit of credit, especially if you're gonna sell it.

    But an enum is just data collection so I wouldn't be too upset. :P

    Yeah, i cba make one, don't worry, i never make premium scripts :P

    Link to comment
    Share on other sites

    Hi Nezz

    Was wondering if you could please explain what the RunTimer class is used for, to see if it can be valuable to any of the scripts I make. Below is the code you used. Thanks very much in advance!

    public class RunTimer { //need to ask on the forums about this
    
       private long start;
          
       public RunTimer() {
           start = System.currentTimeMillis();
       }
    
    
       public long getElapsed() {
           return System.currentTimeMillis() - start;
       }
    
    
       public boolean isRunning() {
           return getElapsed() > 0;
       }
       
       public long getPerHour(long amt){
        return (long)((amt*3600000D)/getElapsed());
       }
    
    
       public String format() {
        long milliSeconds = getElapsed();
           long secs = milliSeconds / 1000L;
           return String.format("%02d:%02d:%02d", secs / 3600L, (secs % 3600L) / 60L, secs % 60L);
       }
    }
    Link to comment
    Share on other sites

     

    Hi Nezz

    Was wondering if you could please explain what the RunTimer class is used for, to see if it can be valuable to any of the scripts I make. Below is the code you used. Thanks very much in advance!

    public class RunTimer { //need to ask on the forums about this
    
       private long start;
          
       public RunTimer() {
           start = System.currentTimeMillis();
       }
    
    
       public long getElapsed() {
           return System.currentTimeMillis() - start;
       }
    
    
       public boolean isRunning() {
           return getElapsed() > 0;
       }
       
       public long getPerHour(long amt){
        return (long)((amt*3600000D)/getElapsed());
       }
    
    
       public String format() {
        long milliSeconds = getElapsed();
           long secs = milliSeconds / 1000L;
           return String.format("%02d:%02d:%02d", secs / 3600L, (secs % 3600L) / 60L, secs % 60L);
       }
    }

    It's a timer/stopwatch kind of thing, you can use it to tell how long the script has been running for.

    Link to comment
    Share on other sites

    It's a timer/stopwatch kind of thing, you can use it to tell how long the script has been running for.

    ^

     

    The client also has a built in Timer class, so the RunTimer in my code is kind of useless. I just had it there rip

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.