diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-06-12 17:11:33 +0200 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-06-12 17:33:59 +0200 |
commit | 1b800e81c08d79eb42dcd8f5721e8d1e4fad3bdb (patch) | |
tree | 1174904e5a519f75250dcb9b1664947e259c1f88 /npc | |
parent | 13d0566600ddec66e1c175aa534f0c3325cbdfc4 (diff) | |
download | serverdata-1b800e81c08d79eb42dcd8f5721e8d1e4fad3bdb.tar.gz serverdata-1b800e81c08d79eb42dcd8f5721e8d1e4fad3bdb.tar.bz2 serverdata-1b800e81c08d79eb42dcd8f5721e8d1e4fad3bdb.tar.xz serverdata-1b800e81c08d79eb42dcd8f5721e8d1e4fad3bdb.zip |
putting first barrier and hasan into one npc
Diffstat (limited to 'npc')
-rw-r--r-- | npc/042-1/hasan.txt | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/npc/042-1/hasan.txt b/npc/042-1/hasan.txt index 8dc44a38..a0ef2324 100644 --- a/npc/042-1/hasan.txt +++ b/npc/042-1/hasan.txt @@ -1,12 +1,10 @@ -//TODO: first barrier into hasan -042-1.gat,111,68,0 script Hasan 189,{ +042-1.gat,111,68,0 script Hasan 189,2,2{ set @toll, 10000; set @x, getx(0); set @y, gety(0); if ($@scorp) goto L_Fear; - if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done; if ( (@y < 64)&&(@x < 110) || (@x < 107) ) goto L_Cliff_Up; if (hasan == 4) goto L_Thank; @@ -80,9 +78,10 @@ L_Trick: "I don't have so much money!",L_NoPay, "No. (Scratch your head.)",-; mes "While you're scratching your head, you see Kaan coming nearer to the cliff above you."; + close2; monster "042-1.gat",110,70,"Scorpion",1003,1, "Hasan::onScorpionDeath"; set $@scorp, 1; - close; + end; L_Thank: mes "[Hasan]"; @@ -148,6 +147,13 @@ L_Cliff_Up: mes "You see a guy in shaby clothes when you look down the cliff."; close; +OnTouch: + if ((FLAGS & FLAG_TUTORIAL_DONE) || $@scorp) + end; + warp "042-1.gat", 112, 64; + message strcharinfo(0), "Hasan: \"Stop!\""; + end; + onScorpionDeath: set $@scorp, 0; if (hasan != 3) @@ -157,15 +163,6 @@ onScorpionDeath: end; } -042-1.gat,112,66,0 script #barrier 127,1,0{ - if ((FLAGS & FLAG_TUTORIAL_DONE) || $@scorp) - end; - warp "042-1.gat", 112, 64; - if (!$@scorp) - message strcharinfo(0), "Hasan: \"Stop!\""; - end; -} - 042-1.gat,117,76,0 script #barrier 127,0,2{ if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut; |