Code:
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






