mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 08:00:48 +01:00
3
sql/updates/world/2011_12_25_03_world_misc.sql
Normal file
3
sql/updates/world/2011_12_25_03_world_misc.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- The Thunderspike
|
||||
UPDATE `gameobject_template` SET `AIName`='',`ScriptName`='go_thunderspike',`data3`=0 WHERE `entry`=184729; -- data3 was `event_scripts`.`id`
|
||||
DELETE FROM `event_scripts` WHERE `id`=13685;
|
||||
@@ -30,6 +30,7 @@ npc_daranelle
|
||||
npc_overseer_nuaar
|
||||
npc_saikkal_the_elder
|
||||
go_legion_obelisk
|
||||
go_thunderspike
|
||||
EndContentData */
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
@@ -537,9 +538,32 @@ public:
|
||||
};
|
||||
|
||||
/*######
|
||||
## AddSC
|
||||
## go_thunderspike
|
||||
######*/
|
||||
|
||||
enum TheThunderspike
|
||||
{
|
||||
NPC_GOR_GRIMGUT = 21319,
|
||||
QUEST_THUNDERSPIKE = 10526,
|
||||
};
|
||||
|
||||
class go_thunderspike : public GameObjectScript
|
||||
{
|
||||
public:
|
||||
go_thunderspike() : GameObjectScript("go_thunderspike") { }
|
||||
|
||||
bool OnGossipHello(Player* player, GameObject* go)
|
||||
{
|
||||
if (player->GetQuestStatus(QUEST_THUNDERSPIKE) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
if (Creature* gorGrimgut = go->SummonCreature(NPC_GOR_GRIMGUT, -2413.4f, 6914.48f, 25.01f, 3.67f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 300000))
|
||||
gorGrimgut->AI()->AttackStart(player);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_blades_edge_mountains()
|
||||
{
|
||||
new mobs_bladespire_ogre();
|
||||
@@ -550,4 +574,5 @@ void AddSC_blades_edge_mountains()
|
||||
new go_legion_obelisk();
|
||||
new npc_bloodmaul_brutebane();
|
||||
new npc_ogre_brute();
|
||||
new go_thunderspike();
|
||||
}
|
||||
|
||||
@@ -402,11 +402,11 @@ class AreaTrigger_at_brewfest : public AreaTriggerScript
|
||||
{
|
||||
case AT_BREWFEST_DUROTAR:
|
||||
if (Creature* tapper = player->FindNearestCreature(NPC_TAPPER_SWINDLEKEG, 20.0f))
|
||||
tapper->AI()->Talk(SAY_WELCOME, player->GetGUID());
|
||||
tapper->AI()->Talk(SAY_WELCOME, player->GetGUID());
|
||||
break;
|
||||
case AT_BREWFEST_DUN_MOROGH:
|
||||
if (Creature* ipfelkofer = player->FindNearestCreature(NPC_IPFELKOFER_IRONKEG, 20.0f))
|
||||
ipfelkofer->AI()->Talk(SAY_WELCOME, player->GetGUID());
|
||||
ipfelkofer->AI()->Talk(SAY_WELCOME, player->GetGUID());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user