Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 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. uint8 random = urand(1,2);
  8.  
  9. for (uint8 i = 0; i < random; ++i)
  10. {
  11. float x = float(irand(540, 640)); // Safe range is between 500 and 650
  12. float y = float(irand(-230, -195)); // Safe range is between -235 and -145
  13. float z = 391.5f; // Ground level
  14. me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
  15. }
  16. }
  17. else if (getDifficulty() == RAID_DIFFICULTY_25MAN_NORMAL)
  18. {
  19. if (getDifficulty() == HORDE)
  20. {
  21. uint8 random = urand(4,8);
  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. else if (getDifficulty() == ALLIANCE)
  32. {
  33. uint8 random = urand(2,4);
  34.  
  35. for (uint8 i = 0; i < random; ++i)
  36. {
  37. float x = float(irand(540, 640)); // Safe range is between 500 and 650
  38. float y = float(irand(-230, -195)); // Safe range is between -235 and -145
  39. float z = 391.5f; // Ground level
  40. me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
  41. }
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement