summaryrefslogtreecommitdiff
path: root/npc/017-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-24 13:57:44 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-24 13:57:44 -0300
commit397e3665c12267f18a130a2b8a2bdb751ad8d4bc (patch)
tree40c6879ce18c2c88b74fb4a98ae72955d4d30c3a /npc/017-3
parent4776d4f4438fb68261465c6fb157c4000dc00144 (diff)
downloadserverdata-397e3665c12267f18a130a2b8a2bdb751ad8d4bc.tar.gz
serverdata-397e3665c12267f18a130a2b8a2bdb751ad8d4bc.tar.bz2
serverdata-397e3665c12267f18a130a2b8a2bdb751ad8d4bc.tar.xz
serverdata-397e3665c12267f18a130a2b8a2bdb751ad8d4bc.zip
Rewrite vault lockpicking to be centralized
Diffstat (limited to 'npc/017-3')
-rw-r--r--npc/017-3/vault.txt26
1 files changed, 1 insertions, 25 deletions
diff --git a/npc/017-3/vault.txt b/npc/017-3/vault.txt
index 35434eae9..090900bc0 100644
--- a/npc/017-3/vault.txt
+++ b/npc/017-3/vault.txt
@@ -5,31 +5,7 @@
// Based on BenB idea.
017-3,80,39,0 script Vault NPC_NO_SPRITE,{
- mesn;
- mesq l("There's a shiny safe here. How much money is inside? Nobody is looking at you, great!");
- // 2*3 = 6 possibilities, 5 attempts
- if (LockPicking(2, 3)) {
- Zeny=Zeny+$VAULT_01738039;
- $VAULT_01738039=40;
- mesn;
- mesq l("Booty!");
- } else {
- mesn;
- .@inch=(Zeny/100);
- Zeny-=.@inch;
- $VAULT_01738039+=.@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;
- }
- }
+ LootableVault(1, 3, "01738039");
close;
OnInit: