Jump to content

Lincoln Binda

Members
  • Posts

    7
  • Joined

  • Last visited

  • Days Won

    1

Community Answers

  1. Lincoln Binda's post in About SC_ITEMBOOST was marked as the answer   
    if (sd->sc.getSCE(SC_ITEMBOOST)) { // List of item IDs and mob IDs to exclude int excluded_item_ids[] = {1202}; // Knife_ = 1202 int excluded_mob_ids[] = {1002}; // Poring = 1002 // Check if the current item_id and mob_id are not in the excluded lists bool is_excluded_item = false; bool is_excluded_mob = false; for(int i = 0; i < sizeof(excluded_item_ids)/sizeof(excluded_item_ids[0]); i++) { if(item_id == excluded_item_ids[i]) { is_excluded_item = true; break; } } for(int i = 0; i < sizeof(excluded_mob_ids)/sizeof(excluded_mob_ids[0]); i++) { if(mob_id == excluded_mob_ids[i]) { is_excluded_mob = true; break; } } // Only apply the SC_ITEMBOOST if the item and mob aren't in the excluded lists if(!is_excluded_item && !is_excluded_mob) { drop_rate_bonus += sd->sc.getSCE(SC_ITEMBOOST)->val1; } } You can test this or at least get an idea to follow
×
×
  • Create New...