This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[clientscript,script6473].cs2
80 lines (80 loc) · 1.85 KB
/
[clientscript,script6473].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
// 6473
[clientscript,script6473](coord $coord0, coord $coord1, int $int2, int $int3)
def_dbrow $dbrow4 = %var3546;
if ($dbrow4 = null) {
return;
}
if (db_getrowtable($dbrow4) ! dbtable_12) {
return;
}
if ($coord0 = $coord1 & %varbit14190 = 1) {
return;
}
def_component $component5 = interface_711:3;
def_int $int6 = db_getfield($dbrow4, dbtable_12:1, 0);
def_int $int7 = 0;
switch_int ($int6) {
case 0 :
$int7 = db_getfieldcount(dbrow_684, dbtable_3:2);
case 5 :
$int7 = db_getfieldcount(dbrow_684, dbtable_3:7);
}
if ($dbrow4 = dbrow_2297) {
$int7 = enum_getoutputcount(enum_4816);
}
if (%varbit14190 = 0) {
~script6474($component5, $int7);
}
def_int $int8 = 0;
def_dbrow $dbrow9 = null;
def_coord $coord10 = null;
def_int $int11 = 0;
if ($int2 < $int3) {
$int11 = -1;
} else if ($int2 > $int3) {
$int11 = 1;
}
def_int $int12 = 0;
def_int $int13 = 0;
while ($int8 < $int7) {
if (cc_find($component5, $int8) = ^true & cc_getcolour = ^black) {
switch_int ($int6) {
case 0 :
$dbrow9 = db_getfield(dbrow_684, dbtable_3:2, $int8);
case 5 :
$dbrow9 = db_getfield(dbrow_684, dbtable_3:7, $int8);
}
if ($dbrow4 = dbrow_2297) {
$dbrow9 = enum(int, dbrow, enum_4816, $int8);
}
$coord10 = ~script6653(~cluehelper_clue_target($dbrow9));
$int12 = ~coord_distance($coord0, $coord10);
if ($int12 > 4095) {
$int12 = 4095;
}
if (~script6475($int2, $int12, $int6) = 0) {
cc_setcolour(0x000001);
} else if ($coord1 ! null) {
$int13 = ~coord_distance($coord1, $coord10);
if ($int13 > 4095) {
$int13 = 4095;
}
switch_int ($int11) {
case -1 :
if ($int12 > $int13) {
cc_setcolour(0x000001);
}
case 0 :
if ($int12 ! $int13) {
cc_setcolour(0x000001);
}
case 1 :
if ($int12 < $int13) {
cc_setcolour(0x000001);
}
}
}
}
$int8 = calc($int8 + 1);
}
~cluehelper_infobox_draw_content;