summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2014-07-10 21:30:25 -0500
committerwushin <pasekei@gmail.com>2014-07-10 21:30:25 -0500
commite7448e8fe817fdf8db60afff1feb5cca37d9a24d (patch)
tree54e757ba0e00ade0141fbbe1f86939d02b9438cf
parenta3f589a47c5f32cfe42316608da367792cadda1f (diff)
downloadserverdata-e7448e8fe817fdf8db60afff1feb5cca37d9a24d.tar.gz
serverdata-e7448e8fe817fdf8db60afff1feb5cca37d9a24d.tar.bz2
serverdata-e7448e8fe817fdf8db60afff1feb5cca37d9a24d.tar.xz
serverdata-e7448e8fe817fdf8db60afff1feb5cca37d9a24d.zip
Fixes the Hasan Sitckers Club
-rw-r--r--world/map/npc/042-2/tanisha.txt37
1 files changed, 16 insertions, 21 deletions
diff --git a/world/map/npc/042-2/tanisha.txt b/world/map/npc/042-2/tanisha.txt
index fb67989d..77a02948 100644
--- a/world/map/npc/042-2/tanisha.txt
+++ b/world/map/npc/042-2/tanisha.txt
@@ -10,8 +10,7 @@
callfunc "TutorialState";
if ((@tutorial == 11) && !(@tanisha_hasan)) goto L_Hasan;
- if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done;
- if (@tutorial >= 8) goto L_Again;
+ if ((@tutorial >= 8) || (FLAGS & FLAG_TUTORIAL_DONE)) goto L_Tut_Done;
if (@tutorial == 7) goto L_Stats;
if (@tutorial == 6) goto L_Fail;
if (@tutorial == 5) goto L_Maggots;
@@ -138,9 +137,6 @@ L_StatsRe:
next;
mes "[Tanisha]";
mes "\"But I doubt he'd do that without a service in return.\"";
-
- if (@tutorial != 7)
- goto L_Close;
goto L_Money;
L_Money:
@@ -148,6 +144,9 @@ L_Money:
mes "[Tanisha]";
mes "\"Hey, you are so smart taking out all that yucky maggots for me.";
mes "You can have my pocket money. Here.\"";
+ set @tutorial_tmp, 8;
+ callfunc "SetTutorialMask";
+ callfunc "TutorialCompleted";
set Zeny, Zeny + 5;
next;
goto L_Advice;
@@ -156,23 +155,8 @@ L_Advice:
mes "\"When you go to Tulimshar, you should see Bernard. He can make a delicious soup!";
mes "Good luck!\"";
emotion EMOTE_HAPPY;
- if (@tutorial == 7)
- goto L_SetTutorial;
- goto L_Close;
-
-L_SetTutorial:
- set @tutorial_tmp, 8;
- callfunc "SetTutorialMask";
- callfunc "TutorialCompleted";
goto L_Close;
-L_Again:
- mes "[Tanisha]";
- mes "\"Hi there! Is everything alright? Do you have questions?\"";
- menu
- "Yes, could you explain again about...",L_Explain,
- "No, thanks.",L_Close;
-
L_Explain:
menu
"... how to fight?",L_Fight,
@@ -341,8 +325,20 @@ OnInit:
OnTouch:
callfunc "TutorialState";
+ if ((@tutorial >= 8) && !(FLAGS & FLAG_TUTORIAL_DONE))
+ goto L_Complete;
+ goto L_Check;
+
+L_Complete:
+ callfunc "TutorialCompleted";
+ goto L_Warp;
+
+L_Check:
if (!(FLAGS & FLAG_TUTORIAL_DONE))
goto L_Block;
+ goto L_Warp;
+
+L_Warp:
warp "042-1.gat", 63, 48;
end;
@@ -350,4 +346,3 @@ L_Block:
message strcharinfo(0), "Tanisha: Please come here. I'd like some help!";
end;
}
-