summaryrefslogtreecommitdiff
path: root/npc/009-3/warp.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/009-3/warp.txt')
-rw-r--r--npc/009-3/warp.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/npc/009-3/warp.txt b/npc/009-3/warp.txt
new file mode 100644
index 00000000..f0313c42
--- /dev/null
+++ b/npc/009-3/warp.txt
@@ -0,0 +1,26 @@
+009-3,162,80,0 script #PVPCaveBarrier NPC45,0,0,{
+ mes "Do you want to enter the PVP cave? It costs 150GP.";
+ menu
+ "No.", L_Exit,
+ "Yes.", L_Next;
+
+L_Next:
+ if (Zeny < 150)
+ goto L_NotEnoughMoney;
+ if (Zeny >= 150)
+ goto L_Pay;
+ goto L_Exit;
+
+L_Exit:
+ close;
+
+L_Pay:
+ Zeny = Zeny - 150;
+ warp "009-6", 36, 47;
+ close;
+
+L_NotEnoughMoney:
+ mes "You don't have enough money!";
+ close;
+
+}