Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 03:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C++]Guild Blacksmith

Discussion on [C++]Guild Blacksmith within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
stenlykkk's Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 42
Received Thanks: 7
[C++]Guild Blacksmith

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
stenlykkk is offline  
Reply


Similar Threads Similar Threads
Blacksmith Mod?
08/01/2013 - Mabinogi - 8 Replies
well guys ive searched and didnt quite find what i was looking for. I have a r4 blacksmith as my main talent for keeping me busy right now, but the hundreds and probably almost thousands of items ive made, only 3 have had my Signature on them, i have a Blacksmith hammer with x5 exp level and 3 level for blacksmith success, i hit the X mark's pretty evenly everytime and i wait till almos the last second to smack the mark down, im just confused i should be having more items Sigged right? What im...
New BlackSmith
07/30/2013 - Metin2 Private Server - 0 Replies
How to add new BlackSmith who take 1 event item and Upgrade item for item and item and upgrade 100%secsec
Blacksmith help
02/25/2013 - Dekaron Private Server - 9 Replies
Hey guys, I'm trying to add a new blacksmith NPC in different map from loa/braiken. I have it displaying on my map already. It just says the conv. I set in the csv file, but no job. I just don't know how to make it so it's job works and actually allows you to buy/sell stuff and upgrade your gear there. Any help is appreciated, thanks.
Is there a blacksmith mod?
07/31/2010 - Mabinogi - 10 Replies
there used to be one, inject with PerX..it was awesome sped the whole mini game crap out really conveniently, but is there a new one? or does that still work...I lost it, please help, blacksmihting is really irritating and nobody knows the perfect ways to do it without mods, like order and timing stuff.
Blacksmith
06/27/2008 - Kal Online - 2 Replies
kann mir einer die sachen für blacksmith sagen,ich meine das wen ich f1 drücke das blacksmith fenster geöffnet wird.also in welche zahl ich s100001 umändern muss. danke im voraus



All times are GMT +2. The time now is 03:22.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.