-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,fishing_spot_indicator_create].cs2
114 lines (114 loc) · 3.38 KB
/
[proc,fishing_spot_indicator_create].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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// 4553
[proc,fishing_spot_indicator_create](entityoverlay $entityoverlay0, struct $struct1, npc_uid $npc_uid2, int $int3, loc $loc4, coord $coord5)
cc_deleteall_entityoverlay($entityoverlay0);
if (if_find_entityoverlay($entityoverlay0) = ^true) {
cc_setonmouseleave(null);
cc_setonmouseover(null);
}
if (%varbit12349 = 1) {
if ($npc_uid2 ! null & $int3 ! -1) {
highlight_npc_off($npc_uid2, $int3, 11);
}
if ($loc4 ! null & $coord5 ! null) {
highlight_loc_off($loc4, $coord5, 15, 1);
}
return;
}
def_namedobj $namedobj6 = struct_param($struct1, param_1265);
def_namedobj $namedobj7 = struct_param($struct1, param_1268);
def_int $int8 = ~fishing_spot_indicator_tools_check($namedobj6);
def_int $int9 = ~fishing_spot_indicator_tools_check($namedobj7);
if (%varbit12350 = 0 & $int8 = 0 & $int9 = 0) {
if ($npc_uid2 ! null & $int3 ! -1) {
highlight_npc_off($npc_uid2, $int3, 11);
}
if ($loc4 ! null & $coord5 ! null) {
highlight_loc_off($loc4, $coord5, 15, 1);
}
return;
}
def_enum $enum10 = struct_param($struct1, param_1266);
def_enum $enum11 = struct_param($struct1, param_1269);
if ($enum10 = null & $enum11 = null) {
if ($npc_uid2 ! null & $int3 ! -1) {
highlight_npc_off($npc_uid2, $int3, 11);
}
if ($loc4 ! null & $coord5 ! null) {
highlight_loc_off($loc4, $coord5, 15, 1);
}
return;
}
def_namedobj $namedobj12 = ~script4556($enum10);
def_namedobj $namedobj13 = ~script4556($enum11);
def_namedobj $namedobj14 = null;
def_int $trans15 = 0;
if ($namedobj12 = null & $namedobj13 = null) {
$namedobj14 = struct_param($struct1, param_1270);
$trans15 = 100;
if ($namedobj14 = null) {
if ($npc_uid2 ! null & $int3 ! -1) {
highlight_npc_off($npc_uid2, $int3, 11);
}
if ($loc4 ! null & $coord5 ! null) {
highlight_loc_off($loc4, $coord5, 15, 1);
}
return;
}
}
def_int $int16 = enum(obj, int, enum_3864, $namedobj12);
def_int $int17 = enum(obj, int, enum_3864, $namedobj13);
def_int $lvl18 = stat(fishing);
def_int $int19 = 0;
if ($namedobj14 = null) {
if ($namedobj12 ! null & $int8 = 1 & $int16 <= $lvl18) {
$namedobj14 = $namedobj12;
$int19 = $int16;
}
if ($namedobj13 ! null & $int9 = 1 & $int17 <= $lvl18) {
if ($namedobj14 ! null) {
if ($int17 > $int16) {
$namedobj14 = $namedobj13;
$int19 = $int17;
}
} else {
$namedobj14 = $namedobj13;
$int19 = $int17;
}
}
if ($namedobj14 = null) {
if ($int16 >= $int17) {
$namedobj14 = $namedobj12;
} else {
$namedobj14 = $namedobj13;
}
$trans15 = 100;
}
}
if ($namedobj14 = null) {
if ($npc_uid2 ! null & $int3 ! -1) {
highlight_npc_off($npc_uid2, $int3, 11);
}
if ($loc4 ! null & $coord5 ! null) {
highlight_loc_off($loc4, $coord5, 15, 1);
}
return;
}
cc_create_entityoverlay($entityoverlay0, ^iftype_graphic, 0);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setobject_nonum($namedobj14, 1);
cc_setoutline(1);
cc_settrans($trans15);
if ($npc_uid2 ! null & $int3 ! -1) {
highlight_npc_on($npc_uid2, $int3, 11);
}
if ($loc4 ! null & $coord5 ! null) {
highlight_loc_on($loc4, $coord5, 15, 1);
}
if (if_find_entityoverlay($entityoverlay0) = ^true) {
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
if (%varbit12351 = 0 & ~on_mobile = false) {
cc_setonmouseleave("fishing_spot_indicator_mouseleave($entityoverlay0, $struct1, $npc_uid2, $int3, $loc4, $coord5)");
cc_setonmouseover("fishing_spot_indicator_mouseover($entityoverlay0, $struct1)");
}
}