LCKB
Upgrade Rates june font - 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)
+----- Thread: Upgrade Rates june font (/showthread.php?tid=1114)

Pages: 1 2


- nettox - 04-06-2021


how can i modify the refinement rate




- rondo157 - 04-06-2021


local/us/font*language*.tex

convert to png by textool, use any photoshop

gl




- netoforlan2 - 04-06-2021


where can i edit Upgrade Rates ?




- Desarija - 04-06-2021



1 hour ago, netoforlan2 said:




where can i edit Upgrade Rates ?




dofuncitem.cpp




- netoforlan2 - 04-07-2021


which line can I edit in dofuncitem.cpp ?




- Desarija - 04-07-2021


below this line

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




- netoforlan2 - 04-08-2021


I'm trying to change the refinement rates using hs to 70%, I'm not getting




- Desarija - 04-08-2021


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

        {

                int prob = GetRandom(1, 100);

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

                {

                    result = ITEM_UPGRADE_RESULT_PLUS;

                }

                else if(prob > 70 && prob <= 80)

                {

                    int rand = GetRandom(1, 2);

                    switch(rand)

                    {

                    case 1:

                        result = ITEM_UPGRADE_RESULT_MINUS;

                        break;

                    case 2:

                        result = ITEM_UPGRADE_RESULT_BROKEN;

                        break;

                    }

                }

                else

                {

                    result = ITEM_UPGRADE_RESULT_NOCHANGE;

                }

}

70% success rate, 20% nochange, 10% broken/decrease




- netoforlan2 - 04-24-2021



On 4/8/2021 at 10:09 AM, Desarija said:




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

        {



                int prob = GetRandom(1, 100);



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

                {



                    result = ITEM_UPGRADE_RESULT_PLUS;

                }

                else if(prob > 70 && prob <= 80)

                {

                    int rand = GetRandom(1, 2);

                    switch(rand)

                    {

                    case 1:

                        result = ITEM_UPGRADE_RESULT_MINUS;

                        break;

                    case 2:

                        result = ITEM_UPGRADE_RESULT_BROKEN;

                        break;

                    }

                }

                else

                {

                    result = ITEM_UPGRADE_RESULT_NOCHANGE;

                }



}



70% success rate, 20% nochange, 10% broken/decrease




You can send me this same code 100% sucess update? I no understand how you defined the 10% break rate, sory you can help me? 




- Dimaflash - 04-24-2021



11 hours ago, netoforlan2 said:




You can send me this same code 100% sucess update? I no understand how you defined the 10% break rate, sory you can help me? 




GetRandom(1, 100);         edit to  -  GetRandom(1, 70);