TrinityCore/TrinityCore — Issue #3704: [Quest/FIX] Zuhuled the Wacked
Author: Discover-
Created: 2011-10-25 16:00:48+00:00
State: open

Text

```sql
-- [Q] [A/H] Zuluhed the Whacked
-- Added additions to C++ for Karynaku so it'll summon on quest accept
SET @QUEST := 10866;
UPDATE `quest_template` SET `StartScript`=0,`CompleteScript`=0 WHERE `entry`=@QUEST;
DELETE FROM `quest_start_scripts` WHERE `id`=@QUEST;
```

```cpp
diff --git a/src/server/scripts/Outland/shadowmoon_valley.cpp b/src/server/scripts/Outland/shadowmoon_valley.cpp
index b16166e..810e783 100644
--- a/src/server/scripts/Outland/shadowmoon_valley.cpp
+++ b/src/server/scripts/Outland/shadowmoon_valley.cpp
@@ -635,9 +635,12 @@ public:
# npc_karynaku
####*/

-enum eKarynaku
+enum Karynaku
{
QUEST_ALLY_OF_NETHER = 10870,
+	QUEST_ZUHULED_THE_WACK = 10866,
+
+	NPC_ZUHULED_THE_WACKED = 11980,

TAXI_PATH_ID = 649
};
@@ -647,14 +650,16 @@ class npc_karynaku : public CreatureScript
public:
npc_karynaku() : CreatureScript("npc_karynaku") { }

- bool OnQuestAccept(Player* player, Creature* /*creature*/, Quest const* quest)
+ bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest)
{
if (quest->GetQuestId() == QUEST_ALLY_OF_NETHER)
- player->ActivateTaxiPathTo(TAXI_PATH_ID); //player->ActivateTaxiPathTo(649);
+ player->ActivateTaxiPathTo(TAXI_PATH_ID);
+
+ if (quest->GetQuestId() == QUEST_ZUHULED_THE_WACK)
+ creature->SummonCreature(NPC_ZUHULED_THE_WACKED, -4204.94f, 316.397f, 122.508f, 1.309f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 300000);

return true;
}
-
};

/*####
--
```