Tezlaz

gear

Aug 6th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. package scripts.tools;
  2.  
  3. import org.tribot.api2007.Equipment;
  4.  
  5. public class Gear {
  6.  
  7. // Searches if the player is wielding an or an array of items
  8. public static boolean IsWielding(Equipment.SLOTS slot, int... ids) {
  9. if (slot.getItem() != null) {
  10. return Logic.Contains(ids, slot.getItem().getID());
  11. } else {
  12. return false;
  13. }
  14. }
  15. }
Add Comment
Please, Sign In to add comment