Item Use Script |
1 .@g
2 =
3 getenchantgrade();
4 .@r
5 =
6 getrefine();
7 bonus2
8 bMagicAddRace,RC_All,5*(.@r/3);
9 bonus2
10 bMagicAtkEle,Ele_Earth,7*(.@r/4);
11 bonus2
12 bMagicAtkEle,Ele_Fire,7*(.@r/4);
13 bonus2
14 bMagicAtkEle,Ele_Water,7*(.@r/4);
15 bonus2
16 bMagicAtkEle,Ele_Poison,7*(.@r/4);
17 if
18 (.@r
19 =7)
20 {
21 bonus
22 bRes,50;
23 if
24 (.@r
25 =9)
26 {
27 bonus
28 bVariableCastrate,-10;
29 if
30 (.@r
31 =11)
32 {
33 bonus
34 bFixedCast,-300;
35 bonus
36 bMatkRate,5;
37 }
38 }
39 }
40 if
41 (.@g
42 =ENCHANTGRADE_D)
43 {
44 bonus
45 bMaxHPrate,5;
46 if
47 (.@g
48 =ENCHANTGRADE_C)
49 {
50 bonus
51 bPAtk,3;
52 bonus
53 bSMatk,3;
54 if
55 (.@g
56 =ENCHANTGRADE_B)
57 {
58 bonus
59 bPAtk,2;
60 bonus
61 bSMatk,2;
62 bonus
63 bPow,2;
64 bonus
65 bSpl,2;
66 if
67 (.@g
68 =ENCHANTGRADE_A)
69 {
70 bonus
71 bMRes,50;
72 bonus
73 bRes,50;
74 if
75 (.@r
76 =12)
77 {
78 bonus
79 bFixedCast,-200;
80 }
81 }
82 }
83 }
84 } |