From 3b6a53f509f4931202b3c769aaef7c2235b606cf Mon Sep 17 00:00:00 2001 From: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> Date: Sat, 1 Jun 2024 16:03:30 -0400 Subject: [PATCH] Add progression stages for Zul'Aman's prisoner loot. (#396) * Init. * Down. --- .../progression_70_5_amani_war_bear_loot.sql | 24 +++++++++++++++++++ ...gression_70_5_amani_war_bear_loot_down.sql | 20 ++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 src/Bracket_70_5/sql/world/progression_70_5_amani_war_bear_loot.sql create mode 100644 src/Bracket_71_74/sql/world/progression_70_5_amani_war_bear_loot_down.sql diff --git a/src/Bracket_70_5/sql/world/progression_70_5_amani_war_bear_loot.sql b/src/Bracket_70_5/sql/world/progression_70_5_amani_war_bear_loot.sql new file mode 100644 index 00000000..92f15917 --- /dev/null +++ b/src/Bracket_70_5/sql/world/progression_70_5_amani_war_bear_loot.sql @@ -0,0 +1,24 @@ +SET @REFIDTHREE = 35102, +@REFIDFOUR = 527000, +@TANZAR = 22699, +@KRAZ = 22790, +@ASHLI = 22797, +@HARKOR = 22968; + +DELETE FROM `gameobject_loot_template` WHERE (`Entry` IN (@TANZAR, @KRAZ, @ASHLI, @HARKOR)) AND (`Item` = @REFIDFOUR); +INSERT INTO `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(@TANZAR, @REFIDFOUR, @REFIDFOUR, 100, 0, 1, 0, 1, 1, 'Tanzar\'s Trunk - Fourth Hostage Loot'), +(@KRAZ, @REFIDFOUR, @REFIDFOUR, 100, 0, 1, 0, 1, 1, 'Kraz\'s Package - Fourth Hostage Loot'), +(@ASHLI, @REFIDFOUR, @REFIDFOUR, 100, 0, 1, 0, 1, 1, 'Ashli\'s Bag - Fourth Hostage Loot'), +(@HARKOR, @REFIDFOUR, @REFIDFOUR, 100, 0, 1, 0, 1, 1, 'Harkor\'s Satchel - Fourth Hostage Loot'); + +DELETE FROM `reference_loot_template` WHERE `Entry` = @REFIDFOUR; +INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(@REFIDFOUR, 33809, 0, 0, 0, 1, 1, 1, 1, 'Zul\'Aman - Fourth Hostage Loot - Amani War Bear'); + +UPDATE `conditions` SET `ElseGroup` = 0 WHERE (`SourceTypeOrReferenceId` = 10) AND (`SourceGroup` = @REFIDTHREE) AND (`ConditionTypeOrReference` = 13) AND (`ConditionValue2` = 3); + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 10) AND (`SourceGroup` = @REFIDFOUR) AND (`ConditionTypeOrReference` = 13) AND (`ConditionValue1` = 8) AND (`ConditionValue2` = 4); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(10, @REFIDFOUR, 33809, 0, 0, 13, 0, 8, 4, 0, 0, 0, 0, '', 'Yield Amani War Bear if all hostages have been rescued'); + diff --git a/src/Bracket_71_74/sql/world/progression_70_5_amani_war_bear_loot_down.sql b/src/Bracket_71_74/sql/world/progression_70_5_amani_war_bear_loot_down.sql new file mode 100644 index 00000000..38ba72fb --- /dev/null +++ b/src/Bracket_71_74/sql/world/progression_70_5_amani_war_bear_loot_down.sql @@ -0,0 +1,20 @@ +SET @REFIDTHREE = 35102, +@REFIDFOUR = 527000, +@TANZAR = 22699, +@KRAZ = 22790, +@ASHLI = 22797, +@HARKOR = 22968; + +DELETE FROM `gameobject_loot_template` WHERE (`Entry` IN (@TANZAR, @KRAZ, @ASHLI, @HARKOR)) AND (`Item` = @REFIDFOUR); + +DELETE FROM `reference_loot_template` WHERE (`Entry` = @REFIDFOUR) AND (`Item` = 33809); + +UPDATE `conditions` SET `ElseGroup` = 1 WHERE (`SourceTypeOrReferenceId` = 10) AND (`SourceGroup` = @REFIDTHREE) AND (`ConditionTypeOrReference` = 13) AND (`ConditionValue2` = 3); + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 10) AND (`SourceGroup` IN (@REFIDTHREE, @REFIDFOUR)) AND (`ConditionTypeOrReference` = 13) AND (`ConditionValue1` = 8) AND (`ConditionValue2` = 4); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(10, @REFIDTHREE, 33496, 0, 2, 13, 0, 8, 4, 0, 0, 0, 0, '', 'Yield third hostage loot if all hostages have been rescued'), +(10, @REFIDTHREE, 33497, 0, 2, 13, 0, 8, 4, 0, 0, 0, 0, '', 'Yield third hostage loot if all hostages have been rescued'), +(10, @REFIDTHREE, 33498, 0, 2, 13, 0, 8, 4, 0, 0, 0, 0, '', 'Yield third hostage loot if all hostages have been rescued'), +(10, @REFIDTHREE, 33499, 0, 2, 13, 0, 8, 4, 0, 0, 0, 0, '', 'Yield third hostage loot if all hostages have been rescued'), +(10, @REFIDTHREE, 33500, 0, 2, 13, 0, 8, 4, 0, 0, 0, 0, '', 'Yield third hostage loot if all hostages have been rescued');