Ekli dosyayı görüntüle 344

If your EP (Energy Earnings) doesn't decrease after purchase, do the following:

Search for this code:
Kod:
auto CFirsatiCatch::Buy(LPCHARACTER ch, const BYTE bID) -> void

Replace the code you searched for entirely with the following code:
Kod:
auto CFirsatiCatch::Buy(LPCHARACTER ch, const BYTE bID) -> void
{
    const auto& item = GetTable(bID);
    if (item != nullptr)
    {
        if (item->iTime - get_global_time() < 0)
        {
            ch->ChatPacket(1, "Opportunity expired!");
            return;
        }
        if (ch->GetDragonCoin() < item->wNewPrice)
        {
            ch->ChatPacket(1, "Not enough Dragon Coins!");
            return;
        }
        ch->SetDragonCoin(ch->GetDragonCoin() - item->wNewPrice);
        for (const auto& reward : item->opportunityItems)
        {
            ch->AutoGiveItem(reward.first, reward.second);
        }
    }
}

Download:
<b>[Hidden content]</b>
thanks
 

Konuyu Görüntüleyenler

Geri
Üst Alt