diff options
author | _manuel_ <none@none> | 2010-01-04 00:08:00 -0300 |
---|---|---|
committer | _manuel_ <none@none> | 2010-01-04 00:08:00 -0300 |
commit | baf0cfa6d8a8d35c7198cb5917c9d996cd2a72c9 (patch) | |
tree | 9511e7f6a42072bdf1b12ea3e96015358b7a0077 /src | |
parent | c4cbd1d18dc1b53d121ae716c39738fcb2813dab (diff) |
Zul'Farrak: Support for quest "The Spider Gold" q2936.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/world/go_scripts.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/bindings/scripts/scripts/world/go_scripts.cpp b/src/bindings/scripts/scripts/world/go_scripts.cpp index 06d7a1b44b5..cbcff3f0220 100644 --- a/src/bindings/scripts/scripts/world/go_scripts.cpp +++ b/src/bindings/scripts/scripts/world/go_scripts.cpp @@ -17,7 +17,7 @@ /* ScriptData SDName: GO_Scripts SD%Complete: 100 -SDComment: Quest support: 4285,4287,4288(crystal pylons), 4296, 6481, 10990, 10991, 10992, Field_Repair_Bot->Teaches spell 22704. Barov_journal->Teaches spell 26089,12843,12982 +SDComment: Quest support: 4285,4287,4288(crystal pylons), 4296, 6481, 10990, 10991, 10992, Field_Repair_Bot->Teaches spell 22704. Barov_journal->Teaches spell 26089,12843,12982, 2936 SDCategory: Game Objects EndScriptData */ @@ -42,6 +42,7 @@ go_tele_to_violet_stand go_rusty_cage go_scourge_cage go_jotunheim_cage +go_table_theka EndContentData */ #include "precompiled.h" @@ -658,6 +659,22 @@ bool GOHello_go_jotunheim_cage(Player* pPlayer, GameObject* pGO) } return true; } +enum eTableTheka +{ + GOSSIP_TABLE_THEKA = 1653, + + QUEST_SPIDER_GOLD = 2936 +}; + +bool GOHello_go_table_theka(Player* pPlayer, GameObject* pGO) +{ + if (pPlayer->GetQuestStatus(QUEST_SPIDER_GOLD) == QUEST_STATUS_INCOMPLETE) + pPlayer->AreaExploredOrEventHappens(QUEST_SPIDER_GOLD); + + pPlayer->SEND_GOSSIP_MENU(GOSSIP_TABLE_THEKA, pGO->GetGUID()); + + return true; +} void AddSC_go_scripts() { @@ -798,4 +815,9 @@ void AddSC_go_scripts() newscript->Name = "go_jotunheim_cage"; newscript->pGOHello = &GOHello_go_jotunheim_cage; newscript->RegisterSelf(); + + newscript = new Script; + newscript->Name = "go_table_theka"; + newscript->pGOHello = &GOHello_go_table_theka; + newscript->RegisterSelf(); } |