Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. void SummonAdds()
  2. {
  3. // Adds will come in waves from mole machines. One mole can spawn a Dark Rune Watcher
  4. // with 1-2 Guardians, or a lone Sentinel. Up to 6 mole machines can spawn adds at any given time.
  5. if (getDifficulty() == RAID_DIFFICULTY_10MAN_NORMAL)
  6. {
  7. if (getDifficulty() == HORDE)
  8. {
  9. uint8 random = urand(2,4);
  10.  
  11. for (uint8 i = 0; i < random; ++i)
  12. {
  13. float x = float(irand(540, 640)); // Safe range is between 500 and 650
  14. float y = float(irand(-230, -195)); // Safe range is between -235 and -145
  15. float z = 391.5f; // Ground level
  16. me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
  17. }
  18. }
  19. else if (getDifficulty() == ALLIANCE)
  20. {
  21. uint8 random = urand(1,1);
  22.  
  23. for (uint8 i = 0; i < random; ++i)
  24. {
  25. float x = float(irand(540, 640)); // Safe range is between 500 and 650
  26. float y = float(irand(-230, -195)); // Safe range is between -235 and -145
  27. float z = 391.5f; // Ground level
  28. me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
  29. }
  30. }
  31. }
  32. else if (getDifficulty() == RAID_DIFFICULTY_25MAN_NORMAL)
  33. {
  34. if (getDifficulty() == HORDE)
  35. {
  36. uint8 random = urand(4,8);
  37.  
  38. for (uint8 i = 0; i < random; ++i)
  39. {
  40. float x = float(irand(540, 640)); // Safe range is between 500 and 650
  41. float y = float(irand(-230, -195)); // Safe range is between -235 and -145
  42. float z = 391.5f; // Ground level
  43. me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
  44. }
  45. }
  46. else if (getDifficulty() == ALLIANCE)
  47. {
  48. uint8 random = urand(1,1);
  49.  
  50. for (uint8 i = 0; i < random; ++i)
  51. {
  52. float x = float(irand(540, 640)); // Safe range is between 500 and 650
  53. float y = float(irand(-230, -195)); // Safe range is between -235 and -145
  54. float z = 391.5f; // Ground level
  55. me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
  56. }
  57. }
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement