Jump to content

Kouta

Members
  • Posts

    8
  • Joined

  • Last visited

Community Answers

  1. Kouta's post in Refine Chance Bonus was marked as the answer   
    Just solved!
    Applied any percentage plus getequippercentrefinery(<equipped_slot>).
     
    Code Sample:
    Be aware that this code is not "NPC Script" structured! It's just a quote sample.
    // Example: Increase the Success Refining Chance by +10% getequippercentrefinery(EQI_ARMOR) + 10; // Example: Working Refine Chance Applied if ((getequippercentrefinery(EQI_ARMOR) + 10) > rand(100)) successrefitem EQI_ARMOR; // Do the equipped_slot dynamically through: setarray .@equippedParts[1], EQI_HEAD_TOP, EQI_HEAD_MID, EQI_HEAD_LOW, EQI_ARMOR, EQI_HAND_R, EQI_HAND_L, EQI_GARMENT, EQI_SHOES, EQI_ACC_R, EQI_ACC_L; // Create an array with all equipped items, except shadow ones for(.@i = 1; .@i <= getarraysize(.@equippedParts); .@i++) { if (getequipisequiped(.@equippedParts[.@i])) { .@menu$ = .@menu$ + F_getpositionname(.@equippedParts[.@i]); } } // .@selection will be the selected equip from the refine menu (.@selection is the dynamic equipped_slot variable). set .@selection, .@equippedParts[ select(.@menu$) ];  
    -- Solved!
×
×
  • Create New...