Jump to content

TheScrub

Members
  • Posts

    1130
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by TheScrub

  1. I don't like how other scripts on the site are premium when they do a simple task so not only will i be doing a man killer i will be doing other releases to bring the SDN updated with free quality scripts will be released when testing is finished: THIS WILL BE A FREE RELEASE WHEN IT'S DONE!!! Features: Hovering over the next npc Option Custom herb loots Custom food set-ups Simple User Interface (UI) Demo Video: as you can see it has a little bit of bug's which I'm working on to release it as high of quality as it can be!
  2. 5. that's just my OCD 3. a 2d. array object would be a nice idea thanks! 2. no it wouldn't as the other axis would not be at it's max size yet thanks for the feedback really informative and sounds like you know what you're doing
  3. not too good but w/ee public static Position[] generateStraightPath(Position start, Position end) { ArrayList<Position> path = new ArrayList<Position>(); int currentX = start.getX(); int currentY = start.getY(); int endX = end.getX(); int endY = end.getY(); int dX = (currentX < endX) ? 1 : -1; int dY = (currentY < endY) ? 1 : -1; while (currentX != endX || currentY != endY) { if (currentX != endX) { currentX += dX; } if (currentY != endY) { currentY += dY; } path.add(new Position(currentX, currentY, 0)); } return path.toArray(new Position[0]); } what does it do? for example using generateStraightPath(new Position(5, 10, 0), new Position(10, 20, 0)) it will spit this path out (E the element in the array) Visual demo of how it would look (IM SO GOOD @ PAINT!!!): as you see it goes diagonal until it reaches the same x then goes straight up
  4. Thanks guys i understand that there meant to be upper case like the oracle doc example "MONDAY","TUESDAY" etc just forgot idk what you guy's are meaning by the id's as it's the interface child id and should be used in you're casting method as such just a quick example i wrote up private void castSpell(Spells i) throws InterruptedException { if (!mageTabIsOpen()) { magicTab.open(); sleep(300); } else if (mageTabIsOpen()) { if (client.getInterface(i.getParent()) != null) { RS2InterfaceChild s = client.getInterface(430).getChild(i.getChild()); if (s.isVisible() && s != null) { s.interact("Cast"); sleep(300); } } } } as you can see i used static sleeps as this is only an example but you see how it works also with the name i thought you had to have the name to use the spell but you don't but you can use it like other people said for combo boxs etc really nice idea!
  5. well i finished it and decided to share because I'm nice took like 20 mins to write this shit down!!! enum Spells { HomeTeleport("Lunar Home Teleport", 0, 16), BakePie("Bake Pie", 65, 15), CurePlant("Cure Plant", 66, 31), MonsterExamine("Monster Examine", 66, 6), NpcContact("NPC Contact", 67, 4), CureOther("Cure Other", 68, 1), Humidify("Humidify", 68, 7), MoonClanTeleport("Moonclan Teleport", 69,20), TeleGroupMoonclan("Tele Group Moonclan", 70, 32), CureMe("Cure Me", 71, 23), HunterKit("Hunter Kit", 71, 8), WaterbirthTeleport("Waterbirth Teleport", 72, 24), TeleGroupWaterbirth("Tele Group Waterbirth",73,33), CureGroup("Cure Group",74,3), StatSpy("Stat Spy",75,9), BarbarianTeleport("Barbarian Teleport",75,0), TeleGroupBarbarian("Tele Group Barbarian",76,34), SuperglassMake("Superglass Make",77,25), KhazardTeleport("Khazard Teleport",78,18), TeleGroupKhazard("Tele Group Khazard",79,35), Dream("Dream",79,10), StringJewellery("String Jewellery",80,22), StatRestorePotShare("Stat Restore Pot Share",81,27), MagicImbue("Magic Imbue",82,13), FertileSoil("Fertile Soil",83,2), BoostPotionShare("Boost Potion Share",84,26), FishingGuildTeleport("Fishing Guild Teleport",85,17), TeleGroupFishingGuild("Tele Group Fishing Guild",86,36), PlankMake("Plank Make",86,11), CatherbyTeleport("Catherby Teleport",87,21), TeleGroupCatherby("Tele Group Catherby",88,37), IcePlateauTeleport("Ice Plateau Teleport",89,28), TeleGroupIcePlateau("Tele Group Ice Plateau",90,38), EnergyTransfer("Energy Transfer",91,5), HealOther("Heal Other",92,29), VengeanceOther("Vengance Other",93,19), Vengance("Vengance",94,14), HealGroup("Heal Group",95,30), SpellbookSwap("Spellbook Swap",96,12); private final int level; private final int childid; private final String name; Spells(String name, int level, int childid) { this.name = name; 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; } }
  6. Got a bad flu right now! (been 2 weeks with it)

  7. yer didn't see it in the docs and thought someone might need this and have no clue what to do lol..
  8. a lot of people releasing these walking snippets so i figured seeming the api doesn't have a method to reverse a path i would release 1 here u go simple but helpful! private Position[] reversePath(Position[] path) { ArrayList<Position> pos = new ArrayList<Position>(); Position[] target = null; for (int i= 0;i<path.length;i++){ pos.add(path[path.length-i-1]); } target = pos.toArray(new Position[pos.size()]); return target; }
  9. just updated with alittle more features
  10. added more features such as switching channels
  11. nah thats pircbot's api my source is still compiled in class's if you de-compiled it w/eee.......
  12. started this 25 mins ago using this for twitch.tv will be adding more options on the interfaces later! using the pircbot api for irc bots the password is http://www.twitch.tv/amclay?chat_debug=true%29 include the "oauth:" as the password example oauth:123xa13213d12e2112e this would be you're password channel Download link will release source later: http://adf.ly/WJeA4
  13. TheScrub

    Search Bank

    that's fine mate it's just a snippet i added some useless shit now that the banking api is up but meh
  14. just got this pic l adamant pickaxe
  15. TheScrub

    BETA v1.7.39

    java.lang.NullPointerException at org.osbot.script.rs2.ui.Bank.getCurrentScrollContainer(bi:721) at org.osbot.script.rs2.ui.Bank.isSlotVisible(bi:720) at org.osbot.script.rs2.ui.Bank.scrollToSlot(bi:802) at org.osbot.script.rs2.ui.Bank.withdrawSlot(bi:825) at org.osbot.script.rs2.ui.Bank.withdraw(bi:412) at org.osbot.script.rs2.ui.Bank.withdrawX(bi:246) Using the Banking api will not scroll down the bank anymore
  16. TheScrub

    Search Bank

    Using colours to withdraw is pretty crude but it is one of the ways to work around this..
  17. TheScrub

    Search Bank

    thanks for writing some methods sorry i would of wrote some withdrawing but i've been at school
  18. TheScrub

    Search Bank

    turning this into a class and adding more methods
  19. TheScrub

    Search Bank

    just updated it so it will use colour to detect the text and the * looks on all brightness's and public chat won't impact it
  20. TheScrub

    Search Bank

    i like to use a while loop for sleeps but i don't like to use it in snippets obviously you can add sleeps... While loops are bad... please enlighten me why so? Because they have so many flaws. What if your bot gets stuck in a while loop whilst the evil chicken pwns ur ass? having something like that can counter getting stuck in a while loop as it will break out the while loop after 3000ms long t = System.currentTimeMillis(); while (boolean x && (System.currentTimeMillis() - t) < 3000) { sleep(20); }
  21. TheScrub

    Search Bank

    i like to use a while loop for sleeps but i don't like to use it in snippets obviously you can add sleeps... While loops are bad... please enlighten me why so?
×
×
  • Create New...