case RK_RUNEMASTERY:
{
// make_per = 5 * (sd->itemid + pc_checkskill(sd,skill_id)) * 100;
int A = 0, B = 0, C = 0, D = 0;
A = 100 * (51 + 2 * pc_checkskill(sd, skill_id));
B = 100 * status->dex / 30 + 10 * (status->luk + s_job_level);
C = 100 * (2 + 3 * (sd->itemid - 1)); //itemid depend on used rune
switch (nameid) { //rune rank it_diff 9 craftable rune
case 12727: D = -20;
break; //Rank S (Verkana,)
case 12725: // Runstone_Nosiege
case 12730:
D = -15;
break; //Rank A (Urz)
case 12728: //Isia
case 12732: //Pertz
D = -10;
break; //Rank B
case 12726: // Runstone_Rhydo
case 12731: //Turisus
case 12733: //Hagalaz
case 12729: //Asir
D = -5;
break; //Rank C
default: D = -15;
break; //not specified =-15%
}
D = 100 * D;
make_per = A + B + C + D;
}