-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,wiki_lookup].cs2
42 lines (42 loc) · 1.09 KB
/
[proc,wiki_lookup].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
// 3301
[proc,wiki_lookup](string $string0, string $string1, string $string2, string $string3, string $string4)
def_string $url5 = "https://oldschool.runescape.wiki/w/Special:";
def_int $int0 = 0;
if (string_length($string0) > 0) {
$url5 = "<$url5><~encode_for_url($string0)>";
if (string_length($string1) > 0) {
$url5 = "<$url5>?type=<~encode_for_url($string1)>";
$int0 = 1;
}
if (string_length($string2) > 0) {
if ($int0 = 1) {
$url5 = "<$url5>&id=<~encode_for_url($string2)>";
} else {
$url5 = "<$url5>?id=<$string2>";
}
$int0 = 1;
}
if (string_length($string3) > 0) {
if ($int0 = 1) {
$url5 = "<$url5>&name=<~encode_for_url($string3)>";
} else {
$url5 = "<$url5>?name=<~encode_for_url($string3)>";
}
$int0 = 1;
}
if (string_length($string4) > 0) {
if ($int0 = 1) {
$url5 = "<$url5>&search=<~encode_for_url($string4)>";
} else {
$url5 = "<$url5>?search=<~encode_for_url($string4)>";
}
$int0 = 1;
}
if ($int0 = 1) {
$url5 = "<$url5>&utm_source=osrs";
}
}
if ($int0 = 0) {
$url5 = "https://oldschool.runescape.wiki/";
}
~openurl_raw($url5, true, true);