Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TheGreatests

Java Lifetime Sponsor
  • Joined

  • Last visited

Everything posted by TheGreatests

  1. Sounds good, I might be using a node structure for this soon. I just dont got time atm.
  2. Uhh, having endless struggles with my damn code. If anyone has any time, the issues ive been running with is 1. First code( Script accepted everything, and went through the loop fine. However once it accepted it would lag out to 56% CPU 2. Second Code(Script accepted everything, and went through the loop fine. However once a second trade was iniated, it would get stuck in the TradeAccept() method. 3. I got to this last editting, and it is now not starting. If anyone can give me a good code structuor to go with would help me. Got a headache, and going to bed but will be on tomorrow!. Code - import org.osbot.rs07.script.ScriptManifest; import java.awt.*; import java.lang.String; import java.text.Normalizer; import org.osbot.rs07.api.Bank; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.script.Script; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.api.ui.RS2Widget; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.api.ui.Tab; import javax.swing.*; @SuppressWarnings("unused") @ScriptManifest(author = "Elvis", info = "Muler V2.7", name = "Mule Trader V2.7", version = 2.7, logo = "Trades your miner to collect the profit!") public class ClayMule extends Script{ private final Area TRADING_AREA = new Area(3185, 3437, 3181, 3434); private int claycount; private int clay = 435; private State state = State.STARTIT; private long elapsed; private String log; private boolean isRunning = true; private int world; private boolean condition; Player player = players.closest("Mule_name"); private enum State { Wait, TradeAccepted, STARTIT,Trade } @[member=Override] public int onLoop() throws InterruptedException { switch(state) { case Wait: Wait4Player(); break; case Trade: Trade(); break; case TradeAccepted: TradeAccept(); break; case STARTIT: STARTIT(); break; } return random(120, 160); } @[member=Override] public void onStart() { isRunning = true; random(18, 32); world = worlds.getCurrentWorld(); Thread runTimeThread = new Thread() { @[member=Override] public void run() { try { RunTime(); } catch (Exception e) { log(e.getMessage()); } } }; runTimeThread.start(); } private void Wait4Player() throws InterruptedException { Player player = players.closest("Mule_name"); if(player.isInteracting(myPlayer())){ log= "We detected that our mule is trading us"; condition = true; log=("Our mule has activated one of our conditions to trade"); state =State.Trade; log=("Switching to trade method"); return; } state = State.TradeAccepted; } private void TradeAccept() throws InterruptedException { //if(isTrading()) { if(trade.isFirstInterfaceOpen()) { //log=("We are in the first trade interface"); //if(!trade.offer(435, inventory.getItem(clay).getAmount())) return; log=("We are in the first trade interface"); sleep(880, 1350); RandomizeMouse(); RandomSleep(); trade.acceptTrade(); sleep(1200, 2300); RandomizeMouse(); log=("Accepted first trade interface"); while(isTrading() && !trade.didOtherAcceptTrade()); } if(trade.isSecondInterfaceOpen()) { RandomSleep(); trade.acceptTrade(); sleep(150, 300); RandomizeMouse(); log=("Accepted second trade interface"); while(isTrading() && !trade.didOtherAcceptTrade()); Wait4Player(); } // STARTIT(); // } } private void Trade() throws InterruptedException { sleep(1600, 2500); //if(isTrading()) { // log=("We are trading"); // TradeAccept(); // } //else { if(getWorlds().getCurrentWorld() != 383) { log=("Detected we are in not in the world of our mule, hopping to world"); worlds.hop(383); sleep(8*1000, 14*1000); return; } if(!TRADING_AREA.contains(myPlayer())) { log=("Moving to trade area"); MoveToZone(TRADING_AREA); sleep(880, 1350); return; } //Player player = players.closest("MuleName"); lets try this if(player != null && condition == true) { if(!player.isVisible()) camera.toEntity(player); sleep(650, 2450); player.hover(); sleep(400, 850); if(player.interact("Trade with")) { log=("Trading with Mule"); condition = false; log("Our condition is now false, until mule trades us again"); sleep(1250, 1650); RandomizeMouse(); sleep(4500, 6500); return; } } } //} private void STARTIT() throws InterruptedException { log=("Idling until our mule activates us..."); state = State.Wait; return; } @[member=Override] public void onExit() { isRunning = false; log="We are finished"; } @[member=Override] public void onPaint(Graphics2D g) { claycount = (int) inventory.getAmount(434); int x = getMouse().getPosition().x; int y = getMouse().getPosition().y; g.drawLine(0, y, 765, y); g.drawLine(x, 0, x, 503); DrawUpdate(g); } private void DrawUpdate(Graphics2D g) { g.setColor(new Color(0, 0, 0, 80)); g.fillRect(4, 280, 512, 58); g.setColor(Color.white); g.setFont(new Font("Consolas", Font.PLAIN, 12)); g.drawString("RunTime: " + GetRunTime(), 14, 300); g.drawString("Clay traded over " + claycount, 170, 300); g.drawString("Status: " + log, 219, 325); } private void RunTime() throws InterruptedException { long startTime = System.currentTimeMillis(); while(isRunning) { elapsed = (System.currentTimeMillis() - startTime); sleep(1000); } } /*private void LaunchGUI() { } private void CloseGUI() { } */ private void sleep(int min, int max) throws InterruptedException { sleep(random(min, max)); } private String GetRunTime() { long hours = (elapsed / (1000 * 60 * 60)) % 24; long minutes = (elapsed / (1000 * 60)) % 60; long seconds = (elapsed / 1000) % 60; return String.format("%02d:%02d:%02d", hours, minutes, seconds); } private void MoveToZone(Area zone) throws InterruptedException { walking.webWalk(zone.getRandomPosition()); } private boolean isTrading() { return trade.isCurrentlyTrading(); } private boolean isInRadius(NPC npc) { Player me = myPlayer(); int x = me.getX(), y = me.getY(); return new Area(x + 1, y + 1, x - 1, y - 1).contains(npc); } private void RandomizeMouse() { switch(random(0, 5)) { case 0: mouse.moveRandomly(); break; case 1: mouse.moveOutsideScreen(); break; case 2: mouse.moveSlightly(); break; } } private void RandomSleep() throws InterruptedException { switch(random(0, 5)) { case 0: sleep(650, 1250); break; case 1: sleep(1450, 2050); break; case 2: sleep(2250, 2850); break; case 3: sleep(3050, 3850); break; } } }
  3. Used - Player player = players.closest("Mule name!"); if(player.isInteracting(myPlayer())){ log= "We detected that our mule is trading us"; condition = true; Thinking this will be fine, I have a Wait4Player Method that returns a state also. - State that starts the trade/ EDIT: The first code structure I had was nearly using 50 of the CPU power, I just reconstructed the code, and now I am at 6%. Glad I am getting back to the programming I use to be on.
  4. Anyone know any good ways to properly code a widget to look for the "someone wishes to trade with you" dialog?
  5. Can you also add the imports. I keep getting issues, such as e needing to be a variable.
  6. Im catching up at it again, up to whoever if they wanna get some cash... i'll probably be all golden within a few days so whoever actually wants to make money let me know.
  7. Yea thats cool, you guys down to teach me a few things or did you guys get on my topic for fun? Got the cash, just need somebody with the time and experience.
  8. hahaha ;) ;) No I got pictures/eclipse logs though, just need to pick up again at everything. Its not easy remembering everything and anything. Considering alot of things has happened in my life that would put most people in a blind sight of view towards memory.
  9. Looking to hire a scripter who is experienced, and would be able to teach me the features he uses, and how he uses it. I have btc, so its straight cash, no refunds, no hassles. Wont pay first, the only way we will do it is with a MM, I was a MM at a different site but forgot my username, and pass. I had 370+ FB, and was a VMM. (Offsite mentions hidden)
  10. Do you have some time to give me a few logic pointers. I am starting to script up again, ive had previous experience. (First Advertising other bots isn't allowed. tab maker) but I forgot all about it. Started to direct my life towards other things so I seriously forgot almost everything and anything.
  11. Sent, enjoy! and give fb! PowerUser I am not able to Pm you. I guess you can only Pm once every hour?
  12. I'll have to get one more for you. Give me 10 minutes, I need to set it up in network
  13. Pmed your free proxy!! Enjoy! --->Please give me a nice feedback! Enjoy your free proxy!!, when you're all set and ready give me a nice feedback on the service! EDIT: for some strange reason it will not let me PM you until 2:15AM my time, which is in 45 minutes. Do you have any other ways of communication?
  14. Hello, I am thegreatests I am here to offer my proxies services to you. These proxies are from a business I own which are private, and typically last quite awhile. Below are the prices for the proxies, the first 3 get a proxy free for vouches/ feedbacks. Prices: 1 Proxy = 2.00 2 Proxies = 3.50 3 Proxies = 4.50 4 Proxies = 4.00!!! After 4 the proxies are at 1.00! Contact me on here please as I am only doing business here on the market, and or will soon get skype soon as my system is configured correctly.
  15. Hello everyone, I am selling elite sock 5 proxies servers. Pricing = 1 Proxies is $1.50/ 2 proxies - $2.00, unfortunately the lowest I can go currently is only 1.00. These proxies last for 3 weeks and are very fast comparison to others of the price range. If you would like to try one please get ahold of me, I will give the first 3 out for free and the rest will be to the listed price. Contact on me, currently will only be doing PM's on the market. I will be getting skype soon as my system is fully set up and everything is configured correctly.
  16. Mind if I modify it? Would you happen to have the source. I dont wanna extract the .jar file
  17. Looking to purchase a proxy. Do you accept RSGP?
  18. Nah bro im sorry, BTC is value.. its nearly the value of straight cash. No charge backs, no issue selling it.. thank you though
  19. buying 5 mill for 5$ in btc!!
  20. Looking to buy credits with btc. Or Mills for 1/ 1.00$ in btc
  21. Looking to buy some vouches, do you accept BTC>? or just mills, cuz I got both.
  22. Thanks for the free trial, sucks I didnt know I was IP banned. Literally banned in 2-4 hours after botting.
  23. NVM fixed.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.