mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/LFG: implement weekly reward counter to limit the first dungeon rewards
* all default random rewards can be rewarded 7 times per week * raid finder first reward can be rewarded once per week * if completionsPerWeek = 0 the currency caps will limit the first rewards otherwise first rewards can be always rewarded * random Cataclysm normal dungeons will now reward 140 Justice points instead of 150 * second reward for random Cataclysm normal dungeons will now reward gold only (need to verify this)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
DROP TABLE IF EXISTS `character_rewardstatus_lfg`;
|
||||
CREATE TABLE `character_rewardstatus_lfg`(
|
||||
`guid` INT(10) NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
|
||||
`dungeonId` SMALLINT(3) NOT NULL DEFAULT 0 COMMENT 'Dungeon ID Identifier',
|
||||
`rewardCount` TINYINT(3) UNSIGNED DEFAULT 0 COMMENT 'Dungeon First Reward Count Identifier',
|
||||
PRIMARY KEY (`dungeonId`)
|
||||
);
|
||||
8
sql/updates/world/4.3.4/custom_2018_04_18_00_world.sql
Normal file
8
sql/updates/world/4.3.4/custom_2018_04_18_00_world.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
ALTER TABLE `lfg_dungeon_rewards` ADD COLUMN `completionsPerWeek` TINYINT(3) UNSIGNED DEFAULT 0 NULL COMMENT 'Maximum amount that the first quest may be rewarded' AFTER `otherQuestId`;
|
||||
|
||||
UPDATE `quest_template` SET `RewardCurrencyId1`= 0, `RewardCurrencyCount1`= 0 WHERE `ID` = 28908;
|
||||
UPDATE `quest_template` SET `RewardCurrencyCount1`= 14000 WHERE `ID` = 28907;
|
||||
UPDATE `quest_template` SET `Flags`= 0 WHERE `ID`= 30110;
|
||||
|
||||
UPDATE `lfg_dungeon_rewards` SET `completionsPerWeek`= 7 WHERE `dungeonId` NOT IN (417, 416, 434, 301);
|
||||
UPDATE `lfg_dungeon_rewards` SET `completionsPerWeek`= 1 WHERE `dungeonId` IN (417, 416);
|
||||
Reference in New Issue
Block a user