-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,script3809].cs2
44 lines (44 loc) · 1.09 KB
/
[proc,script3809].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
// 3809
[proc,script3809](int $lvl0, stat $stat1, int $int2)(int)
if (map_members = ^false & enum(stat, boolean, enum_1497, $stat1) = true) {
if ($int2 = 1) {
mes("You need to be on a members' world to gain experience in <enum(stat, string, enum_680, $stat1)>.");
}
return(0);
}
if (stat_base($stat1) < $lvl0) {
if ($int2 = 1) {
mes("You need an <enum(stat, string, enum_680, $stat1)> level of <tostring($lvl0)> to choose that option.");
}
return(0);
}
switch_stat ($stat1) {
case herblore :
if (%var80 < 4) {
if ($int2 = 1) {
mes("You need to complete the Druidic Ritual quest to choose that option.");
}
return(0);
}
case runecraft :
if (%var63 < 6) {
if ($int2 = 1) {
mes("You need to complete the Rune Mysteries quest to choose that option.");
}
return(0);
}
case construction :
if (%varbit2187 = 0) {
if ($int2 = 1) {
mes("You must own a house to choose that option.");
}
return(0);
}
}
if (%varbit10032 = 3 & ~league_world = 1 & ~script5830($stat1) = 0) {
if ($int2 = 1) {
mes("You haven't unlocked this skill yet.");
}
return(0);
}
return(1);