diff options
author | Wushin <pasekei@gmail.com> | 2015-04-30 00:19:47 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-04-30 00:19:47 -0500 |
commit | a15b94def3cc24a2ee8b1401a92d53a8aaa3ca86 (patch) | |
tree | ef694cb7f064506246778e0d3253b262ab9c94dc /world/map/npc/029-1/tutorial.txt | |
parent | 86cc243c069b90c3eb47df1faede506822634f4a (diff) | |
parent | b1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53 (diff) | |
download | serverdata-a15b94def3cc24a2ee8b1401a92d53a8aaa3ca86.tar.gz serverdata-a15b94def3cc24a2ee8b1401a92d53a8aaa3ca86.tar.bz2 serverdata-a15b94def3cc24a2ee8b1401a92d53a8aaa3ca86.tar.xz serverdata-a15b94def3cc24a2ee8b1401a92d53a8aaa3ca86.zip |
Merge pull request #337 from wushin/quest-log-with-bits
Quest Log example
Diffstat (limited to 'world/map/npc/029-1/tutorial.txt')
-rw-r--r-- | world/map/npc/029-1/tutorial.txt | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/world/map/npc/029-1/tutorial.txt b/world/map/npc/029-1/tutorial.txt index ddaea587..76124ef6 100644 --- a/world/map/npc/029-1/tutorial.txt +++ b/world/map/npc/029-1/tutorial.txt @@ -12,19 +12,6 @@ OnInit: set $@SpokeToKaan, (1 << 31); end; } -function|script|TutorialState -{ - callfunc "ClearVariables"; - set @tutorial, ((STARTAREA & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT); - set @kaan_talked, (STARTAREA & $@SpokeToKaan); - return; -} -function|script|SetTutorialMask -{ - set STARTAREA, (STARTAREA & ~(NIBBLE_0_MASK) | (@tutorial_tmp << NIBBLE_0_SHIFT)); - set @tutorial_tmp, 0; - return; -} 029-2,21,26,0|script|TutDebug|154 { mes "[TutDebug]"; @@ -35,16 +22,14 @@ function|script|SetTutorialMask "No.",L_Close; L_Kaan: - set @tutorial_tmp, 8; - set STARTAREA, (STARTAREA & ~(NIBBLE_0_MASK) | (@tutorial_tmp << NIBBLE_0_SHIFT)); + set QL_BEGIN, 8; set STARTAREA, STARTAREA &~ $@SpokeToKaan; mes "Reset!"; goto L_Close; L_Reset: set TUT_var, 0; - set @tutorial_tmp, 0; - set STARTAREA, (STARTAREA & ~(NIBBLE_0_MASK) | (@tutorial_tmp << NIBBLE_0_SHIFT)); + set QL_BEGIN, 0; set STARTAREA, STARTAREA &~ $@SpokeToKaan; mes "Reset!"; goto L_Close; @@ -59,14 +44,12 @@ OnInit: } 029-1,32,99,0|script|#tutorialoutside|45,0,0 { - callfunc "TutorialState"; - if (@tutorial >= 8) + if (QL_BEGIN >= 8) goto L_Warp; goto L_ResetTutorial; L_ResetTutorial: - set @tutorial_tmp, 8; - callfunc "SetTutorialMask"; + set QL_BEGIN, 8; goto L_Warp; L_Warp: |