Core/Quests: Add script for quest The Thunderspike.

Closes #4458.
This commit is contained in:
Discover-
2011-12-25 16:44:55 +01:00
parent 41888f63c9
commit dbcccbbb44
3 changed files with 31 additions and 3 deletions

View 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;

View File

@@ -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();
}

View File

@@ -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;