summaryrefslogtreecommitdiff
path: root/npc/xmas/2010
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2010-12-22 11:58:34 +0100
committerWombat <hpwombat@yahoo.com>2010-12-22 12:14:26 -0500
commitb400f51483a5f50b8920b3053fdd711ba25f3122 (patch)
treed3d3068ace56e271351434fe4743ed55fca0049e /npc/xmas/2010
parentd5c4679e208aa29d4ff7344a4253f3ec099fc79c (diff)
downloadserverdata-b400f51483a5f50b8920b3053fdd711ba25f3122.tar.gz
serverdata-b400f51483a5f50b8920b3053fdd711ba25f3122.tar.bz2
serverdata-b400f51483a5f50b8920b3053fdd711ba25f3122.tar.xz
serverdata-b400f51483a5f50b8920b3053fdd711ba25f3122.zip
Removing yellow present boxes as regular drop in mob_db. Fixing presentcounter in Golbanez. Corrected the messages in 031-3 labyrinth. (Hopefully all that are wrong.)
Diffstat (limited to 'npc/xmas/2010')
-rwxr-xr-xnpc/xmas/2010/golbanez.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/xmas/2010/golbanez.txt b/npc/xmas/2010/golbanez.txt
index fe9ac50d..0b145ca9 100755
--- a/npc/xmas/2010/golbanez.txt
+++ b/npc/xmas/2010/golbanez.txt
@@ -145,6 +145,12 @@ L_Menu:
if (@menuitem[@menu] == 4022) goto L_Check_White;
L_Check_Yellow:
+ // If you have already donated more than you have collected in the right way (Via script),
+ // then whatever you have donated so far will remain, but if you have some spare boxes,
+ // it will be not possible to give it.
+ if (Count_Yellow > Yellow) set Yellow, Count_Yellow;
+ if (Count_Yellow + @count > Yellow) goto L_Fail_Box;
+
if (Count_Yellow >= 40) goto L_Done_Yellow;
if (@count > Yellow) goto L_Fail_Box;
delitem @menuitem[@menu], @count;
@@ -153,6 +159,12 @@ L_Check_Yellow:
goto Golbenez_pay_presents;
L_Check_White:
+ // If you have already donated more than you have collected in the right way (Via script),
+ // then whatever you have donated so far will remain, but if you have some spare boxes,
+ // it will be not possible to give it.
+ if (Count_White > White) set White, Count_White;
+ if (Count_White + @count > White) goto L_Fail_Box;
+
if (Count_White >= 30) goto L_Done_White;
if (@count > White) goto L_Fail_Box;
delitem @menuitem[@menu], @count;