diff options
| author | tkrokli <tkrokli@users.noreply.github.com> | 2016-08-15 03:17:53 +0200 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-02-12 15:16:58 +0100 |
| commit | fcd46dd70c799575b082ff6b85b54fe205c55897 (patch) | |
| tree | 9dbcc555b4bc5ce3791beb0cd263f6112d61a579 /sql | |
| parent | d94f0f34277680b5c7c33797851a78450b6e4ac7 (diff) | |
Core/Scripts: move Pet Trainer gossip to DB
SQL content based on issue 14719 by Killyana,
conditions output from Malcrom's Condition Creator
- remove hardcoded #define gossip options
- enum gossip menu IDs from DB
- remove outdated SD comments at the top of the file
Closes #14719
(cherry picked from commit 03bafe334c178f5731f6eee3de402294017c8ddd)
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/updates/world/master/2017_02_12_04_world_2016_08_15_00_world.sql | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/updates/world/master/2017_02_12_04_world_2016_08_15_00_world.sql b/sql/updates/world/master/2017_02_12_04_world_2016_08_15_00_world.sql new file mode 100644 index 00000000000..867d5b127a5 --- /dev/null +++ b/sql/updates/world/master/2017_02_12_04_world_2016_08_15_00_world.sql @@ -0,0 +1,12 @@ +-- Pet Trainer creature updates +UPDATE `creature_template` SET `gossip_menu_id`= 4783 WHERE `entry` IN (543, 3306, 3545, 3698, 4320, 16675, 40405); +UPDATE `creature_template` SET /*`exp`= 0, `npcflag`= 17, `trainer_type`= 3,*/ `flags_extra`= 2, `ScriptName`= 'npc_pet_trainer' WHERE `entry`= 40405; +UPDATE `gossip_menu_option` SET `option_icon`= 0 WHERE `menu_id`= 6520 AND `id`= 0; + +-- gossip menu conditions, hunter class (4) for Pet Trainer gossip window +DELETE FROM `conditions` WHERE `SourceGroup`= 4783; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(14,4783,5838,0,0,15,0,4,0,0,0,0,0,'','Show gossip menu 4783 text id 5838 if player is a Hunter.'), +(14,4783,5839,0,0,15,0,4,0,0,1,0,0,'','Show gossip menu 4783 text id 5839 if player is not a Hunter.'), +(15,4783, 0,0,0,15,0,4,0,0,0,0,0,'','Show gossip menu 4783 option id 0 if player is a Hunter.'), +(15,4783, 1,0,0,15,0,4,0,0,0,0,0,'','Show gossip menu 4783 option id 1 if player is a Hunter.'); |
