diff options
author | Wushin <pasekei@gmail.com> | 2014-07-11 10:44:16 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2014-07-11 10:44:16 -0500 |
commit | 9ebe02fd44d60058bdab08c0f4553d9895284414 (patch) | |
tree | c06da57136779fe0134d0841021ab9a66071b82a /world | |
parent | b4b41e43278f2130dad0cb9c8cd0805c56ed2530 (diff) | |
parent | e7448e8fe817fdf8db60afff1feb5cca37d9a24d (diff) | |
download | serverdata-9ebe02fd44d60058bdab08c0f4553d9895284414.tar.gz serverdata-9ebe02fd44d60058bdab08c0f4553d9895284414.tar.bz2 serverdata-9ebe02fd44d60058bdab08c0f4553d9895284414.tar.xz serverdata-9ebe02fd44d60058bdab08c0f4553d9895284414.zip |
Merge pull request #137 from wushin/pre-hasan-move-unstick
Fixes the Hasan Sitckers Club
Diffstat (limited to 'world')
-rw-r--r-- | world/map/npc/042-2/tanisha.txt | 37 |
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; } - |