Jump to content

Recommended Posts

Spoiler

int CHARACTER::ComputeRefineFee(int iCost, int iMultiply) const
{
    CGuild* pGuild = GetRefineGuild();
    if (pGuild)
    {
        if (pGuild == GetGuild())
            return iCost * iMultiply * 9 / 10;

        // 다른 제국 사람이 시도하는 경우 추가로 3배 더
        LPCHARACTER chRefineNPC = CHARACTER_MANAGER::instance().Find(m_dwRefineNPCVID);
        if (chRefineNPC && chRefineNPC->GetEmpire() != GetEmpire())
            return iCost * iMultiply * 5;

        return iCost * iMultiply;
    }
    else
        return iCost;
}

 

void CHARACTER::PayRefineFee(int iTotalMoney)
{
    int iFee = iTotalMoney / 10;
    CGuild* pGuild = GetRefineGuild();

    int iRemain = iTotalMoney;

    if (pGuild)
    {
        // 자기 길드이면 iTotalMoney에 이미 10%가 제외되어있다
        if (pGuild != GetGuild())
        {
            pGuild->RequestDepositMoney(this, iFee);
            iRemain -= iFee;
        }
    }

    PointChange(POINT_GOLD, -iRemain);
}

How to edit the guild blacksmith and to multiply the necessary items and not gold?

Apparently it should be this function.

Thanks for help :) 

Link to comment
https://metin2.dev/topic/10416-guild-blacksmith/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.