Forums WoW Modding Support Archives TrinityCore Discord Archives [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

[DiscordArchive] Hey, so I have a small issue on my server, I was hoping to get some support with. I've set the MaxPl

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
12-06-2021, 03:37 PM
#11
Archived author: Snowcraft • Posted: 2021-12-06T15:37:07.842000+00:00
Original source

I see.
rektbyfaith
12-06-2021, 03:37 PM #11

Archived author: Snowcraft • Posted: 2021-12-06T15:37:07.842000+00:00
Original source

I see.

rektbyfaith
Administrator
0
12-06-2021, 03:37 PM
#12
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.
rektbyfaith
12-06-2021, 03:37 PM #12

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.

rektbyfaith
Administrator
0
12-06-2021, 03:40 PM
#13
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?
rektbyfaith
12-06-2021, 03:40 PM #13

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?

rektbyfaith
Administrator
0
12-06-2021, 03:45 PM
#14
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));
}
```
rektbyfaith
12-06-2021, 03:45 PM #14

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));
}
```

rektbyfaith
Administrator
0
12-06-2021, 03:52 PM
#15
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.
rektbyfaith
12-06-2021, 03:52 PM #15

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.

rektbyfaith
Administrator
0
12-06-2021, 03:52 PM
#16
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.
rektbyfaith
12-06-2021, 03:52 PM #16

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.

rektbyfaith
Administrator
0
12-06-2021, 04:00 PM
#17
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
rektbyfaith
12-06-2021, 04:00 PM #17

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

rektbyfaith
Administrator
0
12-06-2021, 04:06 PM
#18
Archived author: Snowcraft • Posted: 2021-12-06T16:06:45.372000+00:00
Original source

I just did.
rektbyfaith
12-06-2021, 04:06 PM #18

Archived author: Snowcraft • Posted: 2021-12-06T16:06:45.372000+00:00
Original source

I just did.

rektbyfaith
Administrator
0
12-06-2021, 04:07 PM
#19
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&]
rektbyfaith
12-06-2021, 04:07 PM #19

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&]

rektbyfaith
Administrator
0
12-06-2021, 04:07 PM
#20
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.
rektbyfaith
12-06-2021, 04:07 PM #20

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.

Pages (3): Previous 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)