Everything posted by TheScrub
-
Simple Irc bot
started this 25 mins ago using this for twitch.tv will be adding more options on the interfaces later! using the pircbot api for irc bots the password is http://www.twitch.tv/amclay?chat_debug=true%29 include the "oauth:" as the password example oauth:123xa13213d12e2112e this would be you're password channel Download link will release source later: http://adf.ly/WJeA4
-
Search Bank
that's fine mate it's just a snippet i added some useless shit now that the banking api is up but meh
-
Official Progress Report Thread!
using some one else's house
-
Official Progress Report Thread!
just got this pic l adamant pickaxe
-
My Sdn Request
I know that but i have not gotten a reply to my forum thread for over 7 days
-
My Sdn Request
This is my first time reading about this, I never saw his old thread, so at least it's raising awareness for one person, possibly more. There isn't a need to bash people like this. only admins can see sdn requests on that section of the fourms He's trying to make aware the issue about a inactive administration team which solely comprises of Laz and Zac who mostly just work on osbot 2 or who knows what. The main admin hasn't been active for who knows how long. this..
-
My Sdn Request
So I've posted a request to get a script up on the sdn I've talked to admins on the chat like zach,raf and even added raf on skype but raf can't do sdn uploads and to top that off the forum thread i've put up on the section has had 0 views,0 reply's in over 7 days from the admins
-
BETA v1.7.39
java.lang.NullPointerException at org.osbot.script.rs2.ui.Bank.getCurrentScrollContainer(bi:721) at org.osbot.script.rs2.ui.Bank.isSlotVisible(bi:720) at org.osbot.script.rs2.ui.Bank.scrollToSlot(bi:802) at org.osbot.script.rs2.ui.Bank.withdrawSlot(bi:825) at org.osbot.script.rs2.ui.Bank.withdraw(bi:412) at org.osbot.script.rs2.ui.Bank.withdrawX(bi:246) Using the Banking api will not scroll down the bank anymore
-
Search Bank
Using colours to withdraw is pretty crude but it is one of the ways to work around this..
-
Search Bank
thanks for writing some methods sorry i would of wrote some withdrawing but i've been at school
-
Search Bank
turning this into a class and adding more methods
-
Search Bank
just updated it so it will use colour to detect the text and the * looks on all brightness's and public chat won't impact it
-
Search Bank
i like to use a while loop for sleeps but i don't like to use it in snippets obviously you can add sleeps... While loops are bad... please enlighten me why so? Because they have so many flaws. What if your bot gets stuck in a while loop whilst the evil chicken pwns ur ass? having something like that can counter getting stuck in a while loop as it will break out the while loop after 3000ms long t = System.currentTimeMillis(); while (boolean x && (System.currentTimeMillis() - t) < 3000) { sleep(20); }
-
Search Bank
i like to use a while loop for sleeps but i don't like to use it in snippets obviously you can add sleeps... While loops are bad... please enlighten me why so?
-
Search Bank
i like to use a while loop for sleeps but i don't like to use it in snippets obviously you can add sleeps...
-
Search Bank
tested search and bankIsOpen import org.osbot.script.Script; import org.osbot.script.rs2.ColorPicker; import org.osbot.script.rs2.ui.RS2InterfaceChild; public class Bank { Script script; public boolean bankIsOpen() { if (script.client.getInterface(12) != null) { RS2InterfaceChild searchbutton = script.client.getInterface(12) .getChild(20); if (searchbutton != null && searchbutton.isVisible()) { return true; } } return false; } public static void searchBank(String item) throws InterruptedException { RS2InterfaceChild button = Context.script.client.getInterface(12) .getChild(20); if (button != null) { button.interact("Search"); } ColorPicker text = new ColorPicker(Context.script.bot); if (text.colorAt(260, 431).getBlue() > 0 && text.colorAt(294, 403).getBlue() == 0) { Context.script.client.typeString(item); } } public static void depositInventory() throws InterruptedException { RS2InterfaceChild button = Context.script.client.getInterface(12) .getChild(22); if (button != null) { button.interact("Deposit inventory"); } } public static void depositWornItems() throws InterruptedException { RS2InterfaceChild button = Context.script.client.getInterface(12) .getChild(24); if (button != null) { button.interact("Deposit worn items"); } } private static Rectangle returnRectangle(int minX, int minY, int maxX, int maxY) { int height = maxY - minY; int width = maxX - minX; Rectangle r = new Rectangle(minX, minY, width, height); return r; } private static Point centrePointOfRectangle(int minX, int minY, int maxX, int maxY) { int centreGapY = (maxY - minY) / 2; int centreGapX = (maxX - minX) / 2; int Y = minY + centreGapY; int X = minX + centreGapX; Point centre = new Point(X, Y); return centre; } /* * only works for the first top four slots of the bank * you will need the brightness to be on the right colour * any other withdrawing can be done using the select option method * */ public static void withdrawOne(int green, int red, int blue) throws InterruptedException { ColorPicker bankitem = new ColorPicker(Context.script.bot); Point slot1 = (centrePointOfRectangle(74, 73, 102, 97)); Point slot2 = (centrePointOfRectangle(122, 73, 147, 97)); Point slot3 = (centrePointOfRectangle(170, 73, 192, 97)); Point slot4 = (centrePointOfRectangle(218, 73, 237, 97)); Point row[] = { slot1, slot2, slot3, slot4 }; for (Point p : row) { if (bankitem.colorAt(p.x, p.y).getRed() == red && bankitem.colorAt(p.x, p.y).getBlue() == blue && bankitem.colorAt(p.x, p.y).getGreen() == green) { Context.script.client .moveMouse( new RectangleDestination(new Rectangle( returnRectangle(p.x - 22, p.y - 22, p.x + 22, p.y + 22))), true); if (returnRectangle(p.x - 22, p.y - 22, p.x + 22, p.y + 22) .contains( Context.script.client.getMousePosition() .getLocation())) { Context.script.client.clickMouse(false); } } } } public static void logColours() throws InterruptedException { ColorPicker bankitem = new ColorPicker(Context.script.bot); if (Context.script.client.getInterface(12) != null) { RS2InterfaceChild searchbutton = Context.script.client .getInterface(12).getChild(20); if (searchbutton != null && searchbutton.isVisible()) { Point slot1 = (centrePointOfRectangle(74, 73, 102, 97)); Point slot2 = (centrePointOfRectangle(122, 73, 147, 97)); Point slot3 = (centrePointOfRectangle(170, 73, 192, 97)); Point slot4 = (centrePointOfRectangle(218, 73, 237, 97)); Point row[] = { slot1, slot2, slot3, slot4 }; for (Point p : row) { Context.script.log(" " + "Red " + bankitem.colorAt(p.x, p.y).getRed()); Context.script.log("Blue: " + bankitem.colorAt(p.x, p.y).getBlue()); Context.script.log("Green: " + bankitem.colorAt(p.x, p.y).getGreen()); } } } } }
- Teamspeak
-
buying lvl 65+ construction account
whats the status of getting it on the SDN? no reply from skype or forums yet...
-
buying lvl 65+ construction account
lol tab making with the +2 from tea for best lectern...
-
Bot download issue.
does you're laptop have jdk installed on it?
-
GetFirstBankItem
thanks i didn't know they updated the bank api to get item by name if you check my older snippets... thanks though!
-
Top Underrated Rappers out right now!
just updated my list with 5-6 more artists! and no i am not talking about sandwich artists!
-
Top Underrated Rappers out right now!
it's not really a comp it's more of a collection of all underrated rap/hip hop he's pretty good nice flow
-
Top Underrated Rappers out right now!
yer schoolboy q is dope i just didn't want to mention many people that were on the xxl mag cover
-
Top Underrated Rappers out right now!
Don't care for them at all. But TheScrub I Love it all man if shit like that were to get played on the radio I think this Generation might stand a chance.. But hey it least they got there... yer when i go to school or when i go out and people are playing some music i'm like wtf is this shit there like i can't believe you haven't heard it... when it's complete garbage fuck mainstream radio luckly in aus we got some real radio channels.. (not many though)