diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-10-20 19:48:15 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2011-10-20 20:03:49 -0700 |
commit | 6be13484c7e4244943c3e0be3720cbef78339ad5 (patch) | |
tree | 7851b618f04938faac0277f464eeb7df5c6daa07 /world/map/npc/halloween/2011/trick_or_treat.txt | |
parent | 235709d0d10c632bef619df6f8d6ea27f5c190ac (diff) | |
download | serverdata-6be13484c7e4244943c3e0be3720cbef78339ad5.tar.gz serverdata-6be13484c7e4244943c3e0be3720cbef78339ad5.tar.bz2 serverdata-6be13484c7e4244943c3e0be3720cbef78339ad5.tar.xz serverdata-6be13484c7e4244943c3e0be3720cbef78339ad5.zip |
Fix halloween quest and add 'big reward'.
Diffstat (limited to 'world/map/npc/halloween/2011/trick_or_treat.txt')
-rw-r--r-- | world/map/npc/halloween/2011/trick_or_treat.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/world/map/npc/halloween/2011/trick_or_treat.txt b/world/map/npc/halloween/2011/trick_or_treat.txt index 3f3aa890..f2de95a4 100644 --- a/world/map/npc/halloween/2011/trick_or_treat.txt +++ b/world/map/npc/halloween/2011/trick_or_treat.txt @@ -109,10 +109,21 @@ L_Check_Karma: // Please don't change this, you'll break stuff. if (rand($@hw2011_num_npcs, 0xffff) <= (hw2011 & 0xffff)) goto L_Cheater; + if (hw2011 & $@hw2011_got_big_reward) + goto L_Tricking_Trick_or_Treat; + // assert: (hw2011 & 0xffff) < $@hw2011_num_npcs + if (rand($@hw2011_num_npcs - (hw2011 & 0xffff))) + goto L_Tricking_Trick_or_Treat; + mes "Here, have something to freshen you up after your long night"; + getitem $@hw2011_big_reward$, 1; + // you get the big reward first, then the main treats + // otherwise it would be too complicated, and/or possibly unfair goto L_Tricking_Trick_or_Treat; L_Cheater: mes "I recognize you despite your mask, you have been taking sweets you do not deserve."; + if ((hw2011 & 0xFFFF) != 0xFFFF) + set hw2011, hw2011 + 1; goto L_Close; L_Remember_Face: @@ -188,7 +199,7 @@ L_ScaryFace: mes "\"Oh, that's your face ...\""; next; set @mask, 0; - set @scarefactor, 5; + set @scarefactor, 2 + rand(3); goto L_MaskDone; L_NoMask: |