Scripts/Events/Achievement: fix 'Out With It'

Credits to @darkman1983

Closes #8211
Closes #8126

Signed-off-by: Nay <[email protected]>
This commit is contained in:
CeIa
2012-12-14 01:23:53 +00:00
committed by Nay
parent 388bb43610
commit b87cc31106
16 changed files with 209 additions and 151 deletions
@@ -0,0 +1,15 @@
DELETE FROM `spell_script_names` WHERE `spell_id` IN (24750, 24751, 44436);
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(24750, 'spell_trick'),
(24751, 'spell_trick_or_treat'),
(44436, 'spell_gen_tricky_treat');
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (42965,42966);
INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment`) VALUES
(42965,42919,0, 'Hallows End - Tricky Treat'),
(42966,-42965,0, 'Hallows End - Upset Tummy removes Tricky Treat'),
(42966,-42919,0, 'Hallows End - Upset Tummy removes Tricky Treat');
DELETE FROM `conditions` WHERE `SourceEntry`=44436 AND `SourceTypeOrReferenceId`=17;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(17, 0, 44436, 0, 0, 1, 0, 42966, 0, 0, 1, 0, '','Tricky Treat casted only if Upset Tummy aura is missing');