Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SummonAdds()
- {
- // Adds will come in waves from mole machines. One mole can spawn a Dark Rune Watcher
- // with 1-2 Guardians, or a lone Sentinel. Up to 6 mole machines can spawn adds at any given time.
- if (getDifficulty() == RAID_DIFFICULTY_10MAN_NORMAL)
- {
- if (getDifficulty() == HORDE)
- {
- uint8 random = urand(2,4);
- for (uint8 i = 0; i < random; ++i)
- {
- float x = float(irand(540, 640)); // Safe range is between 500 and 650
- float y = float(irand(-230, -195)); // Safe range is between -235 and -145
- float z = 391.5f; // Ground level
- me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
- }
- }
- else if (getDifficulty() == ALLIANCE)
- {
- uint8 random = urand(1,1);
- for (uint8 i = 0; i < random; ++i)
- {
- float x = float(irand(540, 640)); // Safe range is between 500 and 650
- float y = float(irand(-230, -195)); // Safe range is between -235 and -145
- float z = 391.5f; // Ground level
- me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
- }
- }
- }
- else if (getDifficulty() == RAID_DIFFICULTY_25MAN_NORMAL)
- {
- if (getDifficulty() == HORDE)
- {
- uint8 random = urand(4,8);
- for (uint8 i = 0; i < random; ++i)
- {
- float x = float(irand(540, 640)); // Safe range is between 500 and 650
- float y = float(irand(-230, -195)); // Safe range is between -235 and -145
- float z = 391.5f; // Ground level
- me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
- }
- }
- else if (getDifficulty() == ALLIANCE)
- {
- uint8 random = urand(1,1);
- for (uint8 i = 0; i < random; ++i)
- {
- float x = float(irand(540, 640)); // Safe range is between 500 and 650
- float y = float(irand(-230, -195)); // Safe range is between -235 and -145
- float z = 391.5f; // Ground level
- me->SummonCreature(MOLE_MACHINE_TRIGGER, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement