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:
parent
8e9906b4ee
commit
ca1ebed94c
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue