Item Use Script |
.@g = getenchantgrade();
.@r = getrefine();
bonus bCritical,5;
bonus bBaseAtk,70+12*(.@r/2);
bonus bDef,30*(.@r/2);
if (.@r>=7) {
bonus bPAtk,2;
bonus bAtkRate,3;
bonus bMdef,25;
if (.@r>=9) {
bonus bCRate,3;
bonus bMdef,25;
if (.@r>=11) {
bonus bCritAtkRate,5;
bonus bLongAtkRate,2;
bonus bShortAtkRate,2;
bonus bDelayrate,-10;
}
}
}
if (.@g>=ENCHANTGRADE_D) {
bonus bAtkRate,5;
bonus bBaseAtk,10;
if (.@g>=ENCHANTGRADE_C) {
bonus bCritAtkRate,8;
bonus bAtkRate,8;
bonus bBaseAtk,20;
if (.@g>=ENCHANTGRADE_B) {
bonus bLongAtkRate,5;
bonus bShortAtkRate,5;
bonus bAtkRate,11;
bonus bPow,5;
if (.@g>=ENCHANTGRADE_A) {
bonus bLongAtkRate,7;
bonus bShortAtkRate,7;
bonus bAtkRate,14;
bonus bCrt,5;
}
}
}
} |