-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,magic_spellbook_hasrunes].cs2
59 lines (59 loc) · 1.83 KB
/
[proc,magic_spellbook_hasrunes].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
// 2620
[proc,magic_spellbook_hasrunes](obj $obj0)(int)
switch_obj ($obj0) {
case blood_blitz_4644, blood_barrage_4650 :
if (inv_total(inv, rune_pouch_23650) > 0 & ~fake_runes_enabled = 1) {
return(1);
}
case ice_blitz_4645, ice_barrage_4651 :
if (inv_total(inv, rune_pouch_23650) > 0 & ~fake_runes_enabled = 1) {
return(1);
} else if (~script5223 = 1 & inv_total(inv, blighted_ancient_ice_sack_24607) > 0) {
return(1);
}
case ice_rush_4633, ice_burst_4639 :
if (~script5223 = 1 & inv_total(inv, blighted_ancient_ice_sack_24607) > 0) {
return(1);
}
case bind_3283 :
if (~script5223 = 1 & inv_total(inv, blighted_bind_sack_24609) > 0) {
return(1);
}
case snare_3300 :
if (~script5223 = 1 & inv_total(inv, blighted_snare_sack_24611) > 0) {
return(1);
}
case entangle_3322 :
if (~script5223 = 1 & inv_total(inv, blighted_entangle_sack_24613) > 0) {
return(1);
}
case tele_block_4555, dead_orb_17152 :
if (~script5223 = 1 & inv_total(inv, blighted_teleport_spell_sack_24615) > 0) {
return(1);
}
case vengeance_9136 :
if (~script5223 = 1 & inv_total(inv, blighted_vengeance_sack_24621) > 0) {
return(1);
}
}
def_obj $obj1 = oc_param($obj0, magic_runetype_1);
if ($obj1 ! null & ~magic_runecount($obj1) < oc_param($obj0, magic_runecount_1)) {
return(0);
}
$obj1 = oc_param($obj0, magic_runetype_2);
if ($obj1 ! null & ~magic_runecount($obj1) < oc_param($obj0, magic_runecount_2)) {
return(0);
}
$obj1 = oc_param($obj0, magic_runetype_3);
if ($obj1 ! null & ~magic_runecount($obj1) < oc_param($obj0, magic_runecount_3)) {
return(0);
}
$obj1 = oc_param($obj0, magic_runetype_4);
if ($obj1 ! null & ~magic_runecount($obj1) < oc_param($obj0, magic_runecount_4)) {
return(0);
}
def_stat $stat2 = oc_param($obj0, param_1187);
if ($stat2 ! null & stat($stat2) < oc_param($obj0, param_1188)) {
return(0);
}
return(1);