summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-05-30 20:14:37 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2011-05-30 20:14:37 +0200
commit006f84c6635bda5f58d70f3348f35b528e1efec3 (patch)
tree1f508848d448ee9a3ec112566aefafbe73280cc7
parentec0c57d054c79aef940f3e0ea26045c807a160c5 (diff)
downloadserverdata-006f84c6635bda5f58d70f3348f35b528e1efec3.tar.gz
serverdata-006f84c6635bda5f58d70f3348f35b528e1efec3.tar.bz2
serverdata-006f84c6635bda5f58d70f3348f35b528e1efec3.tar.xz
serverdata-006f84c6635bda5f58d70f3348f35b528e1efec3.zip
beginning script for guy who's blocking the way to town
-rw-r--r--npc/042-1/hasan.txt60
1 files changed, 58 insertions, 2 deletions
diff --git a/npc/042-1/hasan.txt b/npc/042-1/hasan.txt
index c689213a..1851ebc9 100644
--- a/npc/042-1/hasan.txt
+++ b/npc/042-1/hasan.txt
@@ -1,4 +1,60 @@
042-1.gat,110,74,0 script Hasan 189,{
-//block the way to town
-end;
+
+ set @toll, 10000;
+
+ mes "[Unfriendly Guy]";
+ mes "\"Hey! You can't pass here.\"";
+ menu
+ "Why not?",-,
+ "Who says that?",-;
+ mes "[Unfriendly Guy]";
+ mes "\"Me, Hasan the mighty, decided to put a toll on this way.\"";
+ next;
+ mes "\"Give me " + @toll + "GP, and I may let you pass.\"";
+ set hasan, 1;
+ if (zeny >= @toll)
+ menu
+ "Ok, here you go.",L_Pay,
+ "What? I don't have so much money!",L_NoPay,
+ "We'll see if you can stop me!",L_Fight;
+ menu
+ "What? I don't have so much money!",L_NoPay,
+ "We'll see if you can stop me!",L_Fight;
+ close;
+
+L_NoPay:
+ mes "[Hasan]";
+ mes "\"That's not my problem. You have to stay here then.\"";
+ close;
+
+L_Fight:
+ mes "He laughs derisively.";
+ mes "[Hasan]";
+ mes "\"Do you really think you can beat me?\"";
+ mes "He pulls out a nasty looking dagger and stabs it in your direction.";
+ set hp, 1;
+ mes "That hurt! You begin to think searching for a different solution might be healthier.";
+ close;
+
+L_Pay:
+ if (zeny < @toll)
+ goto L_Cheat;
+ set zeny, zeny - @toll;
+ mes "He grins gloatingly.";
+ mes "[Hasan]";
+ mes "\"Very well. You may pass.\"";
+ //TODO: set variables
+ close;
+
+L_Cheat:
+ mes "[Hasan]";
+ mes "\"Don't dare to cheat on me!\"";
+ close;
+}
+
+042-1.gat,117,76,0 script #barrier 127,2,2{
+ //TODO: check variable
+ warp "042-1.gat", 110, 73;
+ message strcharinfo(0), "Hasan: \"Stop!\"";
+ end;
}