![]() |
|
Heavenstone 100% Upgrade - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128) +------ Forum: Solved topics (https://lckb.dev/forum/forumdisplay.php?fid=158) +------ Thread: Heavenstone 100% Upgrade (/showthread.php?tid=4422) |
- PTR321 - 01-23-2021 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 ? - rondo157 - 01-23-2021 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; - cooldude - 01-24-2021 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 |