summaryrefslogtreecommitdiff
path: root/world/map/npc/042-1/hasan.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-09-03 10:12:46 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2011-09-03 10:12:46 +0200
commit658eb67e7875c48e24a9bf7856d38393e43469dc (patch)
tree978f6a7fa50c3840947774b22f8e402e44a54f99 /world/map/npc/042-1/hasan.txt
parent933e56a6376aace0ead84d2316bfcaf52627f612 (diff)
parent68bd50cba8dc9c46d438a31d6184a4fd18c8057a (diff)
downloadserverdata-658eb67e7875c48e24a9bf7856d38393e43469dc.tar.gz
serverdata-658eb67e7875c48e24a9bf7856d38393e43469dc.tar.bz2
serverdata-658eb67e7875c48e24a9bf7856d38393e43469dc.tar.xz
serverdata-658eb67e7875c48e24a9bf7856d38393e43469dc.zip
Merge remote-tracking branch 'mainline/master'
Diffstat (limited to 'world/map/npc/042-1/hasan.txt')
-rw-r--r--world/map/npc/042-1/hasan.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/world/map/npc/042-1/hasan.txt b/world/map/npc/042-1/hasan.txt
index 8394bd7e..1d5a67fd 100644
--- a/world/map/npc/042-1/hasan.txt
+++ b/world/map/npc/042-1/hasan.txt
@@ -2,6 +2,8 @@
// Authors: Jenalya, alastrim
042-1.gat,111,68,0|script|Hasan|189,{
+ mes "This NPC is disabled due to bugs, sorry.";
+ close;
set @toll, 10000;
set @x, getx(0);
@@ -157,7 +159,8 @@ L_Cliff_Up:
L_SummonAgain:
message strcharinfo(0), "Kaan is mad at you for your interference! He walks over to the edge of the cliff and throws a rock on top of your head, then lets another scorpion run just near Hasan!";
percentheal -100, 0;
- attachrid(getcharid(3,$@ScorpionFighter$));
+ if (attachrid(getcharid(3,$@ScorpionFighter$)) == 0)
+ end;
message strcharinfo(0), "Kaan: \"Just go while he is distracted and no one is interfering!\"";
monster "042-1.gat",110,70,"Scorpion",1003,1, "Hasan::onScorpionDeath";
end;
@@ -168,8 +171,8 @@ L_Clean:
set $@scorp, 0;
stopnpctimer;
setnpctimer 0;
- if (isloggedin(getcharid(3,$@ScorpionFighter$))==0) end;
- attachrid(getcharid(3,$@ScorpionFighter$));
+ if (attachrid(getcharid(3,$@ScorpionFighter$)) == 0)
+ end;
if (PC_DIE_COUNTER > $@ScorpDeath) goto L_MessageDeath;
message strcharinfo(0), "Hasan, with his eyes almost closed, trembling with fear, runs toward the scorpion and stabs it with all his strength! Seems like you took too long and the plan didn't work this time.";
warp "042-1.gat", 112, 64;
@@ -186,7 +189,8 @@ L_Wait:
close;
OnTimer5000:
- if(isloggedin(getcharid(3,$@ScorpionFighter$))==0) goto L_Clean;
+ if(isloggedin(getcharid(3,$@ScorpionFighter$)) == 0)
+ goto L_Clean;
set $@ScorpionTimer, $@ScorpionTimer + 5;
if ($@ScorpionTimer >= 300) goto L_Clean;
attachrid(getcharid(3,$@ScorpionFighter$));
@@ -208,6 +212,7 @@ onScorpionDeath:
end;
OnInit:
+ end;
initnpctimer;
stopnpctimer;
@@ -218,6 +223,7 @@ OnInit:
end;
OnTouch:
+ end;
if ($@scorp && $@ScorpionFighter$ == strcharinfo(0))
end;
if ((FLAGS & FLAG_TUTORIAL_DONE) || (hasan == 4))