Tezlaz

GE

Aug 6th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. package scripts.tools;
  2.  
  3. import org.tribot.api2007.GrandExchange;
  4. import org.tribot.api2007.Interfaces;
  5. import org.tribot.api2007.types.RSGEOffer;
  6.  
  7. public class GE {
  8.  
  9. public static boolean isGEInterfaceOpen() {
  10. if (Interfaces.get(465) != null
  11. && Interfaces.get(465).getChild(0).isHidden() == false) {
  12. return true;
  13. } else {
  14. return false;
  15. }
  16. }
  17.  
  18. public static boolean HasTransCompleted(int slot) {
  19. String status;
  20. status = GrandExchange.getOffers()[slot].getStatus().toString().toUpperCase();
  21. if (RSGEOffer.STATUS.values()[0] == GrandExchange.getOffers()[slot].getStatus().COMPLETED && status != null) {
  22. return true;
  23. } else {
  24. return false;
  25. }
  26.  
  27. }
  28.  
  29. }
Add Comment
Please, Sign In to add comment