Jump to content

Joseph

Trade With Caution
  • Posts

    4692
  • Joined

  • Last visited

  • Feedback

    91.3%

Everything posted by Joseph

  1. Why did you use an Array List in the parameter, it will be easier and look better with an array of strings "String...blacklist". example: public void dropAllExcept(String...blacklist) throws InterruptedException { List<String> list = new ArrayList<String>(); for (String s: blacklist) { if (s!=null) list.add(s); } //then you could do the rest in here using the arrayList } initialize it as a List then convert it into an array list List<String> list = new ArrayList<String>();
  2. Joseph

    Herb Data

    You could do that, but at the time I wrote I wanted to make sure I got all ids correct
  3. Nice I like it, thank you for the snippet can't wait to see some more snippets from you
  4. Joseph

    Herb Data

    its call laziness lol, ill update this in a little edit: Question why would you use, toString() in your string builder when your trying to modify toString(). @Swizzbeat
  5. Joseph

    Herb Data

    so your trying to say that its better to use StringBuilder then super.name()
  6. Joseph

    Herb Data

    opp i didnt mean to leave those empty parameter. Also my toString() is pretty clean. The only reason why they are like that, its so it can be the actual name in rs. for example: Secondary.RED_SPIDERS1_EGGS.toString() will return Red spiders' eggs just like in runescape. exact name
  7. interesting so that means ring and arrow slot is still broken? So the only way to get the item within those slot is by updating the cache.
  8. im not to happy about the equipment tab, it doesnt work if you have the bank open
  9. Joseph

    Herb Data

    its an unfinished, but it still might be helpful to others. public class HerbData { public HerbData() {} public static enum Herb { //NONE(-1, -1, -1, -1, -1), GUAM(3, 249, 250, 199, 200), MARRENTILL(5, 251, 252, 201, 202), TARROMIN(11, 253, 254, 203, 204), HARRALANDER(20, 255, 256, 205, 206), RANARR(25, 257, 258, 207, 208), TOADFLAX(30, 2998, 2999, 3049, 3050), IRIT(40, 259, 260, 209, 210), AVANTOE(48, 261, 262, 211, 212), KWUARM(54, 263, 264, 213, 214), SNAPDRAGON(59, 3000, 3001, 3051, 3052), CADANTINE(65, 265, 266, 215, 216), LANTADYME(67, 2481, 2482, 2485, 2486), DWARFWEED(70, 267, 268, 217, 218), TORSTOL(75, 269, 270, 219, 220); private int level, cleanUnnoted, cleanNoted, grimyUnnoted, grimyNoted; private String unfinPotion; Herb(int level, int cleanUnnoted, int cleanNoted, int grimyUnnoted, int grimyNoted) { this.level = level; this.cleanUnnoted = cleanUnnoted; this.cleanNoted = cleanNoted; this.grimyUnnoted = grimyUnnoted; this.grimyNoted = grimyNoted; this.unfinPotion = super.name().toLowerCase() +" potion (unf)"; } @Override public String toString() { return super.name().charAt(0) + super.name().substring(1).toLowerCase() +", Level: " +level; } public int getIdLevel() { return this.level; } public int getCleanUnnoted() { return this.cleanUnnoted; } public int getGrimyUnnoted() { return this.grimyUnnoted; } public int getCleanNoted() { return this.cleanNoted; } public int getGrimyNoted() { return this.grimyNoted; } public String getUnfinPotion() { return this.unfinPotion; } } public static enum Secondary { EYE_OF_NEWT, UNICORN_HORN_DUST, LIMPWURT_ROOT, SWAMP_TAR, RED_SPIDERS1_EGGS, CHOCOLATE_DUST, WHITE_BERRIES, TOAD1S_LEGS, CRUSHED_GOAT1S_HORN, SNAPE_GRASS, MORT_MYRE_FUNGUS, KEBBIT_TEETH_DUST, //GROUND_GORAK_CLAW, This isnt the corrct name, figure out what it is, then change it BLUE_DRAGON_SCALE, WINE_OF_ZAMORAK, POTATO_CACTUS, JANGERBERRIES, CRUSHED_NEST, POISON_IVY_BERRIES, LAVA_DRAGON_SCALE; @Override public String toString() { return super.name().replace("_", " ").replace("1", "'").replace("2", "-").toLowerCase(); } } public static enum Potion { ATTACK_POTION(3, Herb.GUAM, Secondary.EYE_OF_NEWT), ANTIPOISON(5, Herb.MARRENTILL, Secondary.UNICORN_HORN_DUST), STRENGTH_POTION(12, Herb.TARROMIN, Secondary.LIMPWURT_ROOT), GUAM_TAR(19, Herb.GUAM, Secondary.SWAMP_TAR), STAT_RESTORE_POTION(22, Herb.HARRALANDER, Secondary.RED_SPIDERS1_EGGS), ENERGY_POTION(26, Herb.HARRALANDER, Secondary.CHOCOLATE_DUST), DEFENCE_POTION(30, Herb.RANARR, Secondary.WHITE_BERRIES), MARRENTIL_TAR(31, Herb.MARRENTILL, Secondary.SWAMP_TAR), AGILITY_POTION(34, Herb.TOADFLAX, Secondary.TOAD1S_LEGS), COMBAT_POSTION(36, Herb.HARRALANDER, Secondary.CRUSHED_GOAT1S_HORN), PRAYER_POTION(38, Herb.RANARR, Secondary.SNAPE_GRASS), TARROMIN_TAR(39, Herb.TARROMIN, Secondary.SWAMP_TAR), HARRALANDER_TAR(44, Herb.HARRALANDER, Secondary.SWAMP_TAR), SUPER_ATTACK_POTION(45, Herb.IRIT, Secondary.EYE_OF_NEWT), SUPER_ANTIPOISON(48, Herb.IRIT, Secondary.UNICORN_HORN_DUST), FISHING_POTION(50, Herb.AVANTOE, Secondary.SNAPE_GRASS), SUPER_ENERGY_POTION(52, Herb.AVANTOE, Secondary.MORT_MYRE_FUNGUS), HUNTING_POTION(53, Herb.AVANTOE, Secondary.KEBBIT_TEETH_DUST), SUPER_STRENGTH_POTION(55, Herb.KWUARM, Secondary.LIMPWURT_ROOT), WEAPON_POISON(60, Herb.KWUARM, Secondary.BLUE_DRAGON_SCALE), SUPER_RESTORE_POTION(63, Herb.SNAPDRAGON, Secondary.RED_SPIDERS1_EGGS), SUPER_DEFENCE_POTION(66, Herb.CADANTINE, Secondary.WHITE_BERRIES), ANTIFIRE_POTION(69, Herb.LANTADYME, Secondary.BLUE_DRAGON_SCALE), //CHECK NAME RANGING_POTION(72, Herb.DWARFWEED, Secondary.WINE_OF_ZAMORAK), MAGIC_POTION(76, Herb.LANTADYME, Secondary.POTATO_CACTUS), ZAMORAK_BREW(78, Herb.TORSTOL, Secondary.JANGERBERRIES), SARADOMIN_BREW(81, Herb.TOADFLAX, Secondary.CRUSHED_NEST), EXTENDED_ANTIFIRE_POTION(84, Potion.ANTIFIRE_POTION, Secondary.LAVA_DRAGON_SCALE); private int level; private Herb herb; private Secondary secondary; private Potion potion; Potion(int level, Herb herb, Secondary secondary) { this.level = level; this.herb = herb; this.potion = null; this.secondary = secondary; } Potion(int level, Potion potion, Secondary secondary) { this.level = level; this.herb = null; this.potion = potion; this.secondary = secondary; } @Override public String toString() { return super.name().charAt(0) + super.name().substring(1).replace("_", " ").toLowerCase() +", Level: " +level; } public int getLevel() { return this.level; } public Herb getHerb() { return this.herb; } public Potion getPotion() { return this.potion; } public Secondary getSecondary() { return this.secondary; } } }
  10. if you dont know dont ask. Just appreciate the update
  11. Perfect i cant wait, please release a log of what has been fixed
  12. Oh ya i noticed it the second I started looking at the script. I know you said not to comment on the way you code but all those try and catches , I know they are helpful but are they really
  13. Why you releasing your source code? So you could work on osbot 2
  14. Can I marriage her, she is so perfect. 20/10 It's basically the same thing if you put a bag over her face. Or face down, ass up ;P
  15. the stuggle lol, so far i have this, it works fine for the right clicking. Now i just need to add in menu slecetion public boolean menuContains(RS2Object object) { if (object != null && client.isMenuOpen()) { for (Option menu: client.getMenu()) { if (menu!=null && menu.action.equalsIgnoreCase(object.getDefinition().getActions()[0])) return true; } } return false; } public boolean rightClick(RS2Object object) throws InterruptedException { if (object != null && this.canReach(object)) { if (!client.isMenuOpen()) { client.moveMouseTo(object.getMouseDestination(), false, true, true); }else return this.menuContains(object); } return false; } public boolean interactWithRightClick(RS2Object object) throws InterruptedException{ return false; }
  16. im not too sure of, how to select the first index off a open menu (off of right clicking). i know there, but i wouldnt know what to put for the destination selectOptionpublic boolean selectOption(java.lang.Object e, MouseDestination dest, java.lang.String action) throws java.lang.InterruptedExceptionSelects an option in a menu. Parameters: e - The entity object (Can be an instance of Entity or Item) dest - The destination of the destination. action - The action of the option, For example: 'Use' or 'Chop down' Returns: Throws: java.lang.InterruptedException
  17. wow legit, i went down the list of client methods and couldnt find it lol. Thank you client.getCameraYawAngle(); is the answer i was looking for
  18. How would i go about getting the rotation of my minimap?
×
×
  • Create New...