-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,script6319].cs2
52 lines (52 loc) · 2.25 KB
/
[clientscript,script6319].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
// 6319
[clientscript,script6319](int $int0, obj $obj1, component $component2, component $component3)
if ($obj1 = null) {
return;
}
def_int $int4 = 0;
def_int $int5 = 0;
def_int $int6 = 0;
def_int $int7 = 0;
def_int $int8 = 0;
def_int $int9 = 0;
def_int $int10 = 0;
def_int $int11 = 0;
$int4, $int5, $int6, $int7, $int8, $int9, $int10, $int11 = ~script6335($int0);
def_int $intarray0(calc(23 + 1));
def_int $int12 = 23;
while ($int12 > 0) {
switch_int ($int12) {
case 1 :
$intarray0($int12) = $int4;
case 2 :
$intarray0($int12) = $int5;
case 3 :
$intarray0($int12) = $int6;
case 4 :
$intarray0($int12) = $int7;
case 5 :
$intarray0($int12) = $int8;
case 6 :
$intarray0($int12) = $int9;
case 7 :
$intarray0($int12) = $int10;
case default :
$intarray0($int12) = $int11;
}
$int12 = calc($int12 - 1);
}
def_int $int13 = enum_getoutputcount(enum_4390);
while ($int13 > 0) {
$int13 = calc($int13 - 1);
if ($obj1 = enum(int, namedobj, enum_4390, $int13)) {
if (oc_param($obj1, param_434) ! null & oc_param($obj1, param_436) > $intarray0(enum(stat, int, enum_81, oc_param($obj1, param_434))) | oc_param($obj1, param_435) ! null & oc_param($obj1, param_437) > $intarray0(enum(stat, int, enum_81, oc_param($obj1, param_435))) | oc_param($obj1, param_191) ! null & oc_param($obj1, param_613) > $intarray0(enum(stat, int, enum_81, oc_param($obj1, param_191))) | oc_param($obj1, param_579) ! null & oc_param($obj1, param_614) > $intarray0(enum(stat, int, enum_81, oc_param($obj1, param_579))) | oc_param($obj1, param_610) ! null & oc_param($obj1, param_615) > $intarray0(enum(stat, int, enum_81, oc_param($obj1, param_610))) | oc_param($obj1, param_611) ! null & oc_param($obj1, param_616) > $intarray0(enum(stat, int, enum_81, oc_param($obj1, param_611))) | oc_param($obj1, param_612) ! null & oc_param($obj1, param_617) > $intarray0(enum(stat, int, enum_81, oc_param($obj1, param_612)))) {
mes("<oc_name($obj1)>: This build's stats will not permit you to equip that item.");
} else if (cc_find($component2, $int13) = ^true) {
~scrollbar_resize($component3, $component2, cc_gety);
} else {
mes("<oc_name($obj1)>: Unable to scroll to that item.");
}
return;
}
}
mes("<oc_name($obj1)>: That item is not in the list at present. Please try something else.");