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
|
// TMW2/LoF Script.
// Author:
// Jesusalva
// Notes:
// Based on BenB idea.
018-2-4,23,24,0 script Vault#01824a NPC_NO_SPRITE,{
mesn;
mesq l("There's a shiny safe here. How much money is inside? Nobody is looking at you, great!");
// 3*3 = 9 possibilities, 6~8 attempts
if (LockPicking(3, 3)) {
Zeny=Zeny+$VAULT_01824;
$VAULT_01824=60;
mesn;
mesq l("Booty!");
} else {
mesn;
.@inch=(Zeny/100);
Zeny-=.@inch;
$VAULT_01824+=.@inch;
if (ArrestedChances()) {
mesc l("Arrested!");
atcommand("@jailfor 5mn "+strcharinfo(0));
} else {
if (is_night())
.@p$=l("The darkness of night gives you cover.");
else
.@p$=l("Your agile legs and sheer luck allows you to outrun the cops.");
mesc l("You run as far as you could. %s", .@p$);
warp "000-1", 22, 22;
}
}
close;
OnInit:
.distance=3;
end;
OnClock0201:
OnClock1216:
$VAULT_01824+=rand2(15,35);
end;
}
018-2-4,23,45,0 duplicate(Vault#01824a) Vault#01824b NPC_NO_SPRITE
|