Everything posted by TheScrub
-
Generating Straight line path
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
-
Lunar Spells Enum
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!
- Lunar Spells Enum
-
Lunar Spells Enum
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; } }
-
Angels Swamp Lizards
Thanks for the feedback but for 3.99 dont you think it should at least have banking? i mean the script itself was pretty diffcult to make u dont even know how long i just spent perfecting wht i hvae soo far haha ohh if it's a paid script well then banking must be in it incase u disconnect and lose ropes/nets i might have a go at making one of these thanks!
-
Angels Swamp Lizards
there's no real point in adding banking as the swamp lizards have very little value in old school as theres no summoning
-
Bandits script
no one picked up the typo "dessert"
-
Bandits script
yer i belive a small fee would get rid of alot of people in the area but also i like to give back to the community this will be the 2nd script that's pricing/choosing will be decided by the community's response by me!
-
Bandits script
as i got another week and a little left I'm thinking to pump out another script out detects if you're in the dessert or not b2p tabs potion support food support prayer support food support spec support selling food/potions to store and buying them back custom looting saving presets/loading presets friendly User interface feel free to suggest more options so I'm thinking there will be a poll on top of the page on if there will be pricing or not
- Community Decided Script
-
Community Decided Script
update just made some quick methods will only get the safe if the players aren't already on the locations http://pastebin.com/MWkGHfcm
-
Community Decided Script
Finished the gui with action listeners Source: http://pastebin.com/9sy2mqdN
-
Community Decided Script
Quick update working on the Gui still adding action listeners any ideas give tell me this is run on eclipse so it doesn't have the osbot look and feel
-
Community Decided Script
This Thread will now show progress and snippets, explanation of the snippets as this is more of an community orientated task
-
Community Decided Script
The Winner is Free Wall Safe Script i will be working on this from tomorrow on expect release for weekend!
-
Community Decided Script
ok i will update my super heater then
-
Community Decided Script
would be balloon method and walking
-
Community Decided Script
Please help me decide on what i should do on my next script!!!! Options: Free Wallsafer Paid (like $2 one time) Free unicow killer Paid (like $2-3) Paid Law RuneCrafter (like $5-6)
-
Reserving a path
yer didn't see it in the docs and thought someone might need this and have no clue what to do lol..
-
Reserving a path
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; }
-
Selling CHEAP 2007 RS Gold
This guy is very trusted imo i can vouch for wewt!
-
Simple Irc bot
just updated with alittle more features
-
Releasing FREEEEEEE money making methods! --&!%$& First Method Released&&%$@--
- Simple Irc bot
added more features such as switching channels- Simple Irc bot
nah thats pircbot's api my source is still compiled in class's if you de-compiled it w/eee....... - Simple Irc bot