Core/Quests: changed reward and required currency count from tynint to int since…
This commit is contained in:
1 parent
50eb2f990f
commit
ca639b8ea4
3 files changed
+16
-3
No files matched your search
@@ -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