mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Quests: changed reward and required currency count from tynint to int since…
This commit is contained in:
13
sql/updates/world/4.3.4/2017_10_13_00_world.sql
Normal file
13
sql/updates/world/4.3.4/2017_10_13_00_world.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
ALTER TABLE `quest_template` MODIFY `RewardCurrencyCount1` INT(10) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `quest_template` MODIFY `RewardCurrencyCount2` INT(10) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `quest_template` MODIFY `RewardCurrencyCount3` INT(10) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `quest_template` MODIFY `RewardCurrencyCount4` INT(10) UNSIGNED NOT NULL DEFAULT '0';
|
||||
|
||||
ALTER TABLE `quest_template` MODIFY `RequiredCurrencyCount4` INT(10) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `quest_template` MODIFY `RequiredCurrencyCount4` INT(10) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `quest_template` MODIFY `RequiredCurrencyCount4` INT(10) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `quest_template` MODIFY `RequiredCurrencyCount4` INT(10) UNSIGNED NOT NULL DEFAULT '0';
|
||||
|
||||
UPDATE `quest_template` SET `RewardCurrencyCount1`= 15000, `RewardCurrencyId1`= 396 WHERE `id` IN (28905, 29185);
|
||||
UPDATE `quest_template` SET `RewardCurrencyCount1`= 25000, `RewardCurrencyId1`= 396 WHERE `id` IN (30110, 30111);
|
||||
UPDATE `quest_template` SET `RewardCurrencyCount1`= 15000, `RewardCurrencyId1`= 395 WHERE `id` IN (28906, 29183, 28907, 28908);
|
||||
@@ -63,7 +63,7 @@ void BuildQuestReward(WorldPacket& data, Quest const* quest, Player* player)
|
||||
{
|
||||
data << uint32(currencyId);
|
||||
data << uint32(0);
|
||||
data << uint32(quest->RewardCurrencyCount[i] * CURRENCY_PRECISION);
|
||||
data << uint32(quest->RewardCurrencyCount[i]);
|
||||
data << uint8(1); // Is currency
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ Quest::Quest(Field* questRecord)
|
||||
for (int i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i)
|
||||
{
|
||||
RewardCurrencyId[i] = questRecord[110 + i].GetUInt16();
|
||||
RewardCurrencyCount[i] = questRecord[114 + i].GetUInt8();
|
||||
RewardCurrencyCount[i] = questRecord[114 + i].GetUInt32();
|
||||
|
||||
if (RewardCurrencyId[i])
|
||||
++_rewCurrencyCount;
|
||||
@@ -151,7 +151,7 @@ Quest::Quest(Field* questRecord)
|
||||
for (int i = 0; i < QUEST_REQUIRED_CURRENCY_COUNT; ++i)
|
||||
{
|
||||
RequiredCurrencyId[i] = questRecord[118 + i].GetUInt16();
|
||||
RequiredCurrencyCount[i] = questRecord[122 + i].GetUInt8();
|
||||
RequiredCurrencyCount[i] = questRecord[122 + i].GetUInt32();
|
||||
|
||||
if (RequiredCurrencyId[i])
|
||||
++_reqCurrencyCount;
|
||||
|
||||
Reference in New Issue
Block a user