Advertisement
Guest User

WhatTheyAdded.java

a guest
Apr 16th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.60 KB | None | 0 0
  1.         case 4049: //Castle wars bandages by Canownueasy
  2.  
  3.         if(player.eatWait==0){
  4.  
  5.         player.getInventory().remove(slot,item);
  6.  
  7.         int[]idsZ={11079,11081,11083};
  8.  
  9.         for(int ids:idsZ){
  10.  
  11.         if(player.getEquipment().contains(ids)){
  12.  
  13.         player.heal(Misc.round(player.getHitpoints()/5));
  14.  
  15.         }else{
  16.  
  17.         player.heal(Misc.round(player.getHitpoints()/10));
  18.  
  19.         }
  20.  
  21.         }
  22.  
  23.         player.setRunEnergy(30);
  24.  
  25.         player.getActionSender().sendMessage("You heal yourself with the bandage.");
  26.  
  27.         player.eatWait++;
  28.  
  29.         }
  30.  
  31.         return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement