// TMW2/LoF Script. // Author: // Jesusalva // Notes: // 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; } } close; OnInit: .distance=3; end; OnClock0201: OnClock1418: $VAULT_01738039+=rand2(5,25); end; }