Heavenstone 100% Upgrade
#1

Hey Guys, 

can anyone help me what i need to change here to get 100% upgrade rate up to +30? ? 

else if (reItem->m_itemProto->getItemNum0() == IETC_UPGRADE_SPECIAL)

        {

            // Àá¼öÇÔ : °íÁ¦ È®·ü Á¶Á¤

            // +14¿¡ °íÁ¦ »ç¿ë½Ã¿¡´Â È®·ü Á¶Á¤, ±×¿Ü´Â ±âÁ¸°ú µ¿ÀÏ

            if (upItem->getPlus() >= 18)

            {

                int prob = GetRandom(1, 100);

                int upprob = 60 - (upItem->getPlus() + 32);

                if (g_bUpgradeEvent)

                    upprob = (upprob * g_nUpgradeProb) / 100;

                if (upprob < 0)

                    upprob = 1;

                // ¼º°ø/º¯ÇÔ¾øÀ½(+3¹Ì¸¸)/½ÇÆÐ

                if (prob > 0 && prob <= 10)

                {

                    int rand = GetRandom(1, 2);

                    switch (rand)

                    {

                    case 1:

                        result = ITEM_UPGRADE_RESULT_MINUS;

                        break;

                    case 2:

                        result = ITEM_UPGRADE_RESULT_BROKEN;

                        break;

                    }

                }

                else if (prob > 10 && prob <= 10 + upprob)

                {

                    result = ITEM_UPGRADE_RESULT_PLUS;

                }

                else

                {

                    result = ITEM_UPGRADE_RESULT_NOCHANGE;

                }

            }

            else

            {

                int prob = GetRandom(1, 100);

                int upprob = 60 - (upItem->getPlus() * 3);

                if (g_bUpgradeEvent)

                    upprob = (upprob * g_nUpgradeProb) / 100;

                if (prob > 0 && prob <= 7)

                {

                    result = ITEM_UPGRADE_RESULT_BROKEN;

                    if (upItem->getPlus() < 3)

                        result = ITEM_UPGRADE_RESULT_NOCHANGE;

                }

                else if (prob > 7 && prob <= (7 + 13))

                {

                    result = ITEM_UPGRADE_RESULT_MINUS;

                    if (upItem->getPlus() < 3)

                        result = ITEM_UPGRADE_RESULT_NOCHANGE;

                }

                else if (prob > 20 && prob <= (20 + upprob))

                {

                    result = ITEM_UPGRADE_RESULT_PLUS;

                }

                else

                    result = ITEM_UPGRADE_RESULT_NOCHANGE;

            }

        }

thanks in advance 

PTR321 ?

 



Messages In This Thread
[No subject] - by PTR321 - 01-23-2021, 04:37 PM
[No subject] - by rondo157 - 01-23-2021, 05:34 PM
[No subject] - by cooldude - 01-24-2021, 05:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)