Nuclear Nezz 2107 Author Posted February 9, 2015 eww. If you don't give constructive criticism, I'll have to assume you're like Jizzbeat.
Dogerina 330 Posted February 9, 2015 eww. hey at least hes open sourcing scripts, i dont see you open sourcing scripts
Calle 25 Posted February 17, 2015 You can do whatever you want with it. so we can do anything we want with it and don't give credit? i saw an enum i like
Fran 99 Posted February 17, 2015 I have used your Druid's source as reference to add some improvements to my script thanks very much E: Haven't copied anything!
Nuclear Nezz 2107 Author Posted February 17, 2015 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. 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
Calle 25 Posted February 18, 2015 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. Yeah, i cba make one, don't worry, i never make premium scripts
Fran 99 Posted February 19, 2015 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); } }
Dogerina 330 Posted February 19, 2015 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.
Nuclear Nezz 2107 Author Posted February 19, 2015 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.