summaryrefslogtreecommitdiff
path: root/npc/017-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-06 14:13:52 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-06 14:13:52 -0300
commit652b92c7050915d164cb4ec8576ded81ddc1257d (patch)
tree47f4795d144de6ba46710c6f0ff0c91d652d698c /npc/017-3
parent74812206e5fafeeaf5d873c0cd4a6735d918956f (diff)
downloadserverdata-652b92c7050915d164cb4ec8576ded81ddc1257d.tar.gz
serverdata-652b92c7050915d164cb4ec8576ded81ddc1257d.tar.bz2
serverdata-652b92c7050915d164cb4ec8576ded81ddc1257d.tar.xz
serverdata-652b92c7050915d164cb4ec8576ded81ddc1257d.zip
"Working" prototype. Incomplete.
This is for @Saulc see and understand what I'm doing, and ~~have a heart attack~~ give me a loving comment.
Diffstat (limited to 'npc/017-3')
-rw-r--r--npc/017-3/_import.txt1
-rw-r--r--npc/017-3/vault.txt33
2 files changed, 34 insertions, 0 deletions
diff --git a/npc/017-3/_import.txt b/npc/017-3/_import.txt
index 3f6ffc567..1dff8d16d 100644
--- a/npc/017-3/_import.txt
+++ b/npc/017-3/_import.txt
@@ -6,4 +6,5 @@
"npc/017-3/doctor.txt",
"npc/017-3/doug.txt",
"npc/017-3/loratay.txt",
+"npc/017-3/vault.txt",
"npc/017-3/workers.txt",
diff --git a/npc/017-3/vault.txt b/npc/017-3/vault.txt
new file mode 100644
index 000000000..8770bdeea
--- /dev/null
+++ b/npc/017-3/vault.txt
@@ -0,0 +1,33 @@
+// 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, great!");
+ // 2*3 = 6 possibilities, 5 attempts
+ if (LockPicking(2, 3)) {
+ Zeny=Zeny+$VAULT_01738039;
+ mesn;
+ mesq l("Booty!");
+ } else {
+ mesn;
+ mesq l("Arrested!");
+ .@inch=(Zeny/100);
+ Zeny-=.@inch;
+ $VAULT_01738039+=.@inch;
+ atcommand("@jailfor 5mn "+strcharinfo(0));
+ }
+ close;
+
+OnInit:
+ .distance=3;
+ end;
+
+OnClock0201:
+ $VAULT_01738039+=rand(5,25);
+ end;
+}
+