summaryrefslogtreecommitdiff
path: root/world/map/npc/halloween/2011/trick_or_treat.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-10-21 23:23:01 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2011-10-21 23:29:32 +0200
commit0952e8f029162cbae237f1114fab4aa8211f3090 (patch)
treef1d226642fc36ce9f453028b3bd4c343f414e512 /world/map/npc/halloween/2011/trick_or_treat.txt
parenta50ac58849cc7b99d38564f2134b51b96f17afa6 (diff)
downloadserverdata-0952e8f029162cbae237f1114fab4aa8211f3090.tar.gz
serverdata-0952e8f029162cbae237f1114fab4aa8211f3090.tar.bz2
serverdata-0952e8f029162cbae237f1114fab4aa8211f3090.tar.xz
serverdata-0952e8f029162cbae237f1114fab4aa8211f3090.zip
Halloween event:
- fix, so reward is given only once - add missing dialogue in for Kfahr - change dialogue when giving reward and add some missing \" - fix on counting logic when giving sweets - remove some unobtainable candy
Diffstat (limited to 'world/map/npc/halloween/2011/trick_or_treat.txt')
-rw-r--r--world/map/npc/halloween/2011/trick_or_treat.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/world/map/npc/halloween/2011/trick_or_treat.txt b/world/map/npc/halloween/2011/trick_or_treat.txt
index f2de95a4..e765d8b6 100644
--- a/world/map/npc/halloween/2011/trick_or_treat.txt
+++ b/world/map/npc/halloween/2011/trick_or_treat.txt
@@ -86,7 +86,7 @@ L_MaskMemoryNo:
set @loop, 0;
set @sweets_types, 0;
L_Count_Sweets:
- if (!$@hw2011_sweets$[@loop])
+ if ($@hw2011_sweets$[@loop] == "")
goto L_Check_Inventory;
if (countitem($@hw2011_sweets$[@loop]))
set @sweets_types, @sweets_types + 1;
@@ -114,14 +114,15 @@ L_Check_Karma:
// 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";
+ mes "\"All this candy isn't healthy, here take this to have a break from it.\"";
getitem $@hw2011_big_reward$, 1;
+ set hw2011, hw2011 | $@hw2011_got_big_reward;
// 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.";
+ 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;