Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public void handleArmor(Client c, int itemId, int X, int Y) {
  2. if(!c.spawned) {
  3. this.xCoord = X;
  4. this.yCoord = Y;
  5. for(int i = 0; i < ARMORREQUIRED.length; i++) {
  6. for(int f = 0; f < ARMORREQUIRED[0].length; f++) {
  7. if(itemId == ARMORREQUIRED[i][f]) {
  8. if(hasItem(c, ARMORREQUIRED[i][0], true) && hasItem(c, ARMORREQUIRED[i][1], true) && hasItem(c, ARMORREQUIRED[i][2], true)) {
  9. animateArmor(c, new int[] {ARMORREQUIRED[i][0], ARMORREQUIRED[i][1], ARMORREQUIRED[i][2]}, ARMORREQUIRED[i][3], ARMORREQUIRED[i][4], ARMORREQUIRED[i][5], ARMORREQUIRED[i][6], ARMORREQUIRED[i][7]);
  10. }
  11. }
  12. }
  13. }
  14. } else {
  15. c.sendMessage("You already have armor spawned!");
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement