Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private RSItem vial(){
- RSItem[] is = inventory.getItems();
- for (RSItem i : is){
- if(i.getComponent().getActions() == null || i.getComponent().getActions() == null){
- continue;
- }
- if(i.getComponent().getActions()[0].contains("Use")){
- return i;
- }
- }
- return null;
- }
- RSItem vial = vial();
- if(vial != null){
- vial.doAction("Use");
- }else{
- game.logout(true);
- log("No vials.");
- return -1;
- }
- return random(900,1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement