flikrrrr Posted February 12, 2023 Share Posted February 12, 2023 hey so i was using chatgpt to see if it understands stuff like this and i want to script to buy dismantle sell and repeat on bracelet of eth pls help import org.osbot.rs07.api.Bank; import org.osbot.rs07.api.Inventory; import org.osbot.rs07.api.GrandExchange; import org.osbot.rs07.api.model.Item; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "Your Name", info = "A script for making money in Old School RuneScape", name = "OSRS Money Maker", version = 1.0, logo = "") public class Main extends Script { private static final int BRACELET_OF_ETHEREUM = 11069; private static final int REVENANT_ETHER = 11074; private Bank bank; private Inventory inventory; private GrandExchange ge; @Override public void onStart() { bank = getBank(); inventory = getInventory(); ge = getGrandExchange(); } @Override public int onLoop() throws InterruptedException { if (!inventory.isFull()) { if (!ge.isOpen()) { ge.isOpen(); } else { Item bracelet = inventory.getItem(BRACELET_OF_ETHEREUM); if (bracelet == null || bracelet.getAmount() == 0) { buyBraceletOfREVENANT_ETHEReum(); } else { dismantleBracelet(); } } } else { if (!bank.isOpen()) { bank.open(); } else { depositAll(); withdrawAll(); } } return 200; } private void buyBraceletOfREVENANT_ETHEReum() { ge.buyItem(BRACELET_OF_ETHEREUM, 250, 45000); } private void dismantleBracelet() throws InterruptedException { inventory.getItem(BRACELET_OF_ETHEREUM).interact("Dismantle"); sleep(random(1500, 2000)); sellREVENANT_ETHER(); } private void sellREVENANT_ETHER() throws InterruptedException { ge.sellItem(REVENANT_ETHER, 62500, 1); sleep(random(1500, 2000)); } private void depositAll() { bank.depositAll(); } private void withdrawAll() { bank.withdrawAll(REVENANT_ETHER); } } Quote Link to comment Share on other sites More sharing options...
flikrrrr Posted February 12, 2023 Author Share Posted February 12, 2023 package core; import org.osbot.rs07.api.Bank; import org.osbot.rs07.api.Inventory; import org.osbot.rs07.api.GrandExchange; import org.osbot.rs07.api.model.Item; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "Your Name", info = "A script for making money in Old School RuneScape", name = "OSRS Money Maker", version = 1.0, logo = "") public class Main extends Script { private static final int BRACELET_OF_ETHEREUM = 11069; private static final int REVENANT_ETHER = 11074; private Bank bank; private Inventory inventory; private GrandExchange ge; @Override public void onStart() { bank = getBank(); inventory = getInventory(); ge = getGrandExchange(); } @Override public int onLoop() throws InterruptedException { if (!inventory.isFull()) { if (!ge.isOpen()) { ge.isOpen(); } else { Item bracelet = inventory.getItem(BRACELET_OF_ETHEREUM); if (bracelet == null || bracelet.getAmount() == 0) { buyBraceletOfREVENANT_ETHEReum(); } else { dismantleBracelet(); } } } else { if (!bank.isOpen()) { bank.open(); } else { depositAll(); withdrawAll(); } } return 200; } private void buyBraceletOfREVENANT_ETHEReum() { ge.buyItem(BRACELET_OF_ETHEREUM, IiiiIiIiiiI(null), 250, 45000); } private void dismantleBracelet() throws InterruptedException { inventory.getItem(BRACELET_OF_ETHEREUM).interact("Dismantle"); sleep(random(1500, 2000)); sellREVENANT_ETHER(); } private void sellREVENANT_ETHER() throws InterruptedException { ge.sellItem(REVENANT_ETHER, 62500, 1); sleep(random(1500, 2000)); } private void depositAll() { bank.depositAll(); } private void withdrawAll() { bank.withdrawAll(REVENANT_ETHER); } } updated a bit but now it just logs in and does nothing Quote Link to comment Share on other sites More sharing options...
Gunman Posted February 13, 2023 Share Posted February 13, 2023 Well the logic is kind of whack if (!ge.isOpen()) { ge.isOpen(); } Quote Link to comment Share on other sites More sharing options...