Jump to content

sonda

Members
  • Posts

    95
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by sonda

  1. I’m sure it’s my fault, I never turn my computer off. Never. i don’t know what you mean by replacing a 1on1 copy to be honest ? i have an old dell laying around, assuming the hard drives are interchangeable I can try this, I don’t know anything about working on computers. I can change out sticks of ram and a graphics card, that’s about the extent of if.
  2. Is that usual? I’ve been putting off updating my computer when it pops up, because if it ain’t broke don’t fix it , amirite? - and they always make things worse... When I started up my computer today everything was fine for about 20 seconds. It froze and an error popped up , something along the lines of “critical process died” , upon restarting i received the error of “hard drive not found or recognized” or something along those lines. Really bummed, I’m hoping it’s just something easy , update related. Ive tried to do a system recovery, but it is not able to finish the process. I don’t know what to do from here Any input ,suggestions , or advice?! dell xps 8150 Windows 10
  3. What was the quick fix for rs2object when the redline last we’re under it? May just need to right click it and create a field. Edit, did you import - import org.osbot.rs07.api.model.RS2Object; ?, judging by what you posted - you did not. If not, change it back to rs2Object and right click it, select the import option. I am also learning and apa has helped me immensely, i will try to do my best to pay it forward when i can!
  4. I kind of just look around at everybodies post to see how they do things, the issues they have, and what the solutions are. I’m also new and in the process of learning. Every now and then I see something like this and it just makes me Idk if it’s the learning curve, but it’s fairly difficult to grasp some of the things that are talked about around here! Lol some people are posting long codes about foreign concepts like Gaussian things and what not - meanwhile I’m over here if(grounditem.closest(“bones”)!=null){grounditem.closest(“bones”).interact(“take”);}
  5. More specifically npcs.getAll(“al-kharid warrior”); does not work the same as closest, what am I doing wrong ?
  6. Yea, I seen that in the api and I tried using it - but I don’t properly know how to I guess.
  7. How would I go about selecting all of the nearby same npcs or geounditems , specifically - I want to drawmodel of all of the al-Kharid warriors && arrows on the ground currently I’m using npcs.closest(“al-Kharid warrior”) and the same for the ground items and it works great and all but it only selects (obviously) the closest to me. When two are the same distance away it just jumps between both.
  8. This gets stuck at the very first npc, when he asks if you’ve ever played before - doesn’t answer the questions just talks to him again and starts the dialogue over. - for me anyways
  9. Is range a must? I have a 40 atk 60 str 1 def. I'm not going to ask some crazy amount
  10. Worth making some? What are you paying for one? No other stats but mining.
  11. Alright, I've been working at it for hours, i can get my script to work perfectly fine - without the Gui, but ive made loads and loads of changes back and forth trying to get it to work. i cannot figure it out =\ maybe somebody can tell be where am going wrong? The GUI pops up and everything appears to be correct visually. it just doesn't do what i want it to. I can also get it to work great with a Jcombobox i just really prefer the checkbox option for multiple types of gathering at once. I know i'm ignorant when it comes to this, i am very new at it and don't quite have the experience mind set some of you have. but i am willing to try - and learn. package OreLooter; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.GroundItem; import java.awt.*; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import javax.swing.JCheckBox; @ScriptManifest(author = "Brian", info = "Orelooter", name = "Orelooter", version = 0, logo = "") public class OreLooter extends Script implements ItemListener { static Object lock = new Object(); public gui gui = new gui(); private long copperoreCollected; private long prevInvCount; private long timeBegan; private long timeRan; private long hph; JCheckBox Clay = new JCheckBox("Clay"); @Override public void onStart() { gui.run(this); prevInvCount = getInventory().getAmount(436); timeBegan = System.currentTimeMillis(); } private enum State { COLLECT, FULL, WALK, WAIT } private State getState() { Area MINE = new Area(3232, 3143, 3221, 3149); if (inventory.isFull()) return State.FULL; if (!inventory.isFull() && MINE.contains(myPlayer())) return State.COLLECT; if (!MINE.contains(myPlayer()) && !inventory.isFull()) return State.WALK; return State.WAIT; } @Override public int onLoop() throws InterruptedException { JCheckBox Clay = new JCheckBox("Clay"); JCheckBox Tin = new JCheckBox("Tin"); JCheckBox Copper = new JCheckBox("Copper"); JCheckBox Iron = new JCheckBox("Iron"); JCheckBox Coal =new JCheckBox("Coal"); if (Coal.isSelected())log("coal is selected"); long invCount = getInventory().getAmount(436); if (invCount > prevInvCount) setCOPPER_ORECollected(getCOPPER_ORECollected() + (invCount - prevInvCount)); prevInvCount = invCount; GroundItem Clayo = groundItems.closest("Clay"); GroundItem Tino = groundItems.closest("Tin ore"); GroundItem Coppero = groundItems.closest("Copper ore"); GroundItem Irono = groundItems.closest("Iron ore"); GroundItem Coalo = groundItems.closest("Coal"); switch (getState()) { case COLLECT: if (Clay.isSelected()) { if (Clayo != null && getMap().canReach(Clayo)) Clayo.interact("take"); } if (Tino != null && getMap().canReach(Tino) && Tin.isSelected()) { log("Tin selected"); Tino.interact("take"); } if (Copper.isSelected()) { log("Searching for Copper"); if (Coppero != null && getMap().canReach(Coppero)) log("Copper selected"); Coppero.interact("take"); } if (Irono != null && getMap().canReach(Irono) && Iron.isSelected()) { log("Iron selected"); Irono.interact("take"); } if (Coalo != null && getMap().canReach(Coalo) && Coal.isSelected()) { log("Coal selected"); Coalo.interact("take"); } sleep(2000); break; case FULL: walking.webWalk(new Position(3209, 3220, 2)); if (bank.isOpen()) { bank.depositAll(); } else { objects.closest("Bank booth").interact("Bank"); } break; case WALK: Area MINE = new Area(3232, 3143, 3221, 3149); walking.webWalk(MINE); case WAIT: } return (random(400, 1500)); } @Override public void onExit() { log("THANKS APAEC FOR ALL THE HELP"); } @Override public void onPaint(Graphics2D g) { hph = (int) (copperoreCollected / ((System.currentTimeMillis() - timeBegan) / 3600000.0D)); timeRan = System.currentTimeMillis() - this.timeBegan; Graphics2D gr = (Graphics2D) g; gr.setColor(Color.WHITE); gr.setFont(new Font("Arial", Font.BOLD, 12)); g.drawString(formatTime(timeRan), 440, 25); gr.drawString("Time:", 400, 25); gr.drawString("" + copperoreCollected, 440, 40); gr.drawString("Ores:", 400, 40); gr.drawString("Ores/h:", 400, 65); g.drawString("" + hph, 450, 65); gr.setColor(Color.YELLOW); g.drawString("Gold/h", 400, 78); g.drawString("" + hph * 37, 450, 78); g.drawString("Gold:", 400, 52); g.drawString("" + copperoreCollected * 37, 440, 52); g.setColor(Color.WHITE); g.drawRect(390, 10, 100, 75); } public String formatTime(long ms) { long s = ms / 1000, m = s / 60, h = m / 60, d = h / 24; s %= 60; m %= 60; h %= 24; return d > 0 ? String.format("%02d:%02d:%02d:%02d", d, h, m, s) : h > 0 ? String.format("%02d:%02d:%02d", h, m, s) : String.format("%02d:%02d", m, s); } public long getCOPPER_ORECollected() { return copperoreCollected; } public void setCOPPER_ORECollected(long COPPER_ORECollected) { copperoreCollected = COPPER_ORECollected; } @Override public void itemStateChanged(ItemEvent arg0) { // TODO Auto-generated method stub } } package OreLooter; import java.awt.Color; import java.awt.Font; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.border.TitledBorder; import javax.swing.JCheckBox; public class gui { /** * @wbp.parser.entryPoint */ @SuppressWarnings("static-access") public void run(OreLooter main) { JFrame jFrame = new JFrame("OSBOT GUI Tutorial"); jFrame.setSize(300, 500); jFrame.setResizable(false); JPanel settingsPanel = new JPanel(); settingsPanel.setBackground(Color.DARK_GRAY); settingsPanel.setForeground(Color.DARK_GRAY); TitledBorder leftBorder = BorderFactory.createTitledBorder("Settings"); leftBorder.setTitleJustification(TitledBorder.LEFT); settingsPanel.setBorder(leftBorder); settingsPanel.setLayout(null); settingsPanel.setBounds(5, 200, 280, 180); jFrame.getContentPane().add(settingsPanel); JPanel startPanel = new JPanel(); startPanel.setBackground(Color.DARK_GRAY); startPanel.setForeground(Color.DARK_GRAY); startPanel.setLayout(null); startPanel.setBounds(5, 350, 70, 20); jFrame.getContentPane().add(startPanel); JLabel treeSelection = new JLabel("Select an Ore:"); treeSelection.setFont(new Font("Tahoma", Font.BOLD, 14)); treeSelection.setForeground(Color.GRAY); treeSelection.setBounds(10, 79, 118, 20); settingsPanel.add(treeSelection); JCheckBox Clay = new JCheckBox("Clay"); Clay.setForeground(Color.LIGHT_GRAY); Clay.setBackground(Color.DARK_GRAY); Clay.setFont(new Font("Georgia", Font.PLAIN, 13)); Clay.setBounds(154, 27, 97, 23); settingsPanel.add(Clay); JCheckBox Tin = new JCheckBox("Tin ore"); Tin.setForeground(Color.LIGHT_GRAY); Tin.setBackground(Color.DARK_GRAY); Tin.setFont(new Font("Georgia", Font.PLAIN, 13)); Tin.setBounds(154, 53, 97, 23); settingsPanel.add(Tin); JCheckBox Copper = new JCheckBox("Copper ore"); Copper.setForeground(Color.LIGHT_GRAY); Copper.setBackground(Color.DARK_GRAY); Copper.setFont(new Font("Georgia", Font.PLAIN, 13)); Copper.setBounds(154, 79, 97, 23); settingsPanel.add(Copper); JCheckBox Iron = new JCheckBox("Iron"); Iron.setForeground(Color.LIGHT_GRAY); Iron.setBackground(Color.DARK_GRAY); Iron.setFont(new Font("Georgia", Font.PLAIN, 13)); Iron.setBounds(154, 105, 97, 23); settingsPanel.add(Iron); JCheckBox Coal = new JCheckBox("Coal"); Coal.setFont(new Font("Georgia", Font.PLAIN, 13)); Coal.setForeground(Color.LIGHT_GRAY); Coal.setBackground(Color.DARK_GRAY); Coal.setBounds(154, 131, 97, 23); settingsPanel.add(Coal); JButton startButton = new JButton("Start"); startButton.addActionListener(e -> { synchronized (OreLooter.lock) { main.lock.notify(); } jFrame.setVisible(false); }); startButton.setBounds(5, 390, 279, 20); startPanel.add(startButton); JLabel lblNewLabel = new JLabel("Ore Lo0ter"); lblNewLabel.setFont(new Font("Georgia", Font.BOLD | Font.ITALIC, 30)); lblNewLabel.setForeground(Color.LIGHT_GRAY); lblNewLabel.setBounds(10, 11, 197, 110); startPanel.add(lblNewLabel); JLabel lblWalksToLumby = new JLabel("lumby east mine, picks up ore, and banks!"); lblWalksToLumby.setFont(new Font("Tahoma", Font.BOLD, 12)); lblWalksToLumby.setForeground(Color.GRAY); lblWalksToLumby.setBounds(5, 92, 279, 101); startPanel.add(lblWalksToLumby); jFrame.setVisible(true); } }
  12. I like to see a working example of how things work, it helps me understand. The GUI is in a separate class, I believe it was one of your threads I was looking at that had a GUI tutorial. I have had good success with learning to write scripts by taking a working script and modifying it to do something completely different. Everybody is different I suppose. a decent GUI tutorial using the window builder would help a lot of people I believe.
  13. I do have the window builder for eclipse, I can get to that point and even basically design the window. I'm having an issue of not knowing how to connect the dots. I can make a drop down box with different ore types that you can chose from. But making my script collect them is my issue.
  14. I have watched some videos, searched the web, and this website for information pertaining to what Im trying to do, i haven't had any luck. I made an ore pick script, mainly so i can have one account Powermine, while the other picks up the loot and banks it. But would work for any dropped ore. I am mainly doing this for the learning aspect and i would REALLY prefer to have checkbox's with the different type of ore you want to pick up, with support for multiple ores.
  15. Are you using one end destination? Or multiple coordinates.
  16. final Area BONE_AREA = new Area(3092,3298,3092,3512); final Area BANK_AREA = new Area(3097,3497,3093,3494); @Override public void onStart() { log("Initializing Script"); } private enum State { COLLECT, FULL, WAIT }; private State getState() { if (inventory.isFull()) return State.FULL; if (!inventory.isFull()) return State.COLLECT; return State.WAIT; } @Override public int onLoop() throws InterruptedException { GroundItem BONES = groundItems.closest("bones"); switch (getState()) { case COLLECT: BONES.interact("take"); break; case FULL: walk(BANK_AREA); ~~~~~~~~~~~~~ walk is underlined red and wants me to create a method, i tried following a guide and theirs doesn't come up with an error, what am i doing wrong? and i have this for paint so far. Graphics2D gr = (Graphics2D)g; gr.setColor(Color.MAGENTA); gr.setFont(new Font("comic sans",Font.PLAIN,12)); gr.drawString("Bones Collected", 25, 50); the guide i was following uses chat messages to grab the information for paint, there is no chat message in my script so, how would i get mine? case COLLECT: BONES.interact("take"); Id assume something in this bit Maybe something like if BONES.interact("take") (insert code for ++ paint here) ?? meant to message this.. lol
  17. Is this normal? It let me log in just to loose connection 4 seconds later and was banned when I tried to log back in. Were they waiting for me to log on and detect my client? Stealth injection , on a throw away account.
  18. Just as an update, i just moved a few rocks over to a different ore. About 15-20 hours still going strong. Same premium script different ore. Two runescape dick lengths away from the clay rocks.
  19. Good to know, anything i should do before continuing to bot?
  20. i can try, the script i was using that lasted forever was a free one, i just recently purchased a mining script, and its been ban after ban not even an hour in.
  21. I recently have been botting alot of mining, the first account i used got to around 80~ish mining using the mining guild for days and days non stop. finally got the ban hammer, no biggie. Just yesterday i made a new account and decided to mine clay , it seems to have a much higher profit so i powermine copper till around 20 ish mining and then move to clay, and almost immediately within the hour BOOM banned. Tried again today, within the hour BOOM, banned again. Is it just clay mining? i've had about 5 account banned within the month but just throw away's to make a little cash while i sleep or work, then trade it off before the hammer comes. My ip could be flagged i suppose, but i also bot a combat bot off and on for a few weeks as well its still here. while botting i also play my main on the standard client. they cant touch my main if its soley legit correct?
  22. Why would dismissing randoms increase ban chance? If i have the choice i would never do a random playing legit. They are a complete inconvenience. Imp be like "suprise exam!" and i be like, "No, eat a dick"
  23. Possible to have a trial? Looking for a miner that banks draynor or falador. Edit: went ahead and just bought it.
×
×
  • Create New...