diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-12-22 12:49:20 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-12-22 12:58:03 +0100 |
commit | d055f5ee2e8aba6023fad078340770ef051a8d2e (patch) | |
tree | 5ebcf129f9c86799598ab321206c36476fcd6c22 /world/map/npc/033-1/kimarr.txt | |
parent | 495f56308f9eef6918f337b81c4055e318277627 (diff) | |
download | serverdata-d055f5ee2e8aba6023fad078340770ef051a8d2e.tar.gz serverdata-d055f5ee2e8aba6023fad078340770ef051a8d2e.tar.bz2 serverdata-d055f5ee2e8aba6023fad078340770ef051a8d2e.tar.xz serverdata-d055f5ee2e8aba6023fad078340770ef051a8d2e.zip |
some cleanup on barbarian NPCs
Diffstat (limited to 'world/map/npc/033-1/kimarr.txt')
-rw-r--r-- | world/map/npc/033-1/kimarr.txt | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/world/map/npc/033-1/kimarr.txt b/world/map/npc/033-1/kimarr.txt index f6a22423..e1137100 100644 --- a/world/map/npc/033-1/kimarr.txt +++ b/world/map/npc/033-1/kimarr.txt @@ -157,11 +157,8 @@ L_Game: set $@Fluffy_FighterID, getcharid(3); set $@Fluffy_Time, 180; -//TODO: set minimum number of killed fluffies, here are some ideas -// set $@Fluffy_Min, (BaseLevel*7)/10; -// set $@Fluffy_Min, (BaseLevel*2)/3; -// set $@Fluffy_Min, (BaseLevel*3)/4; - set $@Fluffy_Min, 2; + set $@Fluffy_Min, (BaseLevel*7)/10; + warp "033-1.gat", 79, 34; initnpctimer; goto L_Close; @@ -306,9 +303,6 @@ OnFluffyDeath: set @MobID, 0; set $@Fluffy_Kills, $@Fluffy_Kills + 1; set $@Fluffy_Alive, $@Fluffy_Alive - 1; - //TODO: remove announce after debugging - // message strcharinfo(0), "Fluffies alive: " + $@Fluffy_Alive; - // message strcharinfo(0), "Fluffies killed: " + $@Fluffy_Kills; if ($@Fluffy_Alive != 0) end; if (attachrid($@Fluffy_FighterID) == 1) @@ -349,6 +343,9 @@ 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; L_MaybeRecordScore: @@ -421,12 +418,10 @@ L_Close: // if you unset @state, @Q_Barbarians_MASK or @Q_Barbarians_SHIFT, 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; } |