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[proc,inventory_drawitem].cs2
45 lines (45 loc) · 1.67 KB
/
[proc,inventory_drawitem].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
// 6011
[proc,inventory_drawitem](obj $obj0, int $num1, component $component2, int $int3, boolean $boolean4, boolean $boolean5)
cc_clearops;
cc_settargetverb("");
cc_setopbase("");
cc_setonmouserepeat(null);
cc_setdragdeadtime(6);
if ($obj0 ! null) {
cc_setobject($obj0, $num1);
cc_sethide(false);
if ($boolean4 = true) {
cc_settrans(0);
cc_settargetverb("Use");
cc_setontargetenter("settings_questlist_section_page(event_com, event_comsubid, 2)");
cc_setontargetleave("settings_questlist_section_page(event_com, event_comsubid, 1)");
~inventory_setophelds($obj0, $boolean5);
cc_setopbase("<col=ff9040><~script1787($obj0)></col>");
cc_setondrag("inventory_startdrag(event_com, $int3)");
cc_setondragcomplete("inventory_reorder(event_com, event_com2, event_comsubid, event_comsubid2, $int3, $boolean4)");
cc_setonop("inventory_op(event_com, $obj0, event_comsubid, event_op)");
cc_setonmouserepeat("inventory_antidrag_update(event_com, event_comsubid)");
} else {
cc_settrans(100);
if (%varbit12132 = 1) {
cc_setop(1, "Examine");
cc_setopbase("<col=ff9040><~script1787($obj0)></col>");
cc_setondrag("inventory_startdrag(event_com, $int3)");
cc_setondragcomplete("inventory_reorder(event_com, event_com2, event_comsubid, event_comsubid2, $int3, $boolean4)");
cc_setonop("cc_settrans_temporarily(event_com, event_comsubid, 150, 100)");
cc_setonmouserepeat("inventory_antidrag_update(event_com, event_comsubid)");
} else {
cc_setonop(null);
cc_setondrag(null);
cc_setondragcomplete(null);
}
}
} else {
cc_settrans(255);
cc_setobject(obj_6512, 1);
cc_setonop(null);
cc_setondrag(null);
cc_setondragcomplete(null);
cc_sethide(true);
}
cc_setontimer(null);