-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script4553].cs2
84 lines (84 loc) · 2.31 KB
/
[proc,script4553].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
// 4553
[proc,script4553](newvar $newvar0, struct $struct1, npc_uid $npc_uid2, int $int3)
_104($newvar0);
if (_203($newvar0) = 1) {
cc_setonmouseleave(null);
cc_setonmouseover(null);
}
if (%varbit12349 = 1) {
highlight_npc_off($npc_uid2, $int3, 11);
return;
}
def_namedobj $namedobj4 = struct_param($struct1, param_1265);
def_namedobj $namedobj5 = struct_param($struct1, param_1268);
def_int $int6 = ~script4557($namedobj4);
def_int $int7 = ~script4557($namedobj5);
if (%varbit12350 = 0 & $int6 = 0 & $int7 = 0) {
highlight_npc_off($npc_uid2, $int3, 11);
return;
}
def_enum $enum8 = struct_param($struct1, param_1266);
def_enum $enum9 = struct_param($struct1, param_1269);
if ($enum8 = null & $enum9 = null) {
highlight_npc_off($npc_uid2, $int3, 11);
return;
}
def_namedobj $namedobj10 = ~script4556($enum8);
def_namedobj $namedobj11 = ~script4556($enum9);
def_namedobj $namedobj12 = null;
def_int $trans13 = 0;
if ($namedobj10 = null & $namedobj11 = null) {
$namedobj12 = struct_param($struct1, param_1270);
$trans13 = 100;
if ($namedobj12 = null) {
highlight_npc_off($npc_uid2, $int3, 11);
return;
}
}
def_int $int14 = enum(obj, int, enum_3864, $namedobj10);
def_int $int15 = enum(obj, int, enum_3864, $namedobj11);
def_int $lvl16 = stat(fishing);
def_int $int17 = 0;
if ($namedobj12 = null) {
if ($namedobj10 ! null & $int6 = 1 & $int14 <= $lvl16) {
$namedobj12 = $namedobj10;
$int17 = $int14;
}
if ($namedobj11 ! null & $int7 = 1 & $int15 <= $lvl16) {
if ($namedobj12 ! null) {
if ($int15 > $int14) {
$namedobj12 = $namedobj11;
$int17 = $int15;
}
} else {
$namedobj12 = $namedobj11;
$int17 = $int15;
}
}
if ($namedobj12 = null) {
if ($int14 >= $int15) {
$namedobj12 = $namedobj10;
} else {
$namedobj12 = $namedobj11;
}
$trans13 = 100;
}
}
if ($namedobj12 = null) {
highlight_npc_off($npc_uid2, $int3, 11);
return;
}
_103($newvar0, 5, 0);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setobject_nonum($namedobj12, 1);
cc_setoutline(1);
cc_settrans($trans13);
highlight_npc_on($npc_uid2, $int3, 11);
if (_203($newvar0) = 1) {
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
if (%varbit12351 = 0) {
cc_setonmouseleave("script4551($newvar0, $struct1, $npc_uid2, $int3)");
cc_setonmouseover("script4552($newvar0, $struct1)");
}
}