-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,magic_spellbook_hasrunes].cs2
77 lines (77 loc) · 2.65 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// 2620
[proc,magic_spellbook_hasrunes](obj $obj0, obj $obj1, obj $obj2)(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 (~script1897 = 1 & inv_total(inv, blighted_ancient_ice_sack_24607) > 0) {
return(1);
}
case ice_rush_4633, ice_burst_4639 :
if (~script1897 = 1 & inv_total(inv, blighted_ancient_ice_sack_24607) > 0) {
return(1);
}
case bind_3283, snare_3300 :
if (~script1897 = 1 & inv_total(inv, blighted_entangle_sack_24613) > 0) {
return(1);
}
case entangle_3322 :
if (inv_total(inv, rune_pouch_23650) > 0 & ~fake_runes_enabled = 1) {
return(1);
} else if (~script1897 = 1 & inv_total(inv, blighted_entangle_sack_24613) > 0) {
return(1);
}
case tele_block_4555, dead_orb_17152 :
if (~script1897 = 1 & inv_total(inv, blighted_teleport_spell_sack_24615) > 0) {
return(1);
}
case cure_me_9113 :
if (inv_total(inv, rune_pouch_23650) > 0 & ~fake_runes_enabled = 1) {
return(1);
}
case vengeance_other_9135 :
if (~script1897 = 1 & inv_total(inv, blighted_vengeance_sack_24621) > 0) {
return(1);
}
case vengeance_9136 :
if (inv_total(inv, rune_pouch_23650) > 0 & ~fake_runes_enabled = 1) {
return(1);
} else if (~script1897 = 1 & inv_total(inv, blighted_vengeance_sack_24621) > 0) {
return(1);
}
case wind_wave_3313, water_wave_3315, earth_wave_3319, fire_wave_3321 :
if (~script1897 = 1 & inv_total(inv, blighted_surge_sack_26705) > 0) {
return(1);
}
case wind_surge_21876, water_surge_21877, earth_surge_21878, fire_surge_21879 :
if (~script1897 = 1 & inv_total(inv, blighted_surge_sack_26705) > 0) {
return(1);
} else if (inv_total(inv, rune_pouch_23650) > 0 & ~fake_runes_enabled = 1) {
return(1);
}
}
def_obj $obj3 = oc_param($obj0, magic_runetype_1);
if ($obj3 ! null & ~magic_runecount($obj3, $obj1, $obj2) < oc_param($obj0, magic_runecount_1)) {
return(0);
}
$obj3 = oc_param($obj0, magic_runetype_2);
if ($obj3 ! null & ~magic_runecount($obj3, $obj1, $obj2) < oc_param($obj0, magic_runecount_2)) {
return(0);
}
$obj3 = oc_param($obj0, magic_runetype_3);
if ($obj3 ! null & ~magic_runecount($obj3, $obj1, $obj2) < oc_param($obj0, magic_runecount_3)) {
return(0);
}
$obj3 = oc_param($obj0, magic_runetype_4);
if ($obj3 ! null & ~magic_runecount($obj3, $obj1, $obj2) < oc_param($obj0, magic_runecount_4)) {
return(0);
}
def_stat $stat4 = oc_param($obj0, param_1187);
if ($stat4 ! null & stat($stat4) < oc_param($obj0, param_1188)) {
return(0);
}
return(1);