From b9c76c51e9ba9c84a0bee23466901c6166569a67 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Tue, 17 Jan 2012 20:23:02 +0100 Subject: Barbarian quest: change some variables that are used as constants to global and put them in an init NPC --- world/map/npc/034-1/yetiSpawn.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'world/map/npc/034-1/yetiSpawn.txt') diff --git a/world/map/npc/034-1/yetiSpawn.txt b/world/map/npc/034-1/yetiSpawn.txt index f18e78be..7182c1af 100644 --- a/world/map/npc/034-1/yetiSpawn.txt +++ b/world/map/npc/034-1/yetiSpawn.txt @@ -2,9 +2,7 @@ // Author: Jenalya 034-1.gat,79,98,0|script|#Yerrnk_YetiTrigger|32767,1,3,{ - 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 != 7) end; @@ -35,9 +33,7 @@ L_Abort: OnYetiDeath: set @MobID, 1072; - 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 != 7) goto L_End; set @state, 8; @@ -51,7 +47,7 @@ L_End: 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; } -- cgit v1.2.3-70-g09d2