summaryrefslogtreecommitdiff
path: root/world/map/npc/033-1/kimarr.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2012-01-17 20:23:02 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2012-01-17 20:25:09 +0100
commitb9c76c51e9ba9c84a0bee23466901c6166569a67 (patch)
tree8c747da1c21467e7aad8d62002287a97da527b15 /world/map/npc/033-1/kimarr.txt
parentaf937c6f932cdea5b56f0ee7c4976c7706e986a8 (diff)
downloadserverdata-b9c76c51e9ba9c84a0bee23466901c6166569a67.tar.gz
serverdata-b9c76c51e9ba9c84a0bee23466901c6166569a67.tar.bz2
serverdata-b9c76c51e9ba9c84a0bee23466901c6166569a67.tar.xz
serverdata-b9c76c51e9ba9c84a0bee23466901c6166569a67.zip
Barbarian quest: change some variables that are used as constants to global and put them in an init NPC
Diffstat (limited to 'world/map/npc/033-1/kimarr.txt')
-rw-r--r--world/map/npc/033-1/kimarr.txt15
1 files changed, 4 insertions, 11 deletions
diff --git a/world/map/npc/033-1/kimarr.txt b/world/map/npc/033-1/kimarr.txt
index 0070089c..c8924df8 100644
--- a/world/map/npc/033-1/kimarr.txt
+++ b/world/map/npc/033-1/kimarr.txt
@@ -37,10 +37,7 @@
if ($@Fluffy_FighterID == getcharid(3))
goto L_Attention;
- set @Q_Barbarians_MASK, NIBBLE_0_MASK;
- set @Q_Barbarians_SHIFT, NIBBLE_0_SHIFT;
-
- set @state, ((QUEST_Barbarians & @Q_Barbarians_MASK) >> @Q_Barbarians_SHIFT);
+ set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state >= 3) goto L_Again;
if (@state == 2) goto L_Reward;
@@ -103,9 +100,7 @@ L_AlreadyGotReward:
goto L_Close;
L_Reward1:
- set @Q_Barbarians_MASK, NIBBLE_0_MASK;
- set @Q_Barbarians_SHIFT, NIBBLE_0_SHIFT;
- set @state, ((QUEST_Barbarians & @Q_Barbarians_MASK) >> @Q_Barbarians_SHIFT);
+ set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state >= 2)
goto L_AlreadyGotReward;
@@ -344,8 +339,6 @@ S_Clean:
killmonster "033-1.gat", "Kimarr::OnWolvernDeath";
killmonster "033-1.gat", "Kimarr::OnYetiDeath";
killmonster "033-1.gat", "Kimarr::OnFluffyDeath";
- set @Q_Barbarians_MASK, 0;
- set @Q_Barbarians_SHIFT, 0;
set @state, 0;
return;
@@ -420,12 +413,12 @@ L_Close:
// still, I think it's a good precent to ALWAYS exit via L_Close
set @loop, 0;
- // if you unset @state, @Q_Barbarians_MASK or @Q_Barbarians_SHIFT, it might break the script
+ // if you unset @state, it might break the script
// If only we had the concept of "local constants" ...
close;
S_Update_Mask:
set QUEST_Barbarians,
- (QUEST_Barbarians & ~(@Q_Barbarians_MASK)) | (@state << @Q_Barbarians_SHIFT);
+ (QUEST_Barbarians & ~($@Q_Barbarians_MASK)) | (@state << $@Q_Barbarians_SHIFT);
return;
}