Guest User

Untitled

a guest
Jan 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public class Nomad {
  2. private final int[][] WAVES = {{8528}};
  3. private int[][] coordinates = {{3258,9518}};
  4. public void spawnNextWave(Client c) {
  5. if (c != null) {
  6. if (c.waveId >= WAVES.length) {
  7. c.waveId = 0;
  8. return;
  9. }
  10. if (c.waveId < 0){
  11. return;
  12. }
  13. int npcAmount = WAVES[c.waveId].length;
  14. for (int j = 0; j < npcAmount; j++) {
  15. int npc = WAVES[c.waveId][j];
  16. int X = coordinates[j][0];
  17. int Y = coordinates[j][1];
  18. int H = c.heightLevel;
  19. int hp = getHp(npc);
  20. int max = getMax(npc);
  21. int atk = getAtk(npc);
  22. int def = getDef(npc);
  23. Server.npcHandler.spawnNpc(c, npc, X, Y, H, 0, hp, max, atk, def, true, false);
  24. }
  25. }
  26. }
Add Comment
Please, Sign In to add comment