Jump to content

Tact

Members
  • Posts

    1
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Tact's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. I am trying to get this grand exchange script to work. However I am getting an error on line highlighted green. I am new to scripting and don't know if this is the correct way to upload the script package core; public class script extends org.osbot.rs07.script.Script{ private final String itemName = "Clay"; private final int itemPrice = 53; private final int itemAmount = 500; @Override public int onLoop() throws InterruptedException { GrandExchange GE = new GrandExchange(this); //new GrandExchange instance with our script if (!getGrandExchange().isOpen()) { //Checks if ge is open GE.openGE(); //open ge randomly using booth or npc } else { GE.collectItems(false); //collect items (boolean true -> to bank, false -> inventory) GE.createBuyOffer(itemName, itemPrice, itemAmount); //creates a buy offer with specified params GE.createSellOffer(itemName, itemPrice, 0); //Sells all of the specified items in inventory at specified price ( 0 = all, int = specified amount) } return 150; } }
×
×
  • Create New...