1078 {
1081
1083 if (lastSpawn && lastSpawn->
IsAlive())
1084 {
1085
1087 return true;
1088 }
1089 else
1090 {
1092 }
1093
1095 {
1096 respawnTimer = 300s;
1097
1098 switch (action)
1099 {
1100 case 0:
1102 break;
1103 case 1:
1105 break;
1106 case 2:
1108 break;
1109 case 3:
1111 break;
1112 case 4:
1114 break;
1115 default:
1116 break;
1117 }
1118 }
1120 {
1121 respawnTimer = 900s;
1122
1123 switch (action)
1124 {
1125 case 0:
1127 break;
1128 case 1:
1130 break;
1131 case 2:
1133 break;
1134 case 3:
1136 break;
1137 case 4:
1139 break;
1140 default:
1141 break;
1142 }
1143 }
1145 {
1146 respawnTimer = 10800s;
1147
1148 switch (action)
1149 {
1150 case 0:
1152 break;
1153 case 1:
1155 break;
1156 case 2:
1158 break;
1159 case 3:
1161 break;
1162 case 4:
1164 break;
1165 default:
1166 break;
1167 }
1168 }
1169
1173 return false;
1174 }
std::chrono::seconds Seconds
Seconds shorthand typedef.
Definition: Duration.h:30
@ NPC_TEMPLAR_AIR
Definition: zone_silithus.cpp:994
@ SPELL_TEMPLAR_FIRE
Definition: zone_silithus.cpp:975
@ NPC_TEMPLAR_WATER
Definition: zone_silithus.cpp:993
@ SPELL_DUKE_WATER
Definition: zone_silithus.cpp:983
@ NPC_ROYAL_FIRE
Definition: zone_silithus.cpp:1000
@ NPC_DUKE_AIR
Definition: zone_silithus.cpp:999
@ SPELL_ROYAL_WATER
Definition: zone_silithus.cpp:988
@ SPELL_ROYAL_AIR
Definition: zone_silithus.cpp:986
@ SPELL_ROYAL_RANDOM
Definition: zone_silithus.cpp:984
@ SPELL_DUKE_AIR
Definition: zone_silithus.cpp:981
@ SPELL_ROYAL_FIRE
Definition: zone_silithus.cpp:985
@ NPC_ROYAL_EARTH
Definition: zone_silithus.cpp:1002
@ NPC_TEMPLAR_EARTH
Definition: zone_silithus.cpp:995
@ NPC_TEMPLAR_FIRE
Definition: zone_silithus.cpp:992
@ NPC_DUKE_WATER
Definition: zone_silithus.cpp:997
@ SPELL_DUKE_FIRE
Definition: zone_silithus.cpp:980
@ NPC_ROYAL_WATER
Definition: zone_silithus.cpp:1003
@ NPC_ROYAL_AIR
Definition: zone_silithus.cpp:1001
@ SPELL_DUKE_RANDOM
Definition: zone_silithus.cpp:979
@ SPELL_DUKE_EARTH
Definition: zone_silithus.cpp:982
@ SPELL_ROYAL_EARTH
Definition: zone_silithus.cpp:987
@ NPC_DUKE_FIRE
Definition: zone_silithus.cpp:996
@ SPELL_TEMPLAR_AIR
Definition: zone_silithus.cpp:976
@ SPELL_TEMPLAR_WATER
Definition: zone_silithus.cpp:978
@ SPELL_TEMPLAR_EARTH
Definition: zone_silithus.cpp:977
@ SPELL_TEMPLAR_RANDOM
Definition: zone_silithus.cpp:974
@ NPC_DUKE_EARTH
Definition: zone_silithus.cpp:998
@ GO_FLAG_NOT_SELECTABLE
Definition: SharedDefines.h:1607
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition: CreatureAIImpl.h:25
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
Definition: Creature.h:43
void SendCloseGossip()
Definition: GossipDef.cpp:239
void SetGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:218
void DespawnOrUnsummon(Milliseconds delay=0ms, Seconds forcedRespawnTime=0s)
Definition: GameObject.cpp:935
void Clear()
Definition: ObjectGuid.h:138
PlayerMenu * PlayerTalkClass
Definition: Player.h:2239
bool IsAlive() const
Definition: Unit.h:1654
ObjectGuid _creatureGuid
Definition: zone_silithus.cpp:1205
void SummonNPC(GameObject *go, Player *player, uint32 npc, uint32 spellId)
Definition: zone_silithus.cpp:1176