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