Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. private RSItem vial(){
  2.         RSItem[] is = inventory.getItems();
  3.         for (RSItem i : is){
  4.             if(i.getComponent().getActions() == null || i.getComponent().getActions() == null){
  5.                 continue;
  6.             }
  7.             if(i.getComponent().getActions()[0].contains("Use")){
  8.                 return i;
  9.             }
  10.         }
  11.         return null;
  12.     }
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. RSItem vial = vial();
  22.                 if(vial != null){
  23.                     vial.doAction("Use");
  24.                 }else{
  25.                     game.logout(true);
  26.                     log("No vials.");
  27.                     return -1;
  28.                 }
  29.             return random(900,1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement