Jump to content

Pug

Trade With Caution
  • Posts

    443
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    100%

Everything posted by Pug

  1. if you have your osbot client attached in the build path of the project which it should be, then you can hover over the error and 90% of the time it will show you a fix for the problem including spelling errors private boolean walkTile(Position p) throws InterruptedException { client.moveMouse(new MinimapTileDestination(bot, p), false); sleep(random(150, 250)); client.pressMouse(); int failsafe = 0; while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) { sleep(200); failsafe++; if (myPlayer().isMoving()) failsafe = 0; } if (failsafe == 10) return false; return true; } should be: private boolean walkTile(Position p) throws InterruptedException { mouse.move(new MiniMapTileDestination(bot, p), false); sleep(random(150, 250)); mouse.click(false); int failsafe = 0; while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) { sleep(200); failsafe++; if (myPlayer().isMoving()) failsafe = 0; } if (failsafe == 10) return false; return true; } should it not?
  2. here is the route i used for my rcer on osbot1, it ran slightly south of the shop for nats then diagonal straight to the altar no monsters. Feel free to use it now my script is redundant. {2767,3122}, {2764,3118}, {2765,3109}, {2776,3100}, {2786,3095}, {2795,3086}, {2805,3079}, {2816,3074}, {2824,3066}, {2832,3058}, {2839,3049}, {2850,3043}, {2861,3036}, {2865,3027}, {2868,3021}
  3. where to start, in order... game of thrones Breaking Bad The Wire dexter Vikings weeds Prisonbreak the walking dead bones simpsons ( comical value alone )
  4. thats the badger! thanks dude
  5. getting this error... used to work in my osb1 scripts.. been fiddling and what not but yeh.. brain frazzled. (removing @override makes the method not work btw) lil help?
  6. Pug

    Pug Planker [$$$]

    thanks guys hope its working good for you. v0.32 - added teak planks - added mahogany planks - updated gui - added new paint (hide button not working btw ik ;) )
  7. Pug

    Pug Planker [$$$]

    done, slowed it down a little. version 0.31 - slowed down plank selection process. - added stats on exit of script - more fixes.
  8. Pug

    Pug Planker [$$$]

    updated script to: version 0.30 - added GUI - now supports regular planks to. - few fixes
  9. Working As Of: 1st November 2014 V0.34 - FINAL VERSION HAVE NOT BEEN ON OSBOT SINCE 11TH JANUARY 2015 - USE THIS SCRIPT AT OWN RISK.
  10. my point wasnt related to the code. It was pointed squarely at the fact that nothing on walking for OSB2 existed for new members until i posted it the other day but then all of a sudden after there which two new threads were made on the same subject, nothing against Swizz or Jose of course nice work guys. I just wish we all posted more open content that others can use in the future to make basic scripts for the new client. When i first joined there was a swath of content to learn from. It seems with OSB2 scriptwriters are trying to keep things they know private so others struggle or even start to learn and they then make more money. (The incident in the scriptwriters section the other day was a perfect example.) A community based around a profit will die sooner rather than later and just lately the taste around here is becoming rather sour, and i for one don't like it. said my bit, now guna fade back into the black.
  11. love how i post the initial idea and then the blue pixels come along and re-do it. lol. Maybe i should post more basic concepts for OSB2 and then we might actually get back to somewhere close of a decent community of free scripts.
  12. Pug

    Path Walking [OSB2]

    if useless means then it cant be used to walk from A to B across 50% of runescape without encountering an obstacle then yes you are right lol. 99% of my scripts need this. It can also be adapted very easily to handle any obstacle when in range. But for those just starting out with a script that needs to make it walk, its just the job ;)
  13. Pug

    Path Walking [OSB2]

    thanks for the responses guys! all good comments, i want to see lots of free scripts getting put out and re-build this community for the wide range of scripts we had in OSBot1.
  14. Pug

    path walking

    thanks posted it here: http://osbot.org/forum/topic/55010-path-walking-osb2/?p=613279 hope you don't mind, thanks again.
  15. needed this and @Pandemic was kind enough to donate his. So in the interest of the community and for new scriptwriters to learn the art of walking in there script which is pretty pivotal im posting an example here so everyone can use it in the future of OSB2. feel free to post improvements. import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.util.LocalPathFinder; import org.osbot.rs07.input.mouse.MiniMapTileDestination; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.Area; @ScriptManifest(name="name", author="author", info="info", logo="", version=0.1D) public final class walker extends Script { // area declarations private static final Area vWestBank = new Area(3186, 3433, 3180, 3437); private static final Area vEastBank = new Area(3256,3420,3250,3423); // walking path ( walks from varrock west to varrock east bank private final Position[] pathToWalk = { new Position(3182, 3436,0), new Position(3189, 3430,0), new Position(3200, 3429,0), new Position(3211, 3428,0), new Position(3223, 3429,0), new Position(3233, 3430,0), new Position(3244, 3429,0), new Position(3254, 3428,0), new Position(3254, 3420,0) }; @Override public int onLoop() throws InterruptedException { if(!vEastBank.contains(myPlayer())) { log("not in east bank, walking"); walkPath(pathToWalk); } if(vEastBank.contains(myPlayer())) { log("made it!"); stop(); } return 300; } //walking methods public void walkPath(Position[] path) throws InterruptedException { for (Position p : path) { if (myPosition().distance(p) > 16 || myPosition().distance(p) < 3) continue; boolean success; do { success = walkTile(p); } while (!success); } } public boolean walkTile(Position p) throws InterruptedException { if (myPosition().distance(p) > 13) { Position pos = new Position(((p.getX() + myPosition().getX()) / 2) + random(-3, 3), ((p.getY() + myPosition().getY()) / 2) + random(-3, 3), myPosition().getZ()); walkTile(pos); } mouse.click(new MiniMapTileDestination(bot, p), false); int fail = 0; while (myPosition().distance(p) > 2 && fail < 10) { sleep(500); if (!myPlayer().isMoving()) fail++; } return fail != 10; } }
  16. does anyone have a smooth path walking system for OSB2 that they would like to share with the community to become common use for all scripts. I had one for my rcer in osb1 but doesnt work very well in the new client. flames & abuse from people shall be reported ;)
  17. client.getBank().depositAll(); also using : bank.depositAll(); is quicker
  18. bought package 2, thanks. Recommend to everyone.
  19. idk why all of you change IP's id like to see some evidence that IP's get flagged by jagex. I have had three accounts banned over the last 2-3 months. But since ive started using my new method it seems to be ok. I bot on the same world every day even after the client closes, il open it back up and use the same world. I also turn the bot off a few hours before i go to bed. I then put it back on before i go to work. Ive been doing this for 3 weeks and no ban touch wood.
  20. ive just been turning it off when i go to bed for 6 hrs. when ive ran out of ess, gone to sell my runes and buy more ess, generally stand around abit/ log out fuck about then put the bot back on... done that for about a month now and no ban.
  21. i decided to test your class out tonight and it worked when i tried it in a test script that returned whether or not there is an item in the ring slot. I implemented it into my script. tested it. didnt work. re-ran the test script and that is also not working now. It doesnt return the item in question just a 6 alphanumeric combination that changes between three combinations upon reading the item in the slot. so it never reads null. After retestign a few times ive discovered that after you wear the ring and have it test for a ring for it to come back true. If you then change tab to inventory and re-open equipment tab take off the ring and go back to inventory again and re-test its not updating the players items being worn. If you logout and then back in and retest it will work once more. any suggestions? code: // upon arriving in bank i call: checkRing(); // check ring method (horrible i know) public void checkRing() throws InterruptedException { log("open inventory tab."); selectInterfaceOption(548, 50, "Inventory"); sleep(1000 + random(100,200)); log("checking if wearing ring"); if(currentTab() != Tab.EQUIPMENT) { log("open equipment tab."); this.equipmentTab.open(); log("sleeping"); sleep(1000 + random(100,120)); log("checking ring."); } if(Equipment.getItemInSlot(client, EquipmentSlot.RING) != null) { log("Have a Ring"); havering = true; } if(Equipment.getItemInSlot(client, EquipmentSlot.RING) == null) { log("No Ring"); havering = false; } } i have my paint display what item your method is churning out and it shows this now:
  22. hello there all you talented graphics people. I am looking for a talented individual to step up and make a promo vid for my runecrafting script. I have the intro done already and it can be found on youtube here: Im looking for something action packed with engaging soundtrack that shows the full range of my script and its money making potential. You will get bonus points if you can make something sound up for the intro to. I can provide the original after fx file or the .mp4 file of the intro if needed. Not fussed about what software you use to achieve the end promo vid, go wild. The script is freely available so if you can get your own raw footage that would be good, however if you cant make the upper level runes i can provide footage in your chosen file format and frame size. not sure if im aloud to pay you for your time/services. If i am then im more than willing to giving you rsgp go wild.
  23. not to shabby
  24. Pug

    READ

    the RS servers are down, please wait while they fix the issue.
×
×
  • Create New...