Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package scripts.tools;
- import org.tribot.api2007.GrandExchange;
- import org.tribot.api2007.Interfaces;
- import org.tribot.api2007.types.RSGEOffer;
- public class GE {
- public static boolean isGEInterfaceOpen() {
- if (Interfaces.get(465) != null
- && Interfaces.get(465).getChild(0).isHidden() == false) {
- return true;
- } else {
- return false;
- }
- }
- public static boolean HasTransCompleted(int slot) {
- String status;
- status = GrandExchange.getOffers()[slot].getStatus().toString().toUpperCase();
- if (RSGEOffer.STATUS.values()[0] == GrandExchange.getOffers()[slot].getStatus().COMPLETED && status != null) {
- return true;
- } else {
- return false;
- }
- }
- }
Add Comment
Please, Sign In to add comment