Item Use Script |
.@r = getrefine();
.@g = getenchantgrade();
bonus bBaseAtk,150+(15*(.@r/2));
bonus bMatk,150+(15*(.@r/2));
bonus bAtkRate,2*(.@r/3);
bonus bMatkRate,2*(.@r/3);
if (.@r>=7) {
bonus2 bIgnoreDefRaceRate,RC_All,30;
bonus2 bIgnoreMdefRaceRate,RC_All,30;
if (.@r>=9) {
bonus bDelayrate,-10;
if (.@r>=11) {
bonus bShortAtkRate,10;
bonus bLongAtkRate,10;
bonus2 bMagicAtkEle,Ele_All,10;
if (.@r>=12) {
bonus bUnbreakableArmor;
if (.@r>=13) {
bonus2 bAddEle,Ele_All,15;
bonus2 bMagicAddEle,Ele_All,15;
}
}
}
}
}
if (.@g>=ENCHANTGRADE_D) {
bonus bAtkRate,3*(.@r/2);
bonus bMatkRate,3*(.@r/2);
}
if (.@g>=ENCHANTGRADE_C) {
bonus bShortAtkRate,3*(.@r/2);
bonus bLongAtkRate,3*(.@r/2);
bonus2 bMagicAtkEle,Ele_All,3*(.@r/2);
}
if (.@g>=ENCHANTGRADE_B) {
bonus bPAtk,.@r/2;
bonus bSMatk,.@r/2;
}
if (.@g>=ENCHANTGRADE_A) {
bonus2 bAddRace,RC_All,2*(.@r/2);
bonus2 bMagicAddRace,RC_All,2*(.@r/2);
} |