- Joined
- Nov 18, 2013
- Messages
- 120
- Thread Author
- #1
So since there is no API for buying and selling items on the GE I decided today that I was going to make a basic functioning one.
Basic Use of buying 2 items (As seen in the gif above):
Version: 0.4
Features:Haven't Started | In Progress | Done
- Buy items from the GE
- Buy X Amount for Y Price
- Based on ID
- Based on Name
- TFW Dumb. Don't need item ID for this at all >.>.
- Retrieve Items and money from GE
- Fix Bugs
- Input never gains focus to input X amount or Y price. Have you click input box
- Needed Execution.delay after clicking the [...] (I tried Thread.sleep previously)
- Input never gains focus to input X amount or Y price. Have you click input box
- Sell Items on the GE
- Sell X Amount for X Price
- Based on ID
- Based on Name
- Retrieve money from GE
Basic Use of buying 2 items (As seen in the gif above):
Java:
package com.dibes.bots.getest;
import com.dibes.bots.getest.GrandExchange.GrandExchangeComplete;
import com.runemate.game.api.rs3.net.GrandExchange;
import com.runemate.game.api.script.framework.LoopingScript;
public class GETest extends LoopingScript {
boolean boughtItem1;
boolean boughtItem2;
@Overridepublic void onLoop() {
// Note: It seems to me this implementation is messy. Probably a better way to do it!
if (!boughtItem1 || !boughtItem2) {
if (!boughtItem1)
// Buys 1 rune longsword at default price.
boughtItem1 = GrandExchangeComplete.buyItem(1303);
if (boughtItem1 && !boughtItem2)
// Buys 20 air runes at 20gp each
boughtItem2 = GrandExchangeComplete.buyItem(556, 20, 20);
} else {
GrandExchangeComplete.retrieveItem(1303);
GrandExchangeComplete.retrieveItem(561);}
}
}
Last edited: