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 ?

 

#2

 


Quote




Where:



result= ITEM_UPGRADE_RESULT_NOCHANGE;



and 



result = ITEM_UPGRADE_RESULT_MINUS;



and 



result = ITEM_UPGRADE_RESULT_BROKEN;




Change to:


Quote




result = ITEM_UPGRADE_RESULT_PLUS;




 

#3
Hi there.As your topic has been answered, and from this topic you can solve your problem or already have I am going to move this topic into our Solved section database.Thankyou,-LCKB Staff



Forum Jump:


Users browsing this thread: 1 Guest(s)