[DiscordArchive] Hey, so I have a small issue on my server, I was hoping to get some support with. I've set the MaxPl
[DiscordArchive] Hey, so I have a small issue on my server, I was hoping to get some support with. I've set the MaxPl
Archived author: Snowcraft • Posted: 2021-12-06T15:37:07.842000+00:00
Original source
I see.
Archived author: Snowcraft • Posted: 2021-12-06T15:37:38.925000+00:00
Original source
But it's still not recognising the server's set max level, to give that bonus money.
Archived author: Snowcraft • Posted: 2021-12-06T15:40:19.342000+00:00
Original source
So, 9000 is 90 silver, so 5700 is 57 silver. 100 silver is one gold... I should be expecting to see 1 gold, 47 silver, right?
Archived author: Jinnai • Posted: 2021-12-06T15:45:03.467000+00:00
Original source
```cpp
int32 Quest::GetRewOrReqMoney(Player const* player) const
{
// RequiredMoney: the amount is the negative copper sum.
if (_rewardMoney < 0)
return _rewardMoney;
// RewardMoney: the positive amount
if (!player || !player->IsMaxLevel())
return int32(_rewardMoney * sWorld->getRate(RATE_MONEY_QUEST));
else // At level cap, the money reward is the maximum amount between normal and bonus money reward
return std::max(int32(GetRewMoneyMaxLevel()), int32(_rewardMoney * sWorld->getRate(RATE_MONEY_QUEST)));
}
uint32 Quest::GetRewMoneyMaxLevel() const
{
// If Quest has flag to not give money on max level, it's 0
if (HasFlag(QUEST_FLAGS_NO_MONEY_FROM_XP))
return 0;
// Else, return the rewarded copper sum modified by the rate
return uint32(_rewardBonusMoney * sWorld->getRate(RATE_MONEY_MAX_LEVEL_QUEST));
}
```
Archived author: Snowcraft • Posted: 2021-12-06T15:52:09.847000+00:00
Original source
Right... I'm not going to pretend I'm smart enough to really get what that means.
Archived author: Snowcraft • Posted: 2021-12-06T15:52:55.981000+00:00
Original source
All I know is I'm at the set MaxPlayerLevel, but that the "IsMaxLevel" isn't recognising that.
Archived author: Jinnai • Posted: 2021-12-06T16:00:36.687000+00:00
Original source
Would be kind of you to open an issue on our github page so this problem won't get lost
Archived author: Snowcraft • Posted: 2021-12-06T16:06:45.372000+00:00
Original source
I just did.
![[Image: unknown.png?ex=690c1eef&is=690acd6f&hm=b...f039d784d&]](https://cdn.discordapp.com/attachments/376457042392514560/917447089972183050/unknown.png?ex=690c1eef&is=690acd6f&hm=bd4cdb92c6cc0ecf6c908cc2c77e624f64e616d181740b8459a50ddf039d784d&)
Archived author: Snowcraft • Posted: 2021-12-06T16:07:12.350000+00:00
Original source
Unfortunately, I don't know the revision of my compile, and my server apparently doesn't either.
![[Image: unknown.png?ex=690c1eef&is=690acd6f&hm=b...f039d784d&]](https://cdn.discordapp.com/attachments/376457042392514560/917447089972183050/unknown.png?ex=690c1eef&is=690acd6f&hm=bd4cdb92c6cc0ecf6c908cc2c77e624f64e616d181740b8459a50ddf039d784d&)
Archived author: Snowcraft • Posted: 2021-12-06T16:07:50.311000+00:00
Original source
I've opened the issue though, with everything relevant I could think of.