summaryrefslogtreecommitdiff
path: root/world/map/npc/029-1/vincent.txt
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-04-21 13:42:04 -0500
committerwushin <pasekei@gmail.com>2015-04-25 23:28:57 -0500
commitb1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53 (patch)
tree3607a90959888954db09b369588bbc5bc5687499 /world/map/npc/029-1/vincent.txt
parentc93710edb93f00d42119adbc332ab4152ead4341 (diff)
downloadserverdata-b1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53.tar.gz
serverdata-b1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53.tar.bz2
serverdata-b1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53.tar.xz
serverdata-b1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53.zip
Quest Log example
Diffstat (limited to 'world/map/npc/029-1/vincent.txt')
-rw-r--r--world/map/npc/029-1/vincent.txt22
1 files changed, 5 insertions, 17 deletions
diff --git a/world/map/npc/029-1/vincent.txt b/world/map/npc/029-1/vincent.txt
index 2d70b6de..ab157e25 100644
--- a/world/map/npc/029-1/vincent.txt
+++ b/world/map/npc/029-1/vincent.txt
@@ -9,7 +9,7 @@
"No.", L_Close;
L_Reset:
- set QUEST_SouthTulimshar, (QUEST_SouthTulimshar & ~(NIBBLE_2_MASK) | (0 << NIBBLE_2_SHIFT));
+ set QL_VINCENT, 0;
mes "Reset!";
goto L_Close;
@@ -23,15 +23,11 @@ OnInit:
}
029-1,107,110,0|script|Vincent|113
{
- // This NPC previously used the variable TMW_Quest
- callfunc "ClearVarTMW_Quest";
set @halloween_npc_id, $@halloween_npc_vincent;
callfunc "TrickOrTreat";
- set @state, ((QUEST_SouthTulimshar & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT);
-
- if (@state >= 2) goto L_Done;
- if (@state == 1) goto L_Progress;
+ if (QL_VINCENT >= 2) goto L_Done;
+ if (QL_VINCENT == 1) goto L_Progress;
goto L_Con_Vin_First;
L_Con_Vin_First:
@@ -73,8 +69,7 @@ L_Ask:
"No.", L_Close;
L_Sure:
- set @state, 1;
- callsub S_Update_Var;
+ set QL_VINCENT, 1;
set @TEMP, rand(4);
if(@TEMP == 1) goto L_Req2;
if(@TEMP == 2) goto L_Req3;
@@ -125,8 +120,7 @@ L_Have:
delitem "BugLeg", 5;
getexp 50, 0;
set Zeny, Zeny + 1000;
- set @state, 2;
- callsub S_Update_Var;
+ set QL_VINCENT, 2;
mes "[Vincent]";
mes "\"Here you go, a little of my appreciation!\"";
@@ -140,11 +134,5 @@ L_Done:
goto L_Close;
L_Close:
- set @TEMP, 0;
- set @state, 0;
close;
-
-S_Update_Var:
- set QUEST_SouthTulimshar, (QUEST_SouthTulimshar & ~(NIBBLE_2_MASK) | (@state << NIBBLE_2_SHIFT));
- return;
}