Everything posted by Alek
- GWD AFK?
-
Forum Restructure + Cleanup
Just some short news, the mods have cleaned up a ton of inactive topics; give them a big thank you. In addition, I've decided to do a forum restructure. There were a ton of arbitrary sub-forums and empty/near-empty forums which were consolidated. Hopefully forum users can find what they're looking for faster and/or a new place to make their posts. Some notable changes include: -Combined Magic + Prayer into one subforum -Complete re-work of the development section (which now includes graphics) -New "Support Section" -Spam generalized into "Chill Zone"
-
All my bots are gone.
Here is some information that should help guide you: http://osbot.org/forum/topic/60660-osbot-1-scripts-and-osbot-legacy-api/
-
Your longest time without any ban's?
I botted for 13 months. Read my guide under Runescape Bans, I do exactly what I stated in there.
-
DNAIO fighter complications
Please post this information on the script topic. You can find the topic by visiting the "Scripts" page and clicking the "Info" button next to the Add/Remove button. Sorry but there is not much we can do to help you in this section as this forum is used to resolve forum-specific issues.
-
Item on a Table
I'll look into making a fix for this.
-
OSBot 2.2.28 - Walking, Interaction, and Patches
The walking should be pretty stable, but I would definitely test it before releasing it in your scripts. Let me know how it works for you guys.
- Tutorial: How to walk a path in one line of code
-
Setup instructions to start scripting - Very Easy
It's the osbot file, the same file which you click on to start osbot. For you it will be called something like osbot-2-2-28.jar or something along those lines. I rename my jar file to "OSBot2".
-
OSBot 2.2.28 - Walking, Interaction, and Patches
This update features a handful of new tools for scripters along with improvements to interactions. Additionally, a large portion of the bot has undergone many revisions in support of our future projects. Both scripters and botters should feel the positive effects of this release. If you would like to learn how to script, please visit these tutorials: Setup guide: http://osbot.org/forum/topic/60538-setup-instructions-to-start-scripting-very-easy/ Basic script guide: http://osbot.org/forum/topic/60535-osbot-script-skeleton-the-minimum-code-to-make-a-script/ OSBot 2.2.28 @Alek's changes: API - Scripters Only -Added localWalker methods walkPath(List<Position>) and walkPath(Position[]) -Added localWalker method waitUntilIdle() -Added localWalker method findPosition(Position p); (Finds a position halfway between you and the target) -Added Utilities class --Added utilities method getMinValue(int[]); (Finds the position of the smallest int in an array) --Added utilities method int[] convertIntegers(List<Integer>) -Added MoveMouseEvent(RS2InterfaceChild child) -Added NPC method hover() -Patched ItemContainer hover() method -Patched all Interactable hover() methods -All Interactable hover() methods are now boolean type Notes: The walkPath() method is very inclusive and may contain some bugs on the initial release. All - Scripters and Botters InteractionEvent by default checks if an entity is on screen before attempting to walk to it. Previously if an entity was on screen but met the distance threshold criteria, it would still walk to the entity. Scripters can override the isVisible default check by setting the walkingDistanceThreshold in InteractionEvent. Notes: The InteractionEvent change has been tested but as always, cannot be fully tested until it reaches the masses. Shout out to for all the bug reports! Thanks for using OSBot -The OSBot Team
-
Setup instructions to start scripting - Very Easy
We will be using the IDE called IntelliJ. Step 1: Click on new project Step 2: Click on Java Step 3: Don't click on template, just click next Step 4: Type in your project name (it will contain all your scripts) Step 5: Click src> New > Java class Step 6: Type in your script name Step 7: Go to project structure Step 8: Make sure you are using Java 8 Step 9: Click on libraries, then click on the plus button, then click on "Java" Step 10: Find your OSBot file (.jar file) - The same file which you click on to start the bot. Step 11: Confirm Step 12: Click Apply/OK. After that you may get a language level message, accept it At this point your IntelliJ is set-up to create scripts. After this point, you will learn how to build the actual script. Step 13: Click Build > Compile Step 14: Find where the file got created, then copy it Step 15: Copy the class file(s) and paste them into your OSBot script folder Step 16: Reload your scripts, and you're done
-
Tutorial: Simple interaction with objects and npcs
objects.closest("Bank chest").interact("Use"); This method looks for an object called "Bank chest" and attempts to interact with it using "Use". If you attempt to interaction with the "Bank chest" using "Attack", the method will not work because "Bank chest" does not have the action "Attack". npcs.closest("Guard").interact("Attack"); Lets say you are killing guards, as the method shows above. What happens when you kill all the guards and this method is called? You will get an error called a "Null Pointer Exception", meaning that the method was called but it didn't work because the object reference (in this case the Guard) is null (meaning it doesn't exist). Here is how we would solve that problem: NPC guard = npcs.closest("Guard"); if(guard != null){ guard.interact("Attack"); } Here we create the NPC reference called "guard" and we define it using the npcs.closest() method. Now if npcs.closest("Guard") can't find any guards, "guard" will be defined as null. This information is used in the next line where we check if "guard" is null, meaning if no guards exist. If there is at least one guard that exists (not null or != null), we will interact with the guard using "Attack".
-
Tutorial: How to walk a path in one line of code
private Position[] path = { new Position(3254, 3421, 0), new Position(3256, 3428, 0), new Position(3264, 3428, 0), new Position(3273, 3428, 0), new Position(3277, 3426, 0), new Position(3281, 3422, 0) }; getWalking().walkPath(path); Explanation: The position array listed above will be defined at the top of your script (with the other variables) and getWalking().walkPath(path) will be defined wherever you want to call it (such as in a method, in your onLoop, etc.). Getting positions: Click on the settings gear icon in the client and scroll over "Entity debugs" and then toggle "Entity hover debug". Hover your mouse over a tile and it will show the position of the tile. The third number in the position constructor is the "Z" coordinate, meaning the current plane which you are on. Order: The position array has a list of positions with the first position being where your character will start walking and the last position being where your character will end walking. Add positions in a manner where once your character reaches one position, it can find the next position on the minimap. Additional: If your character starts in the middle of the path, it will not walk to the beginning, it will resume until it reaches the final position. If for some reason your character gets off the path, the walkPath() method will attempt to get back onto your path.
-
OSBot Script Skeleton - The minimum code to make a script
import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(name = "Skeleton", author = "Alek", version = 1.0, info = "", logo = "") public class Skeleton extends Script { @Override public void onStart() { //Code here will execute before the loop is started } @Override public void onExit() { //Code here will execute after the script ends } @Override public int onLoop() { return 100; //The amount of time in milliseconds before the loop starts over } @Override public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) } }
-
Every time I watch vines...
The recommended video list is always crap like this:
-
True or False: King of The Hill is the best anime ever made?
True for koth
-
Welcome MGI, A New Official Developer!
Don't worry guys, I'm going to be dedicated purely to the old school client. There's still a lot I'm learning but I think we're in a better position now than we were a few months ago.
-
No bots working
Please read the announcement: http://osbot.org/forum/topic/60481-rs-update-september-18th/
-
interact and onmessage
message.getMessage() returns the string you are looking for. message is the object.
-
Is SSF available to those who already have purchased it?
The scripter was banned again, so most likely no.
-
How to activate random events
We are having the return false for activating until we make the GUI for selecting which randoms you wish to solve.
-
Linkin Park?
That isn't Linkin Park. This is:
-
Random mouse moving and camera turning?
It could also be the interaction method itself, which I don't think is particularly good. I plan on doing a large overhaul on interaction events soon.
-
OSBot 2.2.27 - Hotfixes
After the release of 2.2.26, we received notification of various problems arising from both the release and from other previously unreported issues. With that said, I'd like to announce 2.2.27 which should fix and stabilize many of the concerns you submitted. OSBot 2.2.27 @Alek's changes: -Added position method isOnMiniMap(Bot bot); -Re-wrote setting method setRunning(boolean run); @FrostBug's changes: -Patched deprecated Spell enum -Patched EntityDestination For scripters, please keep using the Tracker. For the botters/community members, please keep on using the appropriate forums to post bugs, glitches, and suggestions. We may not always reply, but rest assured we are looking. Thanks for your support in making this update happen, we rely on our community to make this bot grow. Kind regards, The OSBot Staff
- grades