-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,ge_offers_setup_changequantity].cs2
56 lines (56 loc) · 1.77 KB
/
[clientscript,ge_offers_setup_changequantity].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
// 777
[clientscript,ge_offers_setup_changequantity](int $int0, int $opindex1, component $component2, int $comsubid3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11, int $comsubid12, int $comsubid13, int $comsubid14, component $component15, int $comsubid16)
if ($opindex1 ! 1 | %var1151 = null) {
return;
}
def_int $int17 = ^max_32bit_int;
if (%var1151 = old_school_bond_13190) {
%varbit4396 = 1;
sound_synth(interface_select1, 1, 0);
} else if (%varbit4397 = 1) {
$int17 = ~ge_offers_checkavailable;
if ($int0 >= ^max_32bit_int) {
%varbit4396 = $int17;
sound_synth(ge_up_amount, 1, 0);
} else if ($int0 > 0) {
if ($int0 > 1 & %varbit4396 = 1) {
$int0 = calc($int0 - 1);
}
if (calc($int17 - $int0) < %varbit4396) {
%varbit4396 = $int17;
} else {
%varbit4396 = calc(%varbit4396 + $int0);
}
sound_synth(ge_up_amount, 1, 0);
} else {
if (%varbit4396 <= calc(0 - $int0)) {
%varbit4396 = 1;
} else {
%varbit4396 = calc(%varbit4396 + $int0);
}
sound_synth(ge_down_amount, 1, 0);
}
} else {
if ($int0 >= ^max_32bit_int) {
$int0 = 1000;
}
if ($int0 > 0) {
if ($int0 > 1 & %varbit4396 = 1) {
$int0 = calc($int0 - 1);
}
if (calc(^max_32bit_int - $int0) < %varbit4396) {
%varbit4396 = ^max_32bit_int;
} else {
%varbit4396 = calc(%varbit4396 + $int0);
}
sound_synth(ge_up_amount, 1, 0);
} else {
if (%varbit4396 <= calc(0 - $int0)) {
%varbit4396 = 1;
} else {
%varbit4396 = calc(%varbit4396 + $int0);
}
sound_synth(ge_down_amount, 1, 0);
}
}
~ge_offers_setup_draw($component2, $comsubid3, $comsubid4, $comsubid5, $comsubid6, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $comsubid14, $component15, $comsubid16);