Upgrade Rates june font
#1

how can i modify the refinement rate

#2

local/us/font*language*.tex

convert to png by textool, use any photoshop

gl

#3

where can i edit Upgrade Rates ?

#4


1 hour ago, netoforlan2 said:




where can i edit Upgrade Rates ?




dofuncitem.cpp

#5

which line can I edit in dofuncitem.cpp ?

#6

below this line

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

#7

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

#8

        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

#9


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? 

#10


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



Forum Jump:


Users browsing this thread: 1 Guest(s)