public class GrandExchange extends API
Modifier and Type | Class and Description |
---|---|
static class |
GrandExchange.Box |
static class |
GrandExchange.Status |
bank, bot, camera, chatbox, client, colorPicker, combat, configs, depositBox, dialogues, diaries, display, doorHandler, equipment, experienceTracker, favour, grandExchange, graphicObjects, groundItems, hintArrow, inventory, keyboard, logger, logoutTab, magic, map, menu, mouse, npcs, objects, players, prayer, projectiles, quests, settings, skills, store, tabs, trade, walking, widgets, worlds
Constructor and Description |
---|
GrandExchange() |
Modifier and Type | Method and Description |
---|---|
boolean |
buyItem(int itemId,
java.lang.String searchTerm,
int price,
int quantity) |
boolean |
buyItems(GrandExchange.Box box) |
boolean |
close() |
boolean |
collect() |
boolean |
collect(boolean collectToBank) |
boolean |
confirm() |
boolean |
confirmWarning() |
int |
getAmountRemaining(GrandExchange.Box box) |
int |
getAmountSpent(GrandExchange.Box box) |
int |
getAmountToTransfer(GrandExchange.Box box) |
int |
getAmountTraded(GrandExchange.Box box) |
int |
getInterfaceId() |
int |
getItemId(GrandExchange.Box box) |
int |
getItemPrice(GrandExchange.Box box) |
int |
getOfferPrice() |
int |
getOfferQuantity() |
int |
getOverallPrice(int itemID) |
GrandExchange.Status |
getStatus(GrandExchange.Box box) |
boolean |
goBack() |
void |
initializeModule() |
boolean |
isBuyOfferOpen() |
boolean |
isOfferScreenOpen() |
boolean |
isOpen() |
boolean |
isSellOfferOpen() |
boolean |
sellItem(int itemId,
int price,
int quantity) |
boolean |
sellItems(GrandExchange.Box box) |
boolean |
setOfferPrice(int price)
Sets the offer price for the currently open item
If 0 is passed as parameter, this method will return true by default.
|
boolean |
setOfferQuantity(int quantity) |
exchangeContext, execute, getBank, getBot, getCamera, getChatbox, getClient, getColorPicker, getCombat, getConfigs, getDepositBox, getDialogues, getDiaries, getDisplay, getDoorHandler, getEquipment, getExperienceTracker, getFavour, getGrandExchange, getGraphicObjects, getGroundItems, getHintArrow, getInventory, getKeyboard, getLogoutTab, getMagic, getMap, getMenuAPI, getMouse, getNpcs, getObjects, getPlayers, getPrayer, getProjectiles, getQuests, getSettings, getSkills, getStore, getTabs, getTrade, getWalking, getWidgets, getWorlds, gRandom, gRandom, gRandom, initializeContext, log, log, myPlayer, myPosition, random, random, sleep, stripFormatting, warn
public void initializeModule()
initializeModule
in class API
public int getInterfaceId()
public int getItemId(GrandExchange.Box box)
box
- The Grand Exchange Box you wish to query.public int getItemPrice(GrandExchange.Box box)
box
- The Grand Exchange Box you wish to query.public int getAmountToTransfer(GrandExchange.Box box)
box
- The Grand Exchange Box you wish to query.public int getAmountRemaining(GrandExchange.Box box)
box
- The Grand Exchange Box you wish to query.public int getAmountTraded(GrandExchange.Box box)
box
- The Grand Exchange Box you wish to query.public int getAmountSpent(GrandExchange.Box box)
box
- The Grand Exchange Box you wish to query.public GrandExchange.Status getStatus(GrandExchange.Box box)
box
- The Grand Exchange Box you wish to query.public boolean isOpen()
public boolean close()
public boolean isBuyOfferOpen()
public boolean isSellOfferOpen()
public boolean isOfferScreenOpen()
public boolean sellItem(int itemId, int price, int quantity)
public boolean buyItem(int itemId, java.lang.String searchTerm, int price, int quantity)
public boolean buyItems(GrandExchange.Box box)
box
- The Grand Exchange Box you wish to query.public boolean sellItems(GrandExchange.Box box)
box
- The Grand Exchange Box you wish to query.public boolean goBack()
public boolean collect()
public boolean collect(boolean collectToBank)
collectToBank
- Set to true to collect items into your bank and false for inventory collection.public boolean confirmWarning()
public boolean confirm()
public int getOfferPrice()
public int getOfferQuantity()
public boolean setOfferPrice(int price)
price
- The price per item for your item offer.public boolean setOfferQuantity(int quantity)
quantity
- The quantity of items you wish to offer.public int getOverallPrice(int itemID)