From 397e3665c12267f18a130a2b8a2bdb751ad8d4bc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 Apr 2020 13:57:44 -0300 Subject: Rewrite vault lockpicking to be centralized --- npc/018-2-4/vault.txt | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'npc/018-2-4') diff --git a/npc/018-2-4/vault.txt b/npc/018-2-4/vault.txt index 043504829..9f33ea64c 100644 --- a/npc/018-2-4/vault.txt +++ b/npc/018-2-4/vault.txt @@ -5,31 +5,7 @@ // 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; - } - } + LootableVault(2, 3, "01824"); close; OnInit: -- cgit v1.2.3-60-g2f50