Item Use Script |
1 .@r
2 =
3 getrefine();
4 .@g
5 =
6 getenchantgrade();
7 bonus
8 bBaseAtk,150+(15*(.@r/2));
9 bonus
10 bMatk,150+(15*(.@r/2));
11 bonus
12 bAtkRate,2*(.@r/3);
13 bonus
14 bMatkRate,2*(.@r/3);
15 if
16 (.@r
17 =7)
18 {
19 bonus2
20 bIgnoreDefRaceRate,RC_All,30;
21 bonus2
22 bIgnoreMdefRaceRate,RC_All,30;
23 if
24 (.@r
25 =9)
26 {
27 bonus
28 bDelayrate,-10;
29 if
30 (.@r
31 =11)
32 {
33 bonus
34 bShortAtkRate,10;
35 bonus
36 bLongAtkRate,10;
37 bonus2
38 bMagicAtkEle,Ele_All,10;
39 if
40 (.@r
41 =12)
42 {
43 bonus
44 bUnbreakableArmor;
45 if
46 (.@r
47 =13)
48 {
49 bonus2
50 bAddEle,Ele_All,15;
51 bonus2
52 bMagicAddEle,Ele_All,15;
53 }
54 }
55 }
56 }
57 }
58 if
59 (.@g
60 =ENCHANTGRADE_D)
61 {
62 bonus
63 bAtkRate,3*(.@r/2);
64 bonus
65 bMatkRate,3*(.@r/2);
66 }
67 if
68 (.@g
69 =ENCHANTGRADE_C)
70 {
71 bonus
72 bShortAtkRate,3*(.@r/2);
73 bonus
74 bLongAtkRate,3*(.@r/2);
75 bonus2
76 bMagicAtkEle,Ele_All,3*(.@r/2);
77 }
78 if
79 (.@g
80 =ENCHANTGRADE_B)
81 {
82 bonus
83 bPAtk,.@r/2;
84 bonus
85 bSMatk,.@r/2;
86 }
87 if
88 (.@g
89 =ENCHANTGRADE_A)
90 {
91 bonus2
92 bAddRace,RC_All,2*(.@r/2);
93 bonus2
94 bMagicAddRace,RC_All,2*(.@r/2);
95 } |