aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMalcrom <malcromdev@gmail.com>2013-07-16 21:42:40 -0230
committerMalcrom <malcromdev@gmail.com>2013-07-16 21:42:40 -0230
commit8462a09264c2abd821c0b5be589df0dbc7df5e6e (patch)
tree9cb883c05f00bd6f5fec4ae5fa32eb84e19312a2 /sql
parent83a31eaf962728e3323765a089d6c933332f6d3c (diff)
DB/Gossip: Added missing gossip for Royal Historian Archesonus. Removed cpp script.
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/2013_07_17_02_world_gossip.sql22
1 files changed, 22 insertions, 0 deletions
diff --git a/sql/updates/world/2013_07_17_02_world_gossip.sql b/sql/updates/world/2013_07_17_02_world_gossip.sql
new file mode 100644
index 00000000000..0ec238efb05
--- /dev/null
+++ b/sql/updates/world/2013_07_17_02_world_gossip.sql
@@ -0,0 +1,22 @@
+-- Add SAI for Royal Historian Archesonus Quest 3702
+UPDATE `creature_template` SET `AIName`= 'SmartAI',`ScriptName`= '' WHERE `entry`=8879;
+DELETE FROM `smart_scripts` WHERE `entryorguid`=8879 AND `source_type`=0;
+INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
+(8879, 0, 0, 1, 62, 0, 100, 0, 1563, 0, 0, 0, 15, 3702, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Royal Historian Archesonus - Gossip Option 0 - Complete quest 3702'),
+(8879, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Royal Historian Archesonus - Gossip Option 0 - Close Gossip');
+-- Gossip Menu
+DELETE FROM `gossip_menu` WHERE `entry` IN (1562,1563,1564,1565);
+INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES
+(1562,2238), (1563,2239), (1564,2237), (1565,2236);
+-- Gossip Options
+DELETE FROM `gossip_menu_option` WHERE `menu_id` IN (1561,1562,1563,1564,1565);
+INSERT INTO `gossip_menu_option` (`menu_id`,`id`,`option_icon`,`option_text`,`option_id`,`npc_option_npcflag`,`action_menu_id`) VALUES
+(1561,0,0, 'I am ready, Historian Archesonus.',1,1,1565),
+(1562,0,0, 'Unbelievable! How dare they??',1,1,1563),
+(1563,0,0, 'Of course I will help!',1,1,0),
+(1564,0,0, 'Interesting, continue please.',1,1,1562),
+(1565,0,0, 'That is tragic. How did this happen?',1,1,1564);
+-- Gossip Options Conditions
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=1561;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
+(15,1561,0,0,0,9,0,3702,0,0,0,'','Gossip Option requires quest taken');