-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,skill_guide_magic_op].cs2
83 lines (83 loc) · 2.65 KB
/
[clientscript,skill_guide_magic_op].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
// 3054
[clientscript,skill_guide_magic_op](obj $obj0)
def_obj $obj1 = null;
def_int $int2 = 0;
def_string $string0 = "";
def_string $string1 = "";
if (~magic_spellbook_hasrunes($obj0) = 1) {
$obj1 = oc_param($obj0, magic_runetype_4);
$int2 = oc_param($obj0, magic_runecount_4);
if ($obj1 ! null) {
$string0 = append(", <tostring($int2)> x <oc_name($obj1)>", $string0);
}
$obj1 = oc_param($obj0, magic_runetype_3);
$int2 = oc_param($obj0, magic_runecount_3);
if ($obj1 ! null) {
$string0 = append(", <tostring($int2)> x <oc_name($obj1)>", $string0);
}
$obj1 = oc_param($obj0, magic_runetype_2);
$int2 = oc_param($obj0, magic_runecount_2);
if ($obj1 ! null) {
$string0 = append(", <tostring($int2)> x <oc_name($obj1)>", $string0);
}
$obj1 = oc_param($obj0, magic_runetype_1);
$int2 = oc_param($obj0, magic_runecount_1);
if ($obj1 = obj_8843) {
$string1 = oc_name(guthix_staff_2416);
} else {
$string1 = oc_name($obj1);
}
if ($obj1 ! null) {
$string0 = append("<tostring($int2)> x <$string1>", $string0);
} else {
$string0 = oc_param($obj0, spell_desc);
}
$string0 = append("<oc_param($obj0, spell_name)>: ", $string0);
mes($string0);
return;
}
$obj1 = oc_param($obj0, magic_runetype_4);
if ($obj1 ! null) {
$int2 = oc_param($obj0, magic_runecount_4);
if (~magic_runecount($obj1) >= $int2) {
$string0 = append(", <tostring($int2)> x <oc_name($obj1)>", $string0);
} else {
$string0 = append(", <col=ef1020><tostring($int2)> x <oc_name($obj1)></col>", $string0);
}
}
$obj1 = oc_param($obj0, magic_runetype_3);
if ($obj1 ! null) {
$int2 = oc_param($obj0, magic_runecount_3);
if (~magic_runecount($obj1) >= $int2) {
$string0 = append(", <tostring($int2)> x <oc_name($obj1)>", $string0);
} else {
$string0 = append(", <col=ef1020><tostring($int2)> x <oc_name($obj1)></col>", $string0);
}
}
$obj1 = oc_param($obj0, magic_runetype_2);
if ($obj1 ! null) {
$int2 = oc_param($obj0, magic_runecount_2);
if (~magic_runecount($obj1) >= $int2) {
$string0 = append(", <tostring($int2)> x <oc_name($obj1)>", $string0);
} else {
$string0 = append(", <col=ef1020><tostring($int2)> x <oc_name($obj1)></col>", $string0);
}
}
$obj1 = oc_param($obj0, magic_runetype_1);
if ($obj1 ! null) {
$int2 = oc_param($obj0, magic_runecount_1);
if ($obj1 = obj_8843) {
$string1 = oc_name(guthix_staff_2416);
} else {
$string1 = oc_name($obj1);
}
if (~magic_runecount($obj1) >= $int2) {
$string0 = append("<tostring($int2)> x <$string1>", $string0);
} else {
$string0 = append("<col=ef1020><tostring($int2)> x <$string1></col>", $string0);
}
} else {
$string0 = oc_param($obj0, spell_desc);
}
$string0 = append("<oc_param($obj0, spell_name)>: ", $string0);
mes($string0);