aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/FULL/world_scripts_full.sql1
-rw-r--r--sql/updates/6890_world_scriptnames.sql1
-rw-r--r--src/bindings/scripts/scripts/world/go_scripts.cpp24
3 files changed, 25 insertions, 1 deletions
diff --git a/sql/FULL/world_scripts_full.sql b/sql/FULL/world_scripts_full.sql
index bc6278a3cdc..c2cbef79e79 100644
--- a/sql/FULL/world_scripts_full.sql
+++ b/sql/FULL/world_scripts_full.sql
@@ -1379,6 +1379,7 @@ UPDATE `creature_template` SET `ScriptName`='npc_sergeant_bly' WHERE `entry`=760
UPDATE `creature_template` SET `ScriptName`='npc_weegli_blastfuse' WHERE `entry`=7607;
UPDATE `gameobject_template` SET `ScriptName`='go_shallow_grave' WHERE `entry` IN (128308,128403);
INSERT IGNORE INTO `areatrigger_scripts` (`entry`, `ScriptName`) VALUES('962','at_zumrah');
+UPDATE `gameobject_template` SET `ScriptName`='go_table_theka' WHERE `entry`=142715;
/* ZUL'GURUB */
UPDATE `instance_template` SET `script`='instance_zulgurub' WHERE `map`=309;
diff --git a/sql/updates/6890_world_scriptnames.sql b/sql/updates/6890_world_scriptnames.sql
new file mode 100644
index 00000000000..821ad8288cc
--- /dev/null
+++ b/sql/updates/6890_world_scriptnames.sql
@@ -0,0 +1 @@
+UPDATE `gameobject_template` SET `ScriptName`='go_table_theka' WHERE `entry`=142715;
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();
}