fix(Script/Quest): Arelion's Secret. Add combat sequence to Magister … (#15878)

* fix(Script/Quest): Arelion's Secret. Add combat sequence to Magister Aledis

Co-authored-by: SnapperRy

* Use single quotes for SQL

* Update based on review comments

Co-authored-by: SnapperRy <snapperryen@gmail.com>
This commit is contained in:
Timothy Vaccarelli
2023-08-05 21:17:26 -04:00
committed by GitHub
parent c3c6ce9d7a
commit 23a420acbb
2 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
--
UPDATE `creature_template` SET `ScriptName` = 'npc_magister_aledis' WHERE `entry` = 20159;
-- Gossip to start combat vs event completion and quest reward
UPDATE `conditions` SET `ConditionTypeOrReference`=28, `Comment`='Show gossip option 0 if player has quest Arelion\'s Secret completed OR' WHERE `SourceGroup`=8081 AND `ElseGroup`=0;
DELETE FROM `conditions` WHERE `SourceGroup`=8081 AND `ElseGroup`=1;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 8081, 0, 0, 1, 8, 0, 10286, 0, 0, 0, 0, 0, '', 'Show gossip option 0 if player has quest Arelion\'s Secret rewarded');