Leaderboard
Popular Content
Showing content with the highest reputation on 07/30/13 in Posts
-
This release features a patch to Freaky Forester and the Run Away From Combat handler. Freaky Forester was again misinterpreting the dialogue telling us which tailed Pheasant to kill. This should however no longer happen. Expect more releases soon, Maxi is back from France and we should be able to get back to work fully. Thanks, Sincerely, Laz and the OSBot Team.4 points
-
This is a mini tutorial on how to use actions to check if a door is open or closed based on a certain tile and action strings. This is useful for writing scripts which require you to pass through a door pathway. NOTE: Using this snippet you will NEVER need to update door IDs as you will be using strings. What are actions? actions are exactly what they sound like. Almost everything in RuneScape contains actions and we can abuse this to tell if certain players, objects, NPCs, etc contain certain menu options without having to even click on them. This will be useful for telling if a door is actually opened or closed! Step 1: Creating the action identifier First let's make a boolean called "checkDoorIsOpen" and inside this boolean we will be checking to see if an object is not null and it's action contains a certain string to verify that a door is actually closed or open. private boolean checkDoorIsOpen() { final RS2Object door = closestObjectForName(doorTile, "Door"); if(door != null) { for(String actions: door.getDefinition().getActions()) { if(actions.contains("Open")) { return true; } } } return false; } You might have noticed we used an area filter to filter out the unwanted doors, and yes, you can use the same two tiles for an area. Area Example private final Area doorArea = new Area(1111, 2222, 1111, 2222); Step 2: Now that we have our action identifier how do we use it? We use a simple if statement to determine weither the door is open or closed based on our identifier above if(checkDoorIsOpen()) { status = "Opening the door"; door.interact("Open"); } else if(!checkDoorIsOpen()) { //CODE HERE } As you can see in the statement above if our boolean checkDoorIsOpen returns true the door on that tile must contain an Open action meaning the door must be closed resulting in the bot opening the door. Now If the condition returns false it will ignore the door interaction code and run our normal code. The reason I prefer this method over just checking to see if the door is null based on ID is because JaGex changes the IDs all the time and there's a new update coming soon where IDs will be dynamic for everyone. Hopefully this will help out some of the newer people or teach others new ways of checking if something is there or not besides just checking to see if its null or not. This can be applied to many objects, not just doors.2 points
-
2 points
-
Simplest Thing Ever. I Love Ya'll In This Community. So Theres a Few Rules. & 2 Winners. WINNERS GET: 1 VIP Voucher 1M OldSchool RSGP (or 10M eoc) How It Works?: 1) Post The Form & Fill It Out 2) Star My Profile 3) Posts Stop August 11th/2013. 4) LIMIT: One Post Daily. 5) Will Use a Number Generator & Count Forum Posts. GOOD LUCK RULES: Write 1 thing why OSBOT Is Awesome. Who's your Fav Mod/Forum Mod? And Last but not least. Rap or Metal Music. Only Aloud To Post ONCE DAILY. (you can easily copy and paste the form below and submit it daily) CONTEST ENTERY: Why OSBOT is Awesome: My Favourite Mod/Forum Mod Is: I Prefer (Rap/Metal/Other):1 point
-
1 point
-
1 point
-
Why is random solvers local and not remote scripts? makes no sense to me as it would be 10x easier to edit the randoms as they change all the time.1 point
-
I became annoyed at typing sleep x + gRandom(y,z); so I wrote this so you can simply enter three values (you can change it to more) and it will randomize the sleep method furthermore. Not only that, instead of having to type out your sleep every time, you just type: Sleep(); Here's the code: private boolean dynamicBase; int s0 = 750; // Base value int s1 = 0; double s2 = 0; public void subSleep() throws InterruptedException { sleep(s0 + gRandom(s1, s2)); } public void sleep() throws InterruptedException { Random sleepRandom = new Random(); switch (random(1, 3)) { case 1: if (dynamicBase) { s0 = sleepRandom.nextInt(500); } s1 = sleepRandom.nextInt(1000); s2 = 250 + (1500 - 500) * sleepRandom.nextDouble(); subSleep(); case 2: if (dynamicBase) { s0 = sleepRandom.nextInt(100); } s1 = sleepRandom.nextInt(250); s2 = 500 + (800 - 200) * sleepRandom.nextDouble(); subSleep(); case 3: if (dynamicBase) { s0 = sleepRandom.nextInt(45); } s1 = sleepRandom.nextInt(250); s2 = 500 + (800 - 200) * sleepRandom.nextDouble(); subSleep(); } } Pretty much, your sleep is now: randomBase(optionally) + randomint(randomint + (randomint(randomint)) + (randomDouble(randomDouble))) Making your sleeps math-ambiguous.1 point
-
No problem :P I feel you didn't understand the test: If the light switch was already down, keeping it down is still an option. All I was trying to say was it needs a semi-dynamic base that the user can manipulate.1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
Obviously you're trying to get some refund if you will get ''hacked by OSBOT''. If you can send us proof of your evidence of finding that "threat" ? Let one of us teamvieuw you, and do a new scan because you're accusing OSBot of things they haven't done. Think before you speak!1 point
-
I wouldnt recommend LoL, the community in this game is beyond your imagination, people wish cancer upon your mom etc. I quit after playing it for almost 3 years, not because of the game but because of the people playing it.1 point
-
I dont know why you find it stupid , everybodys humour is different and litteraly ur the child right here with that attitude cause adults with that attitude is rare, rare means psycho motherfucker We all know it is because he must lack in the genitalia... it must be.1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
Why OSBOT is Awesome: Because you joined My Favourite Mod/Forum Mod Is: ely I Prefer (Rap/Metal/Other): Rap1 point
-
Why OSBOT is Awesome: Occazn is in it My Favourite Mod/Forum Mod Is: Occazn I Prefer (Rap/Metal/Other): Occazn1 point
-
Why OSBOT is Awesome: Best 07rs bot and forum is growing My Favourite Mod/Forum Mod Is: I'm still pretty new at here so dunno I Prefer (Rap/Metal/Other): House & techno1 point
-
Why OSBOT is Awesome: One of the few. if any, working free Bot Clients for old school. My Favourite Mod/Forum Mod Is: Smart. Very Smart I Prefer (Rap/Metal/Other):Alt Rock, Hip hop, RB,1 point
-
Part 3 up! Hello, Part 2 is up! I'm going to make some English OSBot programming tutorials. I'm not very experienced and will also learn in the process of making this videos. Currently making a woodcutting bot which will chop anywhere on anything. Suggestions for the next script? Leave a comment! Part 1 - Setting up Eclipse: Woodcutting script:1 point
-
Google "Official Java Tutorials." That's how I learned. Wrong category btw.1 point