qbots 240 Posted July 11, 2016 Someone asked for this so I wrote it real quick cus i had a minute... Enter the name of the person you want to accept items from and then it will bank items when received. then walk back dl: http://uppit.com/6z2bniq5bnj5 package com.qbots.muler; import org.dreambot.api.methods.Calculations; import org.dreambot.api.methods.map.Tile; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.script.listener.MessageListener; import org.dreambot.api.wrappers.widgets.message.Message; import javax.swing.*; import java.awt.*; @ScriptManifest(category = Category.MISC, name = "Mulr Thing", author = "QBots", version = 0.01, description = "Start logged in on spot u want ppl to trade u") public class Muler extends AbstractScript implements MessageListener { String nameToTrade; //doesnt do anything for reasons Tile walkTile; String status = "N/A"; //unused kek u can make paint if u want public void onStart() { nameToTrade = JOptionPane.showInputDialog("Enter name of person trading you"); walkTile = getLocalPlayer().getTile(); } @Override public int onLoop() { if(!getInventory().isEmpty()) { status = "Walking to nearest bank and depositing items"; if(!getBank().isOpen()) { getBank().openClosest(); return Calculations.random(500,1000); } else { getBank().depositAllItems(); return Calculations.random(500,1000); } } else { if(!walkTile.equals(getLocalPlayer().getTile())) { getWalking().walk(walkTile); status = "Walking to " + walkTile.toString(); return Calculations.random(100,1000); } else { if(getTrade().isOpen()) { getTrade().acceptTrade(); return Calculations.random(500,1000); } status = "Waiting for trade..."; } } return 100; } @Override public void onGameMessage(Message message) { } @Override public void onPlayerMessage(Message message) { } @Override public void onTradeMessage(Message message) { getMouse().click(new Rectangle(27,446,50,10)); } @Override public void onPrivateInMessage(Message message) { } @Override public void onPrivateOutMessage(Message message) { } }
Nuclear Nezz 2094 Posted July 12, 2016 Should probably mention that this won't work if 1. someone talks after someone trades you (I'm assuming that hard coded rectangle is the latest message in chatbox) 2. someone you don't want to trade you trades you 3. multiple people trade you at once and you don't verify who is trading you. and it'll spam click accept trade. (well, every 500-1000ms) until the items are put there. It'll also repeatedly click to open the bank instead of sleep until it's open, and could potentially click deposit items twice.
qbots 240 Author Posted July 12, 2016 Should probably mention that this won't work if 1. someone talks after someone trades you (I'm assuming that hard coded rectangle is the latest message in chatbox) 2. someone you don't want to trade you trades you 3. multiple people trade you at once and you don't verify who is trading you. and it'll spam click accept trade. (well, every 500-1000ms) until the items are put there. It'll also repeatedly click to open the bank instead of sleep until it's open, and could potentially click deposit items twice. It was written in 60 seconds. It functions.
botbot01 0 Posted July 5, 2017 I know I'm a n00b to these forums but I just use the dance for money script and it does the job for muleing, plus brings in a little extra $$ from random people.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.