Jump to content

Cyro

Members
  • Posts

    387
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Cyro

  1. My school did too But you can still run a batch file
  2. i dont do JavaScript, but from what i know i would guess that #log() is a void or another type of method just like println() in Java and that should be ... console.log(myCountry.length); console.log(myCountry.substring(0,3)); ...
  3. End of the year Exams starting next week

  4. Nice good luck with it I was working on a similar one (only entities part was finished) so it was not completed didn't have time for it A script generator would be interesting to see .
  5. well it was just a tip idc really and that wasnt the cause at one of the forums i posted a similar code contains enum and some things were off like conventions of the enum instances and people were annoying due to that
  6. how so? Looks good. You could try adding in an id value as first argument so the enum can be easily used in combination with a comboBox. why isn't the name better? the users wont know what the id mean or did i misunderstood you? Yes, you misunderstood him. Theese ID's he's talking about, is the ID's from the ComboBoxes from the Swing class (for generating GUI's). I can't explain this much further, but I hope I helped. You can still have the name. enum Spells { HOMETELEPORT("Lunar Home Teleport", 0, 0, 16), BAKEPIE("Bake Pie", 1, 65, 15), CUREPLANT("Cure Plant", 2, 66, 31); private final String name; private final int comboBoxPos; private final int level; private final int childid; Spells(String name, int comboBoxPos, int level, int childid) { this.name = name; this.combo = comboBoxPos; this.level = level; this.childid = childid; } public String getName() { return name; } public int getLevel() { return level; } public int getChild() { return childid; } public int getParent() { return 430; } } Something like that if I remember correct . PS. Enums are written in case-letters . (I don't know the right word here..) idk they way i do it is add the enum instances as items of the combobox JComboBox<Spells> combo = new JComboBox<Spells>(Spells.values()); and also there is Spells#BAKEPIE#ordinal(); which returns 1 (the position of the constant in the enum)
  7. good work looks nice tho enum instances should be uppercase and separated by "_" underscore as they are static final anyway you should override toString() to return the name rather than the instance name for those who will use this with ComboBox how so? Looks good. You could try adding in an id value as first argument so the enum can be easily used in combination with a comboBox. why isn't the name better? the users wont know what the id mean or did i misunderstood you?
  8. There is no possible way you can make a bot Wrong. Do you know how hard it is to make a bot? The coding required to make OSBot is insane. If he has no prior knowledge of coding, it will take him years to make a bot. Timer from No advertising was 15 when he was working on the No advertising client. It will not take anyone years to make a bot. Trust me.He started when he was 13 I thinkand its not that hard to make a bot might be long tho
  9. Cyro

    Open Source Slayer

    It's the easiest way to do something like this. If you are here to criticize then don't help. Can't you do the same thing with an enum which holds all the monsters data
  10. Cyro

    Conditional Sleeps

    I think he's extending the conditionSleep from the api
  11. I'm extremely new to Java, a quick little guide/run through would be nice but I'll defiantly check that out and see if it's a simple process to do without assistance. Are there any other similar/alternative programs to JD-Gui? Can eclipse do this somehow? Or how would I look at the source of class files, just open them in Eclipse somehow? Thank you. JD gui is really easy to use just open it then load the jar file by either dragging jar to it or the usual open option
  12. Cyro

    BETA v1.7.35

    Thanks will do
  13. Looks good but make use of naming conventions. It helps make understanding it easier for the person reading it. For example your method name is using correct naming conventions. Use mixed casing for parameter values with a prefix such as a or an. variables use mix casing as well and constants should utilize capitalizing each word with a underscore. for example: public int getBankItemByName(aItemName){ int itemID = 0; for (Item singleItem : client.getBank().getItems()) { if (single_item.getName().equals(aItemName)) { itemID = singleItem.getId(); return itemID; } } return null; } an int cant return null change that to -1 and use #equalsIgnoreCase(); instead of #equals();
  14. interesting will be waiting for it So will the scripts be able to use JavaFX based GUI as well as Swing?
  15. Cyro

    Get Time

    Nice there are number of ways to do it My way is public String getTime(){ SimpleDateFormat sdf = new SimpleDateFormat( "hh:mm:ss a"); //a is the pm/am marker Calender calender = Calender.getInstance(); return sdf.format(calendar.getTimer()); }
  16. Mind sharing that canReach? it's in the MethodProvider here, mostly everything is in there
  17. Cyro

    Question

    After you have downloaded it open free script tab then click the refresh button Well, i can't download it that's the problem after u check it out with the cart u don't download anything so i don't see how it goes into my client folder in scripts. even if i refresh it's not there since it's not even in the scripts folder the scripts in the SDN will never be in your script folder when you add them, instead they will be added to your online collection. The client then will check your collection of scripts and display them on the script selector. The SDN is designed so scriptwriters' scripts can be closed source so others don't copy it especially the paid ones otherwise who will buy them if they can get it downloaded
  18. Cyro

    Question

    After you have downloaded it open free script tab then click the refresh button
  19. you are trying to see If the character is interacting with another and dont care which one it is #getFacing will return the character that the npc is interacting with if its not interacting with anything then it will return null so Use #getFacing()==null instead of #isFacing(character)
  20. nice only that i see NPCs there useless as you can just do for(NPC i:enemies){ ... }
  21. nice i made one few days ago anyway thanks i would suggest you add something to change the file's name each time it saves, i usually just add the current time and date and time when file was saved e.g. "sceenshot2013-07-13 12 37 26 AM" this is how i do it SimpleDateFormat format = new SimpleDateFormat(yyyy-MM-dd HH mm ss a); Calender calender = Calender.getInstance(); File outputfile = new File(destination+fileName+format.format(calender.getTime())+".png"); this will help a lot of people
×
×
  • Create New...