-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,inputstring_handlecheat].cs2
79 lines (79 loc) · 3 KB
/
[proc,inputstring_handlecheat].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
// 224
[proc,inputstring_handlecheat](string $string0)(string)
def_string $string1 = lowercase($string0);
def_int $length0 = string_length($string1);
def_string $string2 = "::tele n ";
def_int $length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
if ($length0 <= $length1) {
return(~inputstring_teledirection("", 0, 1));
}
return(~inputstring_teledirection(substring($string1, $length1, $length0), 0, 1));
}
$string2 = "::tele s ";
$length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
if ($length0 <= $length1) {
return(~inputstring_teledirection("", 0, -1));
}
return(~inputstring_teledirection(substring($string1, $length1, $length0), 0, -1));
}
$string2 = "::tele e ";
$length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
if ($length0 <= $length1) {
return(~inputstring_teledirection("", 1, 0));
}
return(~inputstring_teledirection(substring($string1, $length1, $length0), 1, 0));
}
$string2 = "::tele w ";
$length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
if ($length0 <= $length1) {
return(~inputstring_teledirection("", -1, 0));
}
return(~inputstring_teledirection(substring($string1, $length1, $length0), -1, 0));
}
$string2 = "::tele nw ";
$length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
if ($length0 <= $length1) {
return(~inputstring_teledirection("", -1, 1));
}
return(~inputstring_teledirection(substring($string1, $length1, $length0), -1, 1));
}
$string2 = "::tele sw ";
$length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
if ($length0 <= $length1) {
return(~inputstring_teledirection("", -1, -1));
}
return(~inputstring_teledirection(substring($string1, $length1, $length0), -1, -1));
}
$string2 = "::tele ne ";
$length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
if ($length0 <= $length1) {
return(~inputstring_teledirection("", 1, 1));
}
return(~inputstring_teledirection(substring($string1, $length1, $length0), 1, 1));
}
$string2 = "::tele se ";
$length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
if ($length0 <= $length1) {
return(~inputstring_teledirection("", 1, -1));
}
return(~inputstring_teledirection(substring($string1, $length1, $length0), 1, -1));
}
$string2 = "::tele up";
$length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
return(~inputstring_televertical(1));
}
$string2 = "::tele down";
$length1 = string_length($string2);
if ($length0 >= $length1 & compare(substring($string1, 0, $length1), $string2) = 0) {
return(~inputstring_televertical(-1));
}
return($string0);