Jump to content

jhof10

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by jhof10

  1. On 5/7/2023 at 3:54 PM, joecalis said:

    in atcommand.cpp

    Find:

    			for (j=0; j < MAX_SEARCH && item_data->mob[j].chance > 0; j++)
    			{
    				int dropchance = item_data->mob[j].chance;

    Change To:

    			for (j=0; j < MAX_SEARCH && item_data->mob[j].chance > 0; j++)
    			{
    				int dropchance = item_data->mob[j].chance;
      				int dropbonus = 0;

    Find:

    #endif
    				if (pc_isvip(sd)) // Display item rate increase for VIP
    					dropchance += (dropchance * battle_config.vip_drop_increase) / 100;
    				sprintf(atcmd_output, "- %s (%d): %02.02f%%", mob_db(item_data->mob[j].id)->jname, item_data->mob[j].id, dropchance/100.);

    Change To:

    #endif
      				if(sd->sc.count && sd->sc.data[SC_ITEMBOOST]) // Display drop rate increase for SC_ITEMBOOST eg. Bubblegum
    					dropbonus += (dropchance * sd->sc.data[SC_ITEMBOOST]->val1) / 100;
    				if (pc_isvip(sd)) // Display item rate increase for VIP
    					dropbonus += (dropchance * battle_config.vip_drop_increase) / 100;
    				if(dropbonus)
    					sprintf(atcmd_output, "- %s (%d): %02.02f%% + (%02.02f%%)", mob_db(item_data->mob[j].id)->jname, item_data->mob[j].id, dropchance/100., dropbonus/100.);
                    else
    					sprintf(atcmd_output, "- %s (%d): %02.02f%%", mob_db(item_data->mob[j].id)->jname, item_data->mob[j].id, dropchance/100.);

     

    Hi @joecalis

    May I ask your inputs to work on latest pull rathena ?

    Thank you

×
×
  • Create New...