Jump to content

How To Make a New Improving Items


Recommended Posts

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:

Spoiler

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:

Spoiler

BDRAGON_SCROLL    = 6,

3. Add:

Spoiler

NEW_BLESSING_SCROLL    = 7,

4. Search:

Spoiler

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

5. Under:

Spoiler

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

6. Add:

Spoiler

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

7. Search:

Spoiler

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:

Spoiler

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

9. Search:

Spoiler

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

10. Add below:

Spoiler

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:

Spoiler

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

12*. Add under:

Spoiler

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

13. Search:

Spoiler

p.prob = prt->prob;

14. Add below:

Spoiler

LPITEM itemScroll = GetInventoryItem(iAdditionalCell);

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

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

Spoiler

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

16. Change for this:

Spoiler

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).

  • Love 4
Link to comment
Share on other sites

  • 1 month later...

[FIX] If you want to make this item work like a Magic Stone search:

Search:

else if (pkItem->GetValue(0) == HYUNIRON_CHN)

	            RefineInformation(pkTarget->GetCell(), REFINE_TYPE_HYUNIRON, pkItem->GetCell());

Add after:

else if (pkItem->GetValue(0) == YOUR_NEW_SCROLL_NAME) 

	            RefineInformation(pkTarget->GetCell(), REFINE_TYPE_HYUNIRON, pkItem->GetCell());

 

With tab's:

http://wklej.org/id/2769137/
Link to comment
Share on other sites

Announcements



×
×
  • 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.