| 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 bAddSize,Size_All,5*(.@r/3);
13 bonus
14 bAtkRate,5*(.@r/4);
15 if
16 (.@r
17 =7)
18 {
19 bonus
20 bLongAtkRate,10;
21 bonus
22 bShortAtkRate,10;
23 if
24 (.@r
25 =9)
26 {
27 bonus
28 bPAtk,8;
29 if
30 (.@r
31 =10)
32 {
33 bonus
34 bAspdRate,10;
35 if
36 (.@r
37 =11)
38 {
39 bonus
40 bFixedCast,-500;
41 bonus
42 bCritical,10;
43 }
44 }
45 }
46 }
47 if
48 (.@g
49 =ENCHANTGRADE_D)
50 {
51 bonus
52 bPAtk,7;
53 if
54 (.@g
55 =ENCHANTGRADE_C)
56 {
57 bonus2
58 bIgnoreResRaceRate,RC_All,5;
59 bonus2
60 bIgnoreResRaceRate,RC_Player_Human,-5;
61 bonus2
62 bIgnoreResRaceRate,RC_Player_Doram,-5;
63 if
64 (.@g
65 =ENCHANTGRADE_B)
66 {
67 bonus2
68 bAddRace,RC_All,15;
69 bonus2
70 bAddRace,RC_Player_Human,-15;
71 bonus2
72 bAddRace,RC_Player_Doram,-15;
73 if
74 (.@g
75 =ENCHANTGRADE_A)
76 {
77 bonus2
78 bIgnoreResRaceRate,RC_All,5;
79 bonus2
80 bIgnoreResRaceRate,RC_Player_Human,-5;
81 bonus2
82 bIgnoreResRaceRate,RC_Player_Doram,-5;
83 }
84 }
85 }
86 } |