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.

trainux

Members
  • Joined

  • Last visited

Everything posted by trainux

  1. oh! interesting are NPC. Thank you all.
  2. attempt to interact in the following way: RS2Object fish_pot = getObjects().closest("Fishing spot"); fish_pot.interact("Small Net"); and I get the following error: [ERROR][Bot #1][05/09 02:23:35 PM]: Error in script executor! java.lang.NullPointerException at Scripts.Bot.onLoop(Bot.java:479) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ph:114) at java.lang.Thread.run(Unknown Source)
  3. solved, thanks to everyone, I was acting like an idiot.
  4. Solved, thank you.
  5. According to what I have read, and I understand, it is the following: NPC bank_booth = getNpcs().closest(6943); bank_booth.interact("Bank"); But this hangs the bot and I have to close it forcibly. Attach the image of the error shown in consolta by osbot.org.
  6. Thanks. int str = getSkills().getDynamic(Skill.STRENGTH); RS2Widget modeStr = getWidgets().get(593,7); int atk = getSkills().getDynamic(Skill.ATTACK); RS2Widget modeAtk = getWidgets().get(593,3); int def = getSkills().getDynamic(Skill.DEFENCE); RS2Widget modeDef = getWidgets().get(593,15); int config = getConfigs().get(43); if(str < 13) { getTabs().open(Tab.ATTACK); sleep(1000); if(config!=1) { modeStr.interact("Slash"); sleep(random(3000,7000)); } getTabs().open(Tab.INVENTORY); }else if(atk < 13) { getTabs().open(Tab.ATTACK); sleep(1000); if(config!=0) { modeAtk.interact("Chop"); sleep(random(3000,7000)); } getTabs().open(Tab.INVENTORY); }else if(def < 13) { getTabs().open(Tab.ATTACK); sleep(1000); if(config!=3) { modeDef.interact("Block"); sleep(random(3000,7000)); } getTabs().open(Tab.INVENTORY); }else { getTabs().open(Tab.ATTACK); sleep(1000); if(config!=1) { modeStr.interact("Slash"); sleep(random(3000,7000)); } getTabs().open(Tab.INVENTORY); } Declare widgets and interact with them.
  7. Now what do I do with that information? I really apologize for my ignorance.
  8. Ok, I understand that changing the tab is simple: getTabs().open(Tab.ATTACK); The part that I do not understand is the "widget", so far I do not know how they are used for more than I look for examples, I do not know what I'm confusing.
  9. I understand that to obtain the current option is like this: getConfigs().get(43) Knowing that the ways to use are the following: 0 - Attack 1 - Strength 3 - Defense How do I order the change of this configuration? Many thanks to anyone who can help me.
  10. wow! in 2 lines! thanks thanks. Is there a disadvantage to using this? It seems very good to be true.
  11. Any idea why this error? Thank you in advance for this tool.
  12. I was just looking at that tool, but it gave me an error that I do not know
  13. Example being in the position Position lumbridge = new Position (3222, 3218, 0); to the position Position chicken = new Position (3177, 3295, 0); Or do you have to indicate, manually, position to position until you reach the place? First of all, Thanks.
  14. Thanks, solved.
  15. Following the class in the API, would it be something like this? public void onPaint(Graphics g) throws java.lang.InterruptedException { Graphics2D gr = (Graphics2D)g; gr.setColor(Color.WHITE); gr.setFont(new Font("Arial", Font.PLAIN, 10)); gr.drawString("Script Choop", 25, 50); } I do not understand why it is not shown. Should I call him at some point? First of all, Thanks.
  16. Thanks, solved.
  17. Successful tree felling counter Attempt to capture the logging by capturing the chat message that says "You get some logs." as follows: public void onMessage(String message){ if(message.contains("You get some logs.")){ logsChooped++; } } But I can not capture the events of the chat, I do not understand how to initialize that function and that it keeps capturing the messages for that counter. Thank you in advance and if there is a more ethical solution, I would appreciate the information.
  18. I am in an area cutting trees, but in a moment the camera is left in a direction where there are no trees, then it remains without doing anything. The tree I have declared it in the following way: final RS2Object tree = objects.closest ("Tree"); And to move the camera try the following: Camera camera = new Camera (); camera.toEntity (tree);
  19. Sorry for the length of the title, but do not find the problem itself. package woodcutter; import java.awt.Graphics; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "TrainuX", info = "to learn", name = "WC Test", version = 0.1, logo = "") public class wc extends Script{ final Area area1 = new Area(3097, 3112, 3087, 3100); public void interactCustom(Entity entity, String action){ if(entity.isVisible()) entity.interact(action); else getCamera().toEntity(entity); } @Override public void onStart(){ log("Start!"); } @Override public int onLoop() throws InterruptedException{ log("Running..."); NPC npc1 = npcs.closest(3308); Player player = myPlayer(); if(area1.contains(player)) { log("Talk to NPC"); interactCustom(npc1, "Talk-to"); }else{ log("Not here"); } return 0; } @Override public void onExit(){ log("Stop!"); } public void onPaint(Graphics g){ } } According to everything I've read, everything is well stated and I enclose the log messages
  20. How do I move the mouse a position (specifying the X and Y coordinates) and then do a right click? Example: X = 256 Y = 282 My purpose is to click on the accept button at the beginning of the tutorial (attach the image). If there is a simpler solution. I would appreciate the information. Thank you.
  21. @GPSwap ok if everything goes well with the development of the code, without a doubt, I will pay the VIP. Thank you. Greetings.
  22. @DeadPk3r I was using a script in another Bot, when I executed it I sent a message that I must pay the VIP, otherwise it would stop after 2 hours, it was like that, it stopped after 2 hours. Ok then I paid the VIP told me that I should be Script Writer. Is it the same or should I just pay the VIP? Or for a script of mine do I need to pay VIP?

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.