-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,dream_chest_init].cs2
61 lines (61 loc) · 1.52 KB
/
[clientscript,dream_chest_init].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
// 61
[clientscript,dream_chest_init]
def_int $int0 = 0;
while ($int0 < 5) {
cc_create(dream_armour:45, ^iftype_graphic, $int0);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
if ($int0 = 0) {
cc_setposition(0, 43, ^setpos_abs_left, ^setpos_abs_top);
}
if ($int0 = 1) {
cc_setposition(50, 2, ^setpos_abs_left, ^setpos_abs_top);
}
if ($int0 = 2) {
cc_setposition(50, 43, ^setpos_abs_left, ^setpos_abs_top);
}
if ($int0 = 3) {
cc_setposition(50, 85, ^setpos_abs_left, ^setpos_abs_top);
}
if ($int0 = 4) {
cc_setposition(50, 125, ^setpos_abs_left, ^setpos_abs_top);
}
if (inv_getobj(inv_515, $int0) ! null) {
cc_setobject(inv_getobj(inv_515, $int0), inv_getnum(inv_515, $int0));
cc_setopbase(oc_name(inv_getobj(inv_515, $int0)));
cc_setop(1, "Deposit");
cc_setgraphicshadow(0x111111);
cc_setoutline(1);
if ($int0 = 0) {
if_setgraphic(null, dream_armour:40);
}
if ($int0 = 1) {
if_setgraphic(null, dream_armour:36);
}
if ($int0 = 2) {
if_setgraphic(null, dream_armour:37);
}
if ($int0 = 3) {
if_setgraphic(null, dream_armour:38);
}
if ($int0 = 4) {
if_setgraphic(null, dream_armour:39);
}
} else {
if ($int0 = 0) {
if_setgraphic("wornicons,3", dream_armour:40);
}
if ($int0 = 1) {
if_setgraphic("wornicons,0", dream_armour:36);
}
if ($int0 = 2) {
if_setgraphic("wornicons,5", dream_armour:37);
}
if ($int0 = 3) {
if_setgraphic("wornicons,7", dream_armour:38);
}
if ($int0 = 4) {
if_setgraphic("wornicons,9", dream_armour:39);
}
}
$int0 = calc($int0 + 1);
}