-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,autocast_tooltip].cs2
250 lines (250 loc) · 10.4 KB
/
[proc,autocast_tooltip].cs2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
// 239
[proc,autocast_tooltip](component $component0, obj $obj1)
if ($obj1 = null) {
if (cc_find($component0, 0) = ^true) {
cc_sethide(false);
}
if (cc_find($component0, 1) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 2) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 3) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 4) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 5) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 6) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 7) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 8) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 9) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 10) = ^true) {
cc_sethide(true);
}
return;
}
if (cc_find($component0, 0) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 1) = ^true) {
cc_sethide(false);
cc_settext("Level <tostring(oc_param($obj1, spell_levelreq))>: <oc_param($obj1, spell_name)>");
}
if (cc_find($component0, 2) = ^true) {
cc_sethide(false);
cc_settext(oc_param($obj1, spell_desc));
}
def_obj $obj2 = oc_param($obj1, magic_runetype_1);
def_int $int3 = oc_param($obj1, magic_runecount_1);
def_obj $obj4 = oc_param($obj1, magic_runetype_2);
def_int $int5 = oc_param($obj1, magic_runecount_2);
def_obj $obj6 = oc_param($obj1, magic_runetype_3);
def_int $int7 = oc_param($obj1, magic_runecount_3);
def_obj $obj8 = oc_param($obj1, magic_runetype_4);
def_int $int9 = oc_param($obj1, magic_runecount_4);
switch_obj ($obj1) {
case ice_rush_4633, ice_burst_4639, ice_blitz_4645, ice_barrage_4651 :
if (~script5223 = 1 & inv_total(inv, blighted_ancient_ice_sack_24607) > 0) {
$obj8, $int9 = blighted_ancient_ice_sack_24607, 1;
}
case bind_3283 :
if (~script5223 = 1 & inv_total(inv, blighted_bind_sack_24609) > 0) {
$obj8, $int9 = blighted_bind_sack_24609, 1;
}
case snare_3300 :
if (~script5223 = 1 & inv_total(inv, blighted_snare_sack_24611) > 0) {
$obj8, $int9 = blighted_snare_sack_24611, 1;
}
case entangle_3322 :
if (~script5223 = 1 & inv_total(inv, blighted_entangle_sack_24613) > 0) {
$obj8, $int9 = blighted_entangle_sack_24613, 1;
}
case tele_block_4555, dead_orb_17152 :
if (~script5223 = 1 & inv_total(inv, blighted_teleport_spell_sack_24615) > 0) {
$obj8, $int9 = blighted_teleport_spell_sack_24615, 1;
}
case vengeance_9136 :
if (~script5223 = 1 & inv_total(inv, blighted_vengeance_sack_24621) > 0) {
$obj8, $int9 = blighted_vengeance_sack_24621, 1;
}
case wind_wave_3313 :
if (~script5223 = 1 & inv_total(inv, blighted_wave_sack_26704) > 0) {
$obj6, $int7 = blighted_wave_sack_26704, 1;
}
case water_wave_3315, earth_wave_3319, fire_wave_3321 :
if (~script5223 = 1 & inv_total(inv, blighted_wave_sack_26704) > 0) {
$obj8, $int9 = blighted_wave_sack_26704, 1;
}
case wind_surge_21876 :
if (~script5223 = 1 & inv_total(inv, blighted_surge_sack_26705) > 0) {
$obj6, $int7 = blighted_surge_sack_26705, 1;
}
case water_surge_21877, earth_surge_21878, fire_surge_21879 :
if (~script5223 = 1 & inv_total(inv, blighted_surge_sack_26705) > 0) {
$obj8, $int9 = blighted_surge_sack_26705, 1;
}
}
def_int $int10 = 4;
if ($obj8 = null) {
if ($obj6 = null) {
if ($obj4 = null) {
if ($obj2 = null) {
if (cc_find($component0, 3) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 4) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 5) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 6) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 7) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 8) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 9) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 10) = ^true) {
cc_sethide(true);
}
return;
}
if (cc_find($component0, 3) = ^true & .cc_find($component0, 4) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(0, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj2, $int3);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj2, $int3, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj2, $int3, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
if (cc_find($component0, 5) = ^true & .cc_find($component0, 6) = ^true) {
cc_sethide(true);
.cc_sethide(true);
}
if (cc_find($component0, 7) = ^true & .cc_find($component0, 8) = ^true) {
cc_sethide(true);
.cc_sethide(true);
}
if (cc_find($component0, 9) = ^true & .cc_find($component0, 10) = ^true) {
cc_sethide(true);
.cc_sethide(true);
}
} else {
if (cc_find($component0, 3) = ^true & .cc_find($component0, 4) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(-32, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(-32, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj2, $int3);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj2, $int3, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj2, $int3, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
if (cc_find($component0, 5) = ^true & .cc_find($component0, 6) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(32, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(32, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj4, $int5);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj4, $int5, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj4, $int5, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
if (cc_find($component0, 7) = ^true & .cc_find($component0, 8) = ^true) {
cc_sethide(true);
.cc_sethide(true);
}
if (cc_find($component0, 9) = ^true & .cc_find($component0, 10) = ^true) {
cc_sethide(true);
.cc_sethide(true);
}
}
} else {
if (cc_find($component0, 3) = ^true & .cc_find($component0, 4) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(-53, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(-53, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj2, $int3);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj2, $int3, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj2, $int3, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
if (cc_find($component0, 5) = ^true & .cc_find($component0, 6) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(0, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj4, $int5);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj4, $int5, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj4, $int5, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
if (cc_find($component0, 7) = ^true & .cc_find($component0, 8) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(53, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(53, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj6, $int7);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj6, $int7, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj6, $int7, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
if (cc_find($component0, 9) = ^true & .cc_find($component0, 10) = ^true) {
cc_sethide(true);
.cc_sethide(true);
}
}
} else {
if (cc_find($component0, 3) = ^true & .cc_find($component0, 4) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(-61, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(-61, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj2, $int3);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj2, $int3, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj2, $int3, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
if (cc_find($component0, 5) = ^true & .cc_find($component0, 6) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(-20, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(-20, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj4, $int5);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj4, $int5, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj4, $int5, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
if (cc_find($component0, 7) = ^true & .cc_find($component0, 8) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(20, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(20, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj6, $int7);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj6, $int7, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj6, $int7, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
if (cc_find($component0, 9) = ^true & .cc_find($component0, 10) = ^true) {
cc_sethide(false);
.cc_sethide(false);
cc_setposition(61, 37, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(61, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
~autocast_tooltip_runecount(false, $obj8, $int9);
cc_setoninvtransmit("autocast_tooltip_runecount(false, $obj8, $int9, event_com, cc_getid, .cc_getid){inv, worn}");
cc_setonvartransmit("autocast_tooltip_runecount(false, $obj8, $int9, event_com, cc_getid, .cc_getid){var638, var375, var1139, var1140, var1377, var1105, var3464}");
}
}