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