Item Use Script |
.@r = getrefine();
.@g = getenchantgrade();
bonus bMdef,10;
bonus bBaseAtk,15*(.@r/2);
bonus bMatk,15*(.@r/2);
bonus bAtkRate,4*(.@r/3);
bonus bMatkRate,4*(.@r/3);
bonus bCritical,3*(.@r/3);
bonus bLongAtkRate,5*(.@r/4);
bonus bShortAtkRate,5*(.@r/4);
bonus2 bMagicAtkEle,Ele_All,5*(.@r/4);
bonus bMaxHPrate,5*(.@r/4);
bonus bAspdRate,5*(.@r/4);
bonus bCritAtkRate,5*(.@r/4);
bonus bDelayrate,-5*(.@r/4);
if (.@r>=7) {
bonus bAtkRate,7;
bonus bMatkRate,7;
}
if (.@r>=9) {
bonus2 bAddRace,RC_All,15;
bonus2 bMagicAddRace,RC_All,15;
}
if (.@r>=12) {
bonus2 bAddEle,Ele_All,15;
bonus2 bMagicAddEle,Ele_All,15;
}
if (.@g>=ENCHANTGRADE_D) {
bonus bAtkRate,5;
bonus bMatkRate,5;
}
if (.@g>=ENCHANTGRADE_C) {
bonus bPow,5;
bonus bSpl,5;
}
if (.@g>=ENCHANTGRADE_B) {
bonus bPAtk,7;
bonus bSMatk,7;
}
if (.@g>=ENCHANTGRADE_A) {
if (.@r>=13) {
bonus2 bAddRace,RC_All,15;
bonus2 bMagicAddRace,RC_All,15;
}
} |