From 2d84f24f1dbd74efcf930c35207b5ad3d013a5f4 Mon Sep 17 00:00:00 2001 From: coffee Date: Fri, 26 Aug 2011 09:17:53 -0300 Subject: Fixes some small syntax errors and change the way the script checks if you are loggedin or inside the right area. --- world/map/npc/033-1/kimarr.txt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'world') diff --git a/world/map/npc/033-1/kimarr.txt b/world/map/npc/033-1/kimarr.txt index 7594ed5c..de869f65 100644 --- a/world/map/npc/033-1/kimarr.txt +++ b/world/map/npc/033-1/kimarr.txt @@ -77,7 +77,7 @@ L_Ask: // this label is reached on completion of the quest, or, if you inventory was // full at the time, when you next initiate dialog (with @state == 2) L_Reward: - mes "[Kimarr]" + mes "[Kimarr]"; mes "That was very impressive - now you can call yourself a hunter, " + strcharinfo(0) + "."; next; @@ -132,12 +132,15 @@ L_Attention: end; OnTimer1000: - if (!attachrid($@Fluffy_FighterID)) +// Checking if player is logged + if (isloggedin($@Fluffy_FighterID) == 0) + goto L_GotOut; + attachrid($@Fluffy_FighterID); +// Checking if player is still in the map or used a towell or spell to get out + if (getareausers("033-1.gat", 79, 28, 88, 42) == 0) goto L_GotOut; if (PC_DIE_COUNTER > $@Fluffy_PC_Deaths) goto L_Died; - if (!getareausers("033-1.gat", 79, 28, 88, 42)) - goto L_GotOut; set $@Fluffy_Time, $@Fluffy_Time + 1; if ($@Fluffy_Time > 300) @@ -217,7 +220,7 @@ OnFluffyDeath: L_DidntDrop: warp "033-1.gat", 77, 34; - mes "[Kimarr]" + mes "[Kimarr]"; mes "You waited too much to throw the food on the ground... Now the fluffies know you are planning something."; callsub S_Clean; goto L_Close; -- cgit v1.2.3-60-g2f50