-
Posts
20 -
Joined
-
Last visited
-
Feedback
0%
Profile Information
-
Gender
Male
-
Location:
Austin, Texas
-
Interests
I'm a full-time Python/Ruby developer looking to have a little fun toying with this old game we all used to play. If I could make a little money on the side while I'm at it, that would be pretty neat.
Recent Profile Visitors
1472 profile views
jython's Achievements
Bronze Poster (2/10)
6
Reputation
-
YaksPls [Potion support][Special Attack support]
jython replied to Salty as fuck's topic in Combat & Prayer
Fair enough. Thanks for sharing the source! -
YaksPls [Potion support][Special Attack support]
jython replied to Salty as fuck's topic in Combat & Prayer
There's also an edge case that the script runs into sometimes that I unfortunately am not entirely sure of the circumstances that create it: Sometimes the script attempts to attack a Yak other than the Yak that is attacking the player. The script repeatedly tries to click on the new Yak, but is interrupted by "I'm already under attack". There must be something about how it is checking interaction because it will end up target-switching to the attacking Yak and hitting it after the player auto-retaliates against the attacking Yak. My only guess as to why this happens is that it looks like the script doesn't wait very long (or the ConditionalSleep isn't quiet tuned to the correct actions) once selecting a new target. You can watch it click on new Yaks more than once sometimes when first starting to fight it. So my guess is that the script misclicks the second click, hitting a second Yak, thereby attempting to fight the second Yak while the first Yak is attacking the player from the first click. Pushing the hypothesis even further, it looks like this happens most-consistently when the newly-selected Yak requires the player to run up to it first. EDIT: Yep, easy to replicate if you Pause, walk away from the Yaks, and then hit Play again. The script will select to attack the new Yak more than once before fighting commences instead of waiting until the Player is fighting after the first selection. Also, the script semi-frequently will try attacking Yaks that other players are attacking. I think this is largely a small race-condition though as one player reaches a Yak before you do. That issue is less obvious and less prevalent. -
YaksPls [Potion support][Special Attack support]
jython replied to Salty as fuck's topic in Combat & Prayer
Yeah, the eating has totally been working. And you are very welcome! I appreciate you sharing the script! -
YaksPls [Potion support][Special Attack support]
jython replied to Salty as fuck's topic in Combat & Prayer
Thanks for the awesome turn-around time! I'm checking it out now. I'll let you know how it goes. Pots and Eating The pots + Lobsters is fighting and drinking the pots successfully now! Woot! I'm unsure when the script is thinking to eat though. I'm currently at 36/58 HP and it hasn't attempted to eat a Lobster yet. I would think it would keep the HP a bit higher. I would at least like to see it doing so. Something like eating at the following or something, since that's what I'd do if I were playing manually: (max_health - food_healing_amount) - rand(2, 4) Pots Only The pots-only however gets stuck in a loop between running from the bank to the yaks and back after withdrawing the pots. Exact settings: Food: pots-only Pots: Super Att/Str Logger: [INFO][Bot #1][10/10 10:06:37 AM]: Eating: true [INFO][Bot #1][10/10 10:06:37 AM]: Food: Pots only [INFO][Bot #1][10/10 10:06:37 AM]: Started script : YaksPls [INFO][Bot #1][10/10 10:06:44 AM]: WebWalkingEvent; We have reached the final destination! [INFO][Bot #1][10/10 10:07:06 AM]: WebWalkingEvent; We have reached the final destination! -
YaksPls [Potion support][Special Attack support]
jython replied to Salty as fuck's topic in Combat & Prayer
There looks to be a couple of bugs in the script: 1st Bug) I start the script in the bank, I select "pots only" and Super Attack/Strength. The script then withdraws the pots, close the bank, open the bank, then deposit all, infinitely repeat. 2nd Bug) I select Lobsters as food with Super Attack/Strength. The bot fights Yaks corectly, but never seems to pot nor eat. -
[Free] ikk's Al-Kharid Warriors [Food] [Potions] [Looting]
jython replied to ikk's topic in Combat & Prayer
Idk if you are still interested in actively developing this script, but here's some nice-to-have's: - Showing HP xp and also Time to Level for the skills being worked on would be nice. - It looks like the settings from the GUI aren't reset when the script is stopped and then started again, causing the script to instantly start running when the GUI menu pops up upon restart. - An option to pick up stackable drops would be nice. I'm running this on a F2P and would normally go ahead and pick up the fire runes at least. All in all though, this script is working great! Well done and thanks for sharing!. -
I just wanted to stop by and say that I've been loving this script and it has been working excellently for me! I've used it from level 1-53 (not all at once) so far on each of the respective rooftop courses. I'm quickly approaching full Graceful as well. I've been so happy with this script that I just needed to stop by and share my gratitude. Thank you.
-
I personally didn't care for CodeAcademy much. I felt like the practice problems left me feeling unable to expand upon the concepts that I had learned due to the limited scope that was taught. For language, I personally started with Python and would recommend Python to start vs Java. Java is a great language, but has a higher learning curve to get you started. When learning the very basic concepts, removing as many roadblocks as possible is more beneficial than learning all the nitty-gritty details of statically-typed languages (like Java) since all core concepts (variables, conditionals, loops, functions, classes, etc.) will transfer between languages (as long as you stick within Object-Oriented languages like Java, Ruby, Python, PHP, C++, etc). I learn really well from reading, so I enjoyed going through https://learnpythonthehardway.org/book/ (free). CodeSchool (paid) and Treehouse (paid) are both video-tutorials with in-browser code environments like CodeAcademy, but they both take a more project-oriented approach. I really like that since building some sort of application is much more real-world. I also thought their instruction was straight up better. They both have 30-day free trials, so you should definitely give one a shot. Often times websites like that have discounts (or are free) for students as well! Hope that helps. I'm happy to answer any more questions as well.
-
For some very simple scripts of mine, I'm successfully using walk() instead of webwalk() in the interim.
-
These snippets are wonderful. I was just getting around to writing a fighter and needed to write in my loot calculator. Thanks so much for sharing this.
-
This was a really nice tutorial! Thanks! You did a really great job on your wording and flow through the different components. I already had a basic idea of how to get this going and this tutorial did a fantastic job cementing the ideas around splitting your states into their own classes. Thanks so much for the time you spent on this. As a side note, this really should be Pinned..
-
I'm using this fellow's "Drawing Tiles" useful snippet: http://osbot.org/forum/topic/80826-useful-methods/?hl=fill and it works perfectly. My snippet iterating through Positions: for (Position p : fishingArea.getPositions() ) { drawTile(script, g, p, Color.pink, Color.white, ""); } With drawTile() slightly modified from the link's example, looking like this: /** * * @param script Most likely: client.getBot().getScriptExecutor().getCurrent() * @param g The Graphics2D object passed into the onPaint() method * @param position The Position for the tile you are wishing to draw on * @param tileColor The color that will be drawn around the border of the tile * @param textColor The color of the text for the "s" parameter * @param s The text you wish to display next to the tile, if any. */ public void drawTile(Script script, Graphics g, Position position, Color tileColor, Color textColor, String s) { Polygon polygon; if (position != null && (polygon = position.getPolygon(script.getBot(), position.getTileHeight(script.getBot()))) != null) { g.setColor(tileColor); for (int i = 0; i < polygon.npoints; i++) { g.setColor(new Color(0, 0, 0, 20)); g.fillPolygon(polygon); g.setColor(tileColor); g.drawPolygon(polygon); } g.setColor(textColor); g.drawString(s, (int) polygon.getBounds().getX(), (int) polygon.getBounds().getY()); } }
-
Works perfectly. This is great. Thank you, good sir.