-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,script6485].cs2
93 lines (93 loc) · 2.22 KB
/
[proc,script6485].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
// 6485
[proc,script6485](dbrow $dbrow0)(int)
def_int $int1 = 0;
def_int $int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:1);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:1, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:2);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:2, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:3);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:3, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:4);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:4, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:5);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:5, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:6);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:6, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:7);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:7, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:8);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:8, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:9);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:9, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:10);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:10, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
$int1 = db_getfieldcount($dbrow0, dbtable_28:11);
while ($int2 < $int1) {
if (inv_total(inv, db_getfield($dbrow0, dbtable_28:11, $int2)) > 0) {
return(1);
}
$int2 = calc($int2 + 1);
}
$int2 = 0;
return(-1);