Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package scripts.tools;
- import org.tribot.api2007.Equipment;
- public class Gear {
- // Searches if the player is wielding an or an array of items
- public static boolean IsWielding(Equipment.SLOTS slot, int... ids) {
- if (slot.getItem() != null) {
- return Logic.Contains(ids, slot.getItem().getID());
- } else {
- return false;
- }
- }
- }
Add Comment
Please, Sign In to add comment