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.

Fuz

Trade With Caution
  • Joined

  • Last visited

  1. Fuz replied to Fuz's topic in Archive
    I'll be updating this along with my Fight Caves script tonight.
  2. Fuz replied to SolaceCoding's topic in Archive
    Good guide, but this is in the wrong section. This thread should be in the "Tutorials" or "Programming" section.
  3. Fuz replied to Fuz's topic in Archive
    Please read the appropriately named "Tutorials" part of the "General" section of the forum. This is not a help thread.
  4. Fuz replied to Fuz's topic in Archive
    No, I'm waiting for the getHealth hook to be added.
  5. Fuz replied to haumeris's topic in Guides
    There is a tutorial in the appropriately named "Tutorials" section of the forum. Here is the link: http://osbot.org/forum/topic/386-simple-guide-on-how-to-use-osbot/ Also, please post in the correct forum next time.
  6. Fuz replied to Fuz's topic in Archive
    You're supposed to put the name of the NPC(s) to attack, case insensitive. If using multiple NPCs, use the format "npcname1,npcname2"
  7. Fuz replied to Fuz's topic in Archive
    Oh right, that really confused me :L
  8. Fuz replied to Fuz's topic in Archive
    What on earth? The code for eating isn't there, how can it even be trying to eat? :L
  9. Fuz replied to Fuz's topic in Archive
    I just made a quick update, should have fixed most of those problems. Also, how did you get food to work? I haven't added eating :L
  10. Fuz posted a topic in Archive
    FuzzyAutoFighter v1.1 Instructions: - Save script as "FuzzyAutoFighter.groovy" - Place in: -> %userprofile%/osbot/scripts (Windows) -> /home/osbot/scripts (Mac/Linux) - Launch bot -> Log in -> Position your character wherever you like - Open script selector -> Click "Reload" -> Select "FuzzyAutoFighter" -> Click "Start" Changelog: - v1.0 -> Initial release. Features: - Selection GUI -> User can select NPCs, loot and food (Food currently not working) // -- No GUI yet -> coming soon (When Java support is added) // - GUI // -> Shows experience and tokkul gained (and average hourly rates) Planned features: - GUI -> Exp/loot gains with hourly rates - NPC clicking - Food support -> Food is selectable by the user (Will be fixed in next client update) - Loot support -> Looting not currently working, will fix later on Known bugs: - None! Script: import org.osbot.script.ScriptManifestimport org.osbot.script.rs2.map.Positionimport org.osbot.script.rs2.model.GroundItemimport org.osbot.script.rs2.model.Itemimport org.osbot.script.rs2.model.NPCimport javax.swing.*import java.awt.*import java.awt.event.ActionEventimport java.awt.event.ActionListener@ScriptManifest(name = "FuzzyAutoFighter", author = "Fuz", version = 1.0D, info = "Superior AIO Autofighter")public class FuzzyAutoFighter extends org.osbot.script.Script { private NPC npc; private Position npcTile; public int foodId; public ArrayList<String> npcNames = new ArrayList<String>(); public ArrayList<Integer> itemIds = new ArrayList<Integer>(); private final Filter<NPC> NPC_FILTER = new Filter<NPC>() { @Override boolean accept(NPC npc) { for (String s : npcNames) if (npc.getName().toLowerCase().contains(s.toLowerCase())) return npc.getFacing() == null; return false; } } private FighterGui gui; @Override void onStart() { gui = new FighterGui(this); } @Override int onLoop() { if (itemIds.size() < 1 || npcNames.size() < 1) return 1000; if (!client.inventory.contains(foodId)) stop(); if (!client.myPlayer.isAnimating() && (client.myPlayer.getFacing() == null || client.myPlayer.getFacing() != npc) && !client.myPlayer.isMoving()) { if ((npc = closestNPC(NPC_FILTER)) != null && !npc.isAnimating() && npc.getFacing() == null) { npcTile = npc.getPosition(); if (!selectEntityOption(npc, "Attack") && distance(npc) < 5) client.moveCameraToEntity(npc); } } return 500; } @Override void onPaint(Graphics g) { } private NPC closestNPC(Filter<NPC> f) { NPC npc = null; for (NPC n : client.localNPCs) if (n != null) if ((npc == null || distance(n) < distance(npc) && f.accept(n))) npc = n; return npc; } interface Filter<T> { public boolean accept(T element); }}class FighterGui extends JFrame { private static final int WIDTH = 180; private static final int HEIGHT = 20; FuzzyAutoFighter script; JPanel panel; JLabel npcNamesLabel; JTextField npcNames; JLabel itemIdsLabel; JTextField itemIds; JLabel foodIdLabel; JComboBox<String> foodIds; JButton startButton; public FighterGui(final FuzzyAutoFighter script) { this.script = script; setTitle("FuzzyAutoFighter"); this.setDefaultCloseOperation(HIDE_ON_CLOSE); panel = new JPanel(); setContentPane(panel); panel.setLayout(new FlowLayout()); npcNamesLabel = new JLabel("NPC names (Separate with ","):"); npcNames = new JTextField("goblin,cow"); npcNames.setPreferredSize(new Dimension(WIDTH, HEIGHT)); itemIdsLabel = new JLabel("Item IDs (Separate with ","):"); itemIds = new JTextField("996,4151"); itemIds.setPreferredSize(new Dimension(WIDTH, HEIGHT)); foodIdLabel = new JLabel("Food:"); Vector food = new Vector(); for (Item i : script.client.inventory.getItems()) { if (i != null) { String s = i.getId() + " (" + script.client.inventory.getAmount(i) + ")"; if (!food.contains(s)) food.add(s); } } final DefaultComboBoxModel model = new DefaultComboBoxModel(food); foodIds = new JComboBox<String>(model); startButton = new JButton("Apply"); startButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String SEPARATOR = ","; if (npcNames.getText().contains(SEPARATOR)) { script.npcNames.add(npcNames.getText()); } else { for (String s : npcNames.getText().split(",")) { while (s.startsWith(" ")) s = s.substring(s.indexOf(" ")) script.npcNames.add(s); } } if (itemIds.getText().contains(SEPARATOR)) { script.itemIds.add(itemIds.getText()); } else { for (String s : itemIds.getText().split(",")) { while (s.startsWith(" ")) s = s.substring(s.indexOf(" ")) script.itemIds.add(s); } } //script.log(foodIds.getSelectedItem().toString().split(" ")[0]); script.foodId = Integer.parseInt(foodIds.getSelectedItem().toString().split(" ")[0]); setVisible(false); } }); panel.add(npcNamesLabel); panel.add(npcNames); panel.add(itemIdsLabel); panel.add(itemIds); panel.add(foodIdLabel); panel.add(foodIds); panel.add(startButton); pack(); setResizable(false); setVisible(true); }} Please report any bugs, post proggies (1h+) if possible
  11. Fuz replied to Chuckle1's topic in Archive
    Welcome, Chuckle. Gonna go for the equivalent of 1b/day like on p****bot?
  12. Fuz replied to Fuz's topic in Archive
    Can't seem to fix the problem with it not loading. Will update when it's fixed. Sorry for the delay guys. Edit: The problem seems to be related to the fact the script (and API) is packaged.
  13. Fuz replied to Fuz's topic in Archive
    Ok, I found the problem (thanks to Peter). The problem was the packaging so I'll have to upload all the required classes in one file :L Ah well, at least it works now (hopefully). Enjoy.
  14. Fuz replied to Fuz's topic in Archive
    Update: Scripts don't seem to be loading in the bot, thus I am unable to test the script. I won't be uploading until it's tested, and I an unsure of when this will be sorted (A few people have reported the same problem)
  15. Fuz replied to Fuz's topic in Archive
    I have a really strong/passionate interest for Norse Paganism/Mythology. On topic: Script shouldnt take long to finish. I'm currently eating but shouldnt take more than 30 minutes (I'm also converting my API)

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.