1077 {
1080
1082 if (lastSpawn && lastSpawn->
IsAlive())
1083 {
1084
1086 return true;
1087 }
1088 else
1089 {
1091 }
1092
1094 {
1095 respawnTimer = 300s;
1096
1097 switch (action)
1098 {
1099 case 0:
1101 break;
1102 case 1:
1104 break;
1105 case 2:
1107 break;
1108 case 3:
1110 break;
1111 case 4:
1113 break;
1114 default:
1115 break;
1116 }
1117 }
1119 {
1120 respawnTimer = 900s;
1121
1122 switch (action)
1123 {
1124 case 0:
1126 break;
1127 case 1:
1129 break;
1130 case 2:
1132 break;
1133 case 3:
1135 break;
1136 case 4:
1138 break;
1139 default:
1140 break;
1141 }
1142 }
1144 {
1145 respawnTimer = 10800s;
1146
1147 switch (action)
1148 {
1149 case 0:
1151 break;
1152 case 1:
1154 break;
1155 case 2:
1157 break;
1158 case 3:
1160 break;
1161 case 4:
1163 break;
1164 default:
1165 break;
1166 }
1167 }
1168
1172 return false;
1173 }
std::chrono::seconds Seconds
Seconds shorthand typedef.
Definition: Duration.h:30
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition: CreatureAIImpl.h:30
@ NPC_TEMPLAR_AIR
Definition: zone_silithus.cpp:993
@ SPELL_TEMPLAR_FIRE
Definition: zone_silithus.cpp:974
@ NPC_TEMPLAR_WATER
Definition: zone_silithus.cpp:992
@ SPELL_DUKE_WATER
Definition: zone_silithus.cpp:982
@ NPC_ROYAL_FIRE
Definition: zone_silithus.cpp:999
@ NPC_DUKE_AIR
Definition: zone_silithus.cpp:998
@ SPELL_ROYAL_WATER
Definition: zone_silithus.cpp:987
@ SPELL_ROYAL_AIR
Definition: zone_silithus.cpp:985
@ SPELL_ROYAL_RANDOM
Definition: zone_silithus.cpp:983
@ SPELL_DUKE_AIR
Definition: zone_silithus.cpp:980
@ SPELL_ROYAL_FIRE
Definition: zone_silithus.cpp:984
@ NPC_ROYAL_EARTH
Definition: zone_silithus.cpp:1001
@ NPC_TEMPLAR_EARTH
Definition: zone_silithus.cpp:994
@ NPC_TEMPLAR_FIRE
Definition: zone_silithus.cpp:991
@ NPC_DUKE_WATER
Definition: zone_silithus.cpp:996
@ SPELL_DUKE_FIRE
Definition: zone_silithus.cpp:979
@ NPC_ROYAL_WATER
Definition: zone_silithus.cpp:1002
@ NPC_ROYAL_AIR
Definition: zone_silithus.cpp:1000
@ SPELL_DUKE_RANDOM
Definition: zone_silithus.cpp:978
@ SPELL_DUKE_EARTH
Definition: zone_silithus.cpp:981
@ SPELL_ROYAL_EARTH
Definition: zone_silithus.cpp:986
@ NPC_DUKE_FIRE
Definition: zone_silithus.cpp:995
@ SPELL_TEMPLAR_AIR
Definition: zone_silithus.cpp:975
@ SPELL_TEMPLAR_WATER
Definition: zone_silithus.cpp:977
@ SPELL_TEMPLAR_EARTH
Definition: zone_silithus.cpp:976
@ SPELL_TEMPLAR_RANDOM
Definition: zone_silithus.cpp:973
@ NPC_DUKE_EARTH
Definition: zone_silithus.cpp:997
@ GO_FLAG_NOT_SELECTABLE
Definition: SharedDefines.h:1607
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:213
Definition: Creature.h:46
void SendCloseGossip()
Definition: GossipDef.cpp:239
void SetGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:219
void DespawnOrUnsummon(Milliseconds delay=0ms, Seconds forcedRespawnTime=0s)
Definition: GameObject.cpp:933
void Clear()
Definition: ObjectGuid.h:138
PlayerMenu * PlayerTalkClass
Definition: Player.h:2219
bool IsAlive() const
Definition: Unit.h:1204
ObjectGuid _creatureGuid
Definition: zone_silithus.cpp:1204
void SummonNPC(GameObject *go, Player *player, uint32 npc, uint32 spellId)
Definition: zone_silithus.cpp:1175