Quests that require money

Thanks a bunch to bkmangx1 for bringing this to my attention. Quests that require money will now be ignored and not give the player, or deposit to the guild bank, an insane amount of gold.
This commit is contained in:
Revision 2022-12-26 00:05:12 +01:00
parent 8e9906b4ee
commit ca1ebed94c

View file

@ -116,6 +116,10 @@ public:
return; return;
uint32 playerLevel = player->getLevel(); uint32 playerLevel = player->getLevel();
if (quest->GetRewOrReqMoney(playerLevel) < 1)
return;
uint32 money = quest->GetRewOrReqMoney(playerLevel) * gfQuestMultiplier / 100; uint32 money = quest->GetRewOrReqMoney(playerLevel) * gfQuestMultiplier / 100;
if (money < 1) if (money < 1)