Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.3.4] Random Battleground Daily Reward #11552

Closed
puka opened this issue Feb 2, 2014 · 6 comments
Closed

[4.3.4] Random Battleground Daily Reward #11552

puka opened this issue Feb 2, 2014 · 6 comments

Comments

@puka
Copy link

puka commented Feb 2, 2014

When you win a battleground using the Random Battleground queue, you win 4000 honor points (max honor). Its seem that is taking the WOTLK system reward and not the Cataclysm Reward.

Thanks and sorry for my english.

TrinityCore rev. d349e61 2014-02-02 11:59:27 +0100 (4.3.4 branch) (Unix, Release)
DB: TDB_full_434.05_2013_07_17 + 4.3.4 DB_alpha

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@killradio
Copy link

Confirm + "conquest points this week" bar bugged as well.

@OneB1t
Copy link

OneB1t commented Feb 5, 2014

void Player::SendPvPRewards()
{
    uint32 t1 = GetCurrencyWeekCap(CURRENCY_TYPE_CONQUEST_POINTS, true);
    uint32 t2 = GetCurrencyOnWeek(CURRENCY_TYPE_CONQUEST_POINTS, true);
    uint32 t3 = GetCurrencyWeekCap(CURRENCY_TYPE_CONQUEST_META_ARENA, true);
    uint32 t4 = GetCurrencyOnWeek(CURRENCY_TYPE_CONQUEST_META_RBG, true);
    uint32 t5 = GetCurrencyOnWeek(CURRENCY_TYPE_CONQUEST_META_ARENA, true);
    uint32 t6 = GetCurrencyWeekCap(CURRENCY_TYPE_CONQUEST_POINTS, true);


    WorldPacket packet(SMSG_REQUEST_PVP_REWARDS_RESPONSE, 24);
    packet << t1;
    packet << t2;
    packet << t3;
    packet << t4;
    packet << t5;
    packet << t6;
    GetSession()->SendPacket(&packet);
}


uint32 Player::_GetCurrencyWeekCap(const CurrencyTypesEntry* currency) const
{
    uint32 cap = currency->WeekCap;

    switch (currency->ID)
    {
        //original conquest not have week cap
    case CURRENCY_TYPE_CONQUEST_POINTS:
        return std::max(GetCurrencyWeekCap(CURRENCY_TYPE_CONQUEST_META_ARENA, false), GetCurrencyWeekCap(CURRENCY_TYPE_CONQUEST_META_RBG, false));
    case CURRENCY_TYPE_CONQUEST_META_ARENA:
        // should add precision mod = 100
        return Trinity::Currency::ConquestRatingCalculator(_maxPersonalArenaRate) * CURRENCY_PRECISION;
    case CURRENCY_TYPE_CONQUEST_META_RBG:
        // should add precision mod = 100
        return Trinity::Currency::BgConquestRatingCalculator(GetRBGPersonalRating()) * CURRENCY_PRECISION;
    }

    if (cap != currency->WeekCap && IsInWorld() && !GetSession()->PlayerLoading())
    {
        WorldPacket packet(SMSG_UPDATE_CURRENCY_WEEK_LIMIT, 8);
        packet << uint32(cap / ((currency->Flags & CURRENCY_FLAG_HIGH_PRECISION) ? 100 : 1));
        packet << uint32(currency->ID);
        GetSession()->SendPacket(&packet);
    }

    return cap;
}

this is for conquest point fix ;)

@burnham
Copy link
Contributor

burnham commented Mar 18, 2014

And what about he honor points?.

@Aokromes
Copy link
Member

Anyone can create a PR about this?

@Shauren
Copy link
Member

Shauren commented Aug 27, 2014

Objection. That is a horrible hack with horrible design.

@Aokromes Aokromes added this to the 4.3.4 opcodes milestone Aug 28, 2014
@DDuarte
Copy link
Contributor

DDuarte commented Sep 2, 2014

The hack is not required at all.

@Carbenium Carbenium modified the milestone: 4.3.4 opcodes Jun 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants