Jump to content

Molly

Members
  • Posts

    5415
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Molly

  1. Only one thing to do with it now... suicide bot!
  2. Problem resolved, just had to add the listener since as you guys said mouseClicked is deprecated in Osbot 2.
  3. I am trying to hide/show my paint with the click of an area on the paint. My code is as follows: public void mouseClicked(MouseEvent e) { log("Clicked somewhere"); Point clicked; Rectangle PaintButton = new Rectangle(475, 350, 19, 18); clicked = e.getPoint(); if (PaintButton.contains(clicked) && !ShowPaint) { log("Showing paint"); ShowPaint = true; } else if (PaintButton.contains(clicked) && ShowPaint) { log("Hiding paint"); ShowPaint = false; } } The paint will not toggle as I wish, any help is appreciated.
  4. Thanks man, I had more or less assumed it is just broken and it's nice to have confirmation of others also experiencing issues.
  5. Hello, I am having an issue using the world hopper. I have set up my script to hop worlds using the world hopper and upon the world hopper activating and the bot logging out the auto-login random kicks in and attempts to login prior to a new world being selected. Is there any way I can fix this? I was really hoping to being able to set my script up to hop out of bot worlds... Here is the code I am using: for (int i = 0; i < 13; i++) { if ((client.getCurrentWorld()) == BadWorlds) { log("Bad world, let's hop!"); BadWorld = BadWorlds; LetsHop = true; } } if (LetsHop == true) { Random r = new Random(); int World = r.nextInt(55); log("Hopping to world " + Worlds[World]); int thisworld = Worlds[World]; getWorldHopper().hop(thisworld); log("Now in a good world!"); } The script succesfully runs through all the lines, it will logout and the auto-login random overrides the world hopper it seems.
  6. I don't care if you believe me or not, I and many others here have botted for a long time and know how to avoid being banned. Sure, there is some luck to it but you can really give yourself a good chance of not getting banned by botting at locations that are not usually botted at, babysitting your bot while botting riskier activities so you can interact with other players and never associating two botting accounts with the same ip.
  7. Multiple accounts running 6 months + with no bans, kthx but don't need your goodluck bro. Only time I have been banned is when I bot in high traffic or heavily botted areas.
  8. Shitty script thats too bot like, or perhaps a mod was there bot busting, maybe even a player reported you botting and since gnome agility and the area right around it is a botting hotspot(http://i.imgur.com/Z1GokFE.png) they investigated it quickly?. If they were "tracking" the client don't you think there would be a system in place that as soon as being detected you get banned? Couldn't they just upon you logging in for the first time ever on the client ban you right away?
  9. Right, because legit players always do menial tasks for days on end with no interaction with other players and do things like logout upon seeing a mod.
  10. Please delete, I found what I needed.
  11. You could set different areas in the path and have it walk to the areas not the exact positions.
  12. Why would you continue botting after receiving a two day? With how it is anymore you might as well sell the account or go legit and start up a new account after you get a temp ban because if you bot again you WILL get banned and more often than not its sooner rather than later.
  13. Molly

    GUI Issues

    Really appreciate the help guys, I got my script up and running how I want it to be. Thanks a lot!
  14. Molly

    GUI Issues

    Thanks for all the help guys!
  15. Molly

    GUI Issues

    Thanks man, like I said I literally have 0 knowledge of Java lol. I initially wrote a script that kills men in edge and eats lobs under 20 hp and it ran fairly well. I wanted to learn how to use a GUI to let the user decided the hp it eats at and what food it eats so I put this together hoping it would work and it doesn't.
  16. Hey guys, I am very new to Java and learning as I go. So far I wrote an Edgeville man killer script to learn a bit, I am now trying to implement a gui and have made one using WindowBuilder in Eclipse but cannot get it to run when my script is started, the script itself and the gui are 2 different classes. The script is probably very sloppy and I likely am trying to run the gui entirely wrong, the knowledge I have of Java is very small. Any help is greatly appreciated! This is the script itself: package Main; import org.osbot.script.Script; import org.osbot.script.ScriptManifest; import org.osbot.script.rs2.map.Position; import org.osbot.script.rs2.model.GroundItem; import org.osbot.script.rs2.model.Player; import org.osbot.script.rs2.model.NPC; import org.osbot.script.rs2.model.RS2Object; import org.osbot.script.rs2.skill.Skill; import GUI.EdgeMenGUI; @ScriptManifest(author = "Molly", info = "Edgeville Men version 3", name = "EdgeManKiller", version = 1) public class EdgeMen extends Script { final int[] MAN_ID = {313, 314, 315}; int HERB_ID = (207); boolean HASFOOD; public static boolean RUN = false; public static int FOODID; public static int HPEAT; Position Room = new Position (3098, 3510, 0); Position One = new Position (3098, 3503, 0); Position Bank = new Position (3096, 3494, 0); Position Two = new Position (3101, 3509, 0); public void onStart() { log("Slay all the men!"); } public int onLoop() throws InterruptedException { GroundItem Herb = closestGroundItem(207); RS2Object Ladder = closestObject(16679); RS2Object Door = closestObject(11948); int Hitpoints = client.getSkills().getCurrentLevel(Skill.HITPOINTS); if (RUN == false) { new EdgeMenGUI(); } if (Ladder != null) { LadderHandler(); } if (Door != null) { DoorHandler(); } if (Hitpoints < HPEAT) { EatOrBank(); } if (Herb != null) { Loot(); } else { Kill(); } return (80);} private int Loot() throws InterruptedException { GroundItem Herb = closestGroundItem(207); Herb.interact("Take"); if (client.getInventory().isFull()) { Bank(); } return 500; } private void Bank() throws InterruptedException { if (client.getInventory().isFull()) { walkExact(Room); sleep(1500); walkExact(One); sleep(1500); walkExact(Bank); sleep(3000); RS2Object Bank = closestObject(13446); Bank.interact("Bank"); sleep(1500); while (!client.getBank().isOpen()) sleep(200); client.getBank().depositAll(); sleep(750); if (client.getBank().contains(FOODID)) { client.getBank().withdraw5(FOODID); } sleep(250); client.getBank().close(); while (client.getBank().isOpen()) sleep(200); walkExact(One); sleep(1500); walkExact(Two); sleep(1500); } } private void Kill() throws InterruptedException { Player player = client.getMyPlayer(); NPC man = closestNPC(MAN_ID); if (man != null) if (!player.isUnderAttack()) if (!man.isUnderAttack()) man.interact("Attack"); sleep(1000); } private void LadderHandler() throws InterruptedException { RS2Object Ladder = closestObject(16679); Ladder.interact("Climb-down"); sleep(2000); } private void DoorHandler() throws InterruptedException { RS2Object Door = closestObject(11948); Door.interact("Open"); sleep(3000); } private void EatOrBank() throws InterruptedException { if (FOODID != 0) { if (client.getInventory().contains(FOODID)) { client.getInventory().interactWithId(FOODID, "Eat"); } else { WalkToBank(); } } else { sleep(500); } } private void WalkToBank() throws InterruptedException { walkExact(Room); sleep(1500); walkExact(One); sleep(1500); walkExact(Bank); sleep(3000); RS2Object Bank = closestObject(13446); Bank.interact("Bank"); sleep(1500); while (!client.getBank().isOpen()) sleep(200); client.getBank().depositAll(); sleep(750); if (client.getBank().contains(FOODID)) { client.getBank().withdraw5(FOODID); } else { stop(); } sleep(250); client.getBank().close(); while (client.getBank().isOpen()) sleep(200); walkExact(One); sleep(1500); walkExact(Two); sleep(1500); } } Here is the GUI class: package GUI; import java.awt.EventQueue; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import Main.EdgeMen; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; public class EdgeMenGUI { public String FOOD; public String HP; public int FOOD_ID; public int HP_EAT; private JFrame frame; private JTextField txtFood; private JTextField txtEat; /** * Launch the application. */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { EdgeMenGUI window = new EdgeMenGUI(); window.frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } /** * Create the application. */ public EdgeMenGUI() { initialize(); } /** * Initialize the contents of the frame. */ private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 450, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JLabel lblFoodId = new JLabel("Food ID:"); lblFoodId.setBounds(100, 96, 46, 14); frame.getContentPane().add(lblFoodId); JLabel lblNewLabel = new JLabel("Eat At:"); lblNewLabel.setBounds(100, 133, 46, 14); frame.getContentPane().add(lblNewLabel); JButton btnNewButton = new JButton("Start"); btnNewButton.setBounds(153, 175, 89, 23); frame.getContentPane().add(btnNewButton); txtFood = new JTextField(); txtFood.setEnabled(false); txtFood.setBounds(156, 93, 86, 20); frame.getContentPane().add(txtFood); txtFood.setColumns(10); txtEat = new JTextField(); txtEat.setEnabled(false); txtEat.setBounds(156, 130, 86, 20); frame.getContentPane().add(txtEat); txtEat.setColumns(10); final JCheckBox chckbxEat = new JCheckBox("Eat"); chckbxEat.setBounds(127, 63, 97, 23); frame.getContentPane().add(chckbxEat); txtFood = new JTextField(); txtFood.setBounds(156, 93, 86, 20); frame.getContentPane().add(txtFood); txtFood.setColumns(10); txtEat = new JTextField(); txtEat.setBounds(156, 130, 86, 20); frame.getContentPane().add(txtEat); txtEat.setColumns(10); chckbxEat.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent arg0) { if (chckbxEat.isSelected()); txtFood.isEnabled(); txtEat.isEnabled(); } }); btnNewButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { if (chckbxEat.isSelected()) { FOOD = txtFood.getText(); HP = txtEat.getText(); try{ FOOD_ID = Integer.parseInt(FOOD); HP_EAT = Integer.parseInt(HP); } catch (NumberFormatException e) { }} else { FOOD_ID = (0); HP_EAT = (0); } EdgeMen.FOODID = FOOD_ID; EdgeMen.HPEAT = HP_EAT; EdgeMen.RUN = true; frame.dispose(); }}); }}
  17. Pretty happy mine don't, it might look good now to get good grades but finding out you know nothing when you get out in the real world during a job interview would be a pretty bad experience.
  18. Molly

    v1.7.98

    Woke up the last 2 days stuck in prison pete spamming lever, babysat my bot over a 6 hour period last night while playing Diablo 3 and watched it stuck pulling lever 3 times during that 6 hour period.
  19. You posted this at 930 est, most people in the US are asleep at this time and there are alot of people in the US who play runescape, plus you posted it right after an update. Sure bots account for alot of the players in the game but you just really overestimated it.
×
×
  • Create New...