Everything posted by Sigma
-
Anyone wanna team up with swizz?
I never said it wasn't bad.
-
Anyone wanna team up with swizz?
That would be funny if it were true. Anyways, osbot's client is shit and so is the API
-
Anyone wanna team up with swizz?
I would never betray my people.
-
Anyone wanna team up with swizz?
me, i will make your scripts really badass.
-
getElapsed Issue
- Painter thread error?
Internal client error, all the methods are obfuscated. The error means it's trying to access something in a data structure while modifying it.- isPoisoned
It was not a setting before.- isPoisoned
Poison is not a setting (config). The only way to check for this currently is to check the color of the hp orb which is not always reliable.- [March] Staff Feedback
Start up appreciation threads again- What's an Enum [Part-One]
This is only true if the fields inside the enum are not bit fields.- Class hierarchy
The lesson was trying to teach what class hierarchies are, and indirectly referenced the concept of inheritance, so yes you're correct here.- What's an Enum [Part-One]
Use the keyword this for get methods for consistency and redundancy, it makes it easier to see which variable you're actually accessing (I know most if not all IDE's will make sure they are the same color anyways).- please explain
Focus on what an individual can accomplish rather than on what they cannot.- Next mod?
- Help with an Error
RuneSupply is an inner class of Magic so you cannot anonymously instantiate it like that.- Painting in onStart
Why do you want to do this?- Not a joke but a serious question
Claiming income does not mean it's taxable. This is only true (not sure if $20,000 is the right number) if you are receiving payments and most gold sellers and buyers send money via a gift on paypal.- Cinnemon banned me for helping the community :(
Spell Cinnamon right and they might help you.- Overhaul of the Scripter Rank
This is completely true.- Array List question
I have a hunch this is what he's trying to do.- LegoScriptCreator - Open Source
Your script will throw StackOverflowException if logicInterface is ever null because it will recurs too deeply in your onLoop method, might want to fix that.- Colorize tiles inside area.
There is no getAllTiles method inside the Area class. You could write that yourself, though.- Paint Utility Methods
/** * Gets the length, in pixels, of the String passed in. * @param g The Graphics object to reference the font metrics of. * @param s The String to get the length of, in pixels. * * @return The length, in pixels, of the String passed in. */ public static int getPxLength(Graphics g, String s) { int x = 0; for (int c1 = 0; c1 < s.length(); c1++) { x += g.getFontMetrics().charWidth(s.charAt(c1)); } return x; } /** * Gets the color (from green-red) based on the percent value passed in. * Generally, you will use this to display the health of a Character. * @param percent The percent to get the Color of. * @return The color of the percent passed in. */ public static Color getPercentColor(int percent) { double dec = (double) percent / 100; double green = 255 * dec; double red = 255 - green; if (green <= 255 && green >= 0 && red <= 255 && red >= 0) { return new Color((int) red, (int) green, 0); } return Color.BLACK; } /** * Gets the per hour value for the int passed in based on the start time of when * the int was being recorded. * @param value The int to get the per hour value of. * @param startTime The time, in milliseconds, when the int began being recorded. * @return The per hour value of the int passed in. */ public static long getPerHour(final int value, final long startTime) { return (long) (value * 3600000D / (System.currentTimeMillis() - startTime)); } /** * Inserts commas (US LOCALE) into the passed in int. * @param i The int to insert commas into. * @return The String created by inserting commas into the passed in int. */ public static String commas(final int i) { return NumberFormat.getNumberInstance(Locale.US).format((long) i); }- Class hierarchy
- Beginners Guide To Separating Classes!
- Painter thread error?