User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Metin2 New Improving Items

Hello !

Today I'm going to show you how to add new Blessing Scroll or Magic Stone with bigger chance for upgrade.

1. Go to game/src/char_item.cpp and find:

  

enum enum_RefineScrolls
{
    CHUKBOK_SCROLL = 0,
    HYUNIRON_CHN   = 1,
    YONGSIN_SCROLL = 2,
    MUSIN_SCROLL   = 3,
    YAGONG_SCROLL  = 4,
    MEMO_SCROLL       = 5,
    BDRAGON_SCROLL    = 6,
};

2. Under:

  

BDRAGON_SCROLL    = 6,

3. Add:

  

NEW_BLESSING_SCROLL    = 7,

4. Search:

  

if (pkItemScroll->GetValue(0) == HYUNIRON_CHN || 
    pkItemScroll->GetValue(0) == YONGSIN_SCROLL || 
    pkItemScroll->GetValue(0) == YAGONG_SCROLL)

5. Under:

  

pkItemScroll->GetValue(0) == YONGSIN_SCROLL || 

6. Add:

  

pkItemScroll->GetValue(0) == NEW_BLESSING_SCROLL || 

7. Search:

  

if (pkItemScroll->GetValue(0) == YONGSIN_SCROLL)
{
    if (LC_IsYMIR() == true || LC_IsKorea() == true)
        success_prob = hyuniron_prob_euckr[MINMAX(0, item->GetRefineLevel(), 8)];
    else
        success_prob = hyuniron_prob[MINMAX(0, item->GetRefineLevel(), 8)];
}

8. Add below:

  

else if (pkItemScroll->GetValue(0) == NEW_BLESSING_SCROLL)
{
        success_prob += 10; //the chance of a successful improvement is increased by 10%

9. Search:

  

else if (pkItemScroll->GetValue(0) == YONGSIN_SCROLL)
{
    szRefineType = "GOD_SCROLL";
}

10. Add below:

  

else if (pkItemScroll->GetValue(0) == NEW_BLESSING_SCROLL)
{
    szRefineType = "NEW_BLESSING_SCROLL";
}

11*. If you want to make this item work like a Magic Stone search:

  

if (pkItemScroll->GetValue(0) == HYUNIRON_CHN)
    bDestroyWhenFail = true;

12*. Add under:

  

else if (pkItemScroll->GetValue(0) == NEW_BLESSING_SCROLL)
    bDestroyWhenFail = true;

13. Search:

  

p.prob = prt->prob;

14. Add below:

  

LPITEM itemScroll = GetInventoryItem(iAdditionalCell);

if (itemScroll->GetValue(0) == NEW_BLESSING_SCROLL)
    p.prob = prt->prob+10;

15. Go to root/uiRefine.py and search:

  

self.probText.SetText(localeInfo.REFINE_SUCCESS_PROBALITY % (self.percentage))

16. Change for this:

  

if self.percentage >= 100:
    self.probText.SetText(localeInfo.REFINE_SUCCESS_PROBALITY % (100))
else:
    self.probText.SetText(localeInfo.REFINE_SUCCESS_PROBALITY % (self.percentage))

17. Now change in item_proto value0 to 7 (or number which you set in third step).

0
0
0
s2smodern

Metin2play.info Metin2 Global Community!