Skip to content

Commit

Permalink
Fix a bothersome crash...
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah committed Dec 11, 2024
1 parent 5648af2 commit afe40c0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions data/sql/db-world/zone_difficulty_mythicmode_hyjal_rewards.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
SET @PRICE := 15;
SET @PRICE2 := 20;
DELETE FROM `zone_difficulty_mythicmode_rewards` WHERE `ContentType` = 18;
INSERT INTO `zone_difficulty_mythicmode_rewards` (`ContentType`, `ItemType`, `Entry`, `Price`, `Enchant`, `EnchantSlot`, `Achievement`, `Enabled`, `Comment`) VALUES
(18, 2, 30913, @PRICE2, 0, 0, 695, 1, 'Robes of Rhonin - Archimonde'),
(18, 2, 30885, @PRICE, 0, 0, 695, 1, 'Archbishop\'s Slippers - Anetheron'),
(18, 2, 30894, @PRICE, 0, 0, 695, 1, 'Blue Suede Shoes - Kazrogal'),
(18, 2, 30912, @PRICE2, 0, 0, 695, 1, 'Leggings of Eternity - Archimonde'),
(18, 2, 30916, @PRICE, 0, 0, 695, 1, 'Leggings of Channeled Elements - Kazrogal'),
(18, 2, 30884, @PRICE, 0, 0, 695, 1, 'Hatefury Mantle - Anetheron'),
(18, 2, 30888, @PRICE, 0, 0, 695, 1, 'Anetheron\'s Noose - Anetheron'),
(18, 2, 30895, @PRICE, 0, 0, 695, 1, 'Angelista\'s Sash - Kazrogal'),
(18, 2, 30870, @PRICE, 0, 0, 695, 1, 'Cuffs of Devastation - Rage Winterchill'),
(18, 2, 30871, @PRICE, 0, 0, 695, 1, 'Bracers of Martyrdom - Rage Winterchill'),

(18, 3, 30905, @PRICE2, 0, 0, 695, 1, 'Midnight Chestguard - Archimonde'),
(18, 3, 30899, @PRICE, 0, 0, 695, 1, 'Don Rodrigo\'s Poncho - Azgalor'),
(18, 3, 30886, @PRICE, 0, 0, 695, 1, 'Enchanted Leather Sandals - Anetheron'),
(18, 3, 30891, @PRICE, 0, 0, 695, 1, 'Black Featherlight Boots - Kazrogal'),
(18, 3, 30898, @PRICE, 0, 0, 695, 1, 'Shady Dealer\'s Pantaloons - Azgalor'),
(18, 3, 30917, @PRICE, 0, 0, 695, 1, 'Razorfury Mantle - Kazrogal'),
(18, 3, 30879, @PRICE, 0, 0, 695, 1, 'Don Alejandro\'s Money Belt - Anetheron'),
(18, 3, 30914, @PRICE, 0, 0, 695, 1, 'Belt of the Crescent Moon - Kazrogal'),
(18, 3, 30863, @PRICE, 0, 0, 695, 1, 'Deadly Cuffs - Rage Winterchill'),
(18, 3, 30868, @PRICE, 0, 0, 695, 1, 'Rejuvenating Bracers - Rage Winterchill');

3 changes: 2 additions & 1 deletion src/mod_zone_difficulty_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ class mod_zone_difficulty_rewardnpc : public CreatureScript
++i;
}
}
else if (action < 1200)
// Number is too low... ALWAYS remember to check if the number is too low when adding new bracket. Else enjoy crash <3
else if (action < 1900)
{
npcText = NPC_TEXT_ITEM;
uint32 category = 0;
Expand Down

0 comments on commit afe40c0

Please sign in to comment.