Jump to content

Malcolm

Global Moderator
  • Posts

    137855
  • Joined

  • Last visited

  • Days Won

    21
  • Feedback

    100%

Everything posted by Malcolm

  1. Just give this Diamond rings and watch how many girlfriends you can get! Bot spams "Buying gf" and waits for a trade. I told you @Juggles , I'd come up with a good meme to compete with your bot reporting bot. import java.awt.event.KeyEvent; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; @ScriptManifest(author = "Malcolm", info = "Buys GF", name = "BF Buyer", version = 1.0, logo = "") public class Main extends Script { long tradeTime; public int onLoop() throws InterruptedException { if (getInventory().contains("Diamond ring")) { if (!Banks.GRAND_EXCHANGE.contains(myPlayer())) { getWalking().webWalk(Banks.GRAND_EXCHANGE.getRandomPosition()); } else { if (!getTrade().isCurrentlyTrading()) { typeStringInstant("cyan: Buying gf!"); sleep(random(3000, 4000)); if (getTrade().getRequestListener() != null) { if (getTrade().getLastRequestingPlayer() != null) { if (getTrade().getLastRequestingPlayer().interact("Trade with")) { tradeTime = System.currentTimeMillis(); new ConditionalSleep(10000) { @Override public boolean condition() throws InterruptedException { return getTrade().isCurrentlyTrading(); } }.sleep(); } } } } else { if (getWidgets().getTrade().isFirstInterfaceOpen()) { if (System.currentTimeMillis() > (tradeTime + 30000)) { if (getTrade().declineTrade()) { new ConditionalSleep(10000) { @Override public boolean condition() throws InterruptedException { return !getTrade().isCurrentlyTrading(); } }.sleep(); } } else { long dringAmount = getInventory().getAmount("Diamond ring"); if (getTrade().offer("Diamond ring", 1)) { new ConditionalSleep(40000) { @Override public boolean condition() throws InterruptedException { return dringAmount != getInventory().getAmount("Diamong ring"); } }.sleep(); if (getTrade().acceptTrade()) { new ConditionalSleep(40000) { @Override public boolean condition() throws InterruptedException { return getTrade().isSecondInterfaceOpen(); } }.sleep(); } } } } else if (getTrade().isSecondInterfaceOpen()) { if (getTrade().didOtherAcceptTrade()) { mouse.move(220, 300); sleep(random(300, 600)); mouse.click(false); new ConditionalSleep(40000) { @Override public boolean condition() throws InterruptedException { return !getTrade().isSecondInterfaceOpen(); } }.sleep(); typeStringInstant("cyan: We are now married! Love you!"); } } } } } else { log("No more rings! Stopping script"); stop(); } return 1000; } private void typeStringInstant(String output) { for (int i = 0; i < output.length(); i++) { char c = output.charAt(i); int code = KeyEvent.getExtendedKeyCodeForChar(c); getBot().getKeyEventHandler().generateBotKeyEvent(400, System.currentTimeMillis(), 0, code, c); } getBot().getKeyEventHandler().generateBotKeyEvent(401, System.currentTimeMillis(), 0, 10, '\u0000'); getBot().getKeyEventHandler().generateBotKeyEvent(402, System.currentTimeMillis(), 0, 10, '\u0000'); } } NOTE: at the time of writing there was an issue with the API and it did not wan't to accept the second screen. This section: mouse.move(220, 300); sleep(random(300, 600)); mouse.click(false); Should be: if (getTrade().acceptTrade()) {
  2. Bump! Good luck to everyone entered! Just updated my IDE and it looks like you guys will need some good luck if the entries keep coming in!
  3. Malcolm

    HWID ban

    I highly doubt Jagex does HWID bans. Hell, they can't even manage to chainban my accounts properly. LOL
  4. bump! Good luck to everyone entered so far!
  5. You guys are all entered anyways but I have also added the rule to like the post because I forgot to say that!
  6. Christmas is right around the corner! I have been blessed to have been welcomed into such a warm community. For such a warm welcome and a bit of a celebration of my recent Scripter status, I would like to give back to you guys by giving away a simple private script to one lucky winner! To enter, just comment below! Say anything you'd like and LIKE THE POST I will enter everyone into an IDE with their own number and I will roll a random number based on how many people are entered in the giveaway. If you are the lucky winner of this giveaway we will have to reach an agreement to the script you'd like me to write. I will offer you 3 months of maintenance on this script. The script will be your choice, but again, agreed upon. The roll takes place Christmas Day at 2pm PST!
×
×
  • Create New...