summaryrefslogtreecommitdiff
path: root/npc/019-1_Snow_field
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-12-23 17:16:49 +0000
committerJared Adams <jaxad0127@gmail.com>2008-12-23 17:18:37 +0000
commitb1ced66321ffed02cde1a9ccd39fa2c9ba004125 (patch)
tree87b2f8639b8e1b79125ebdd77f71d19305d0084c /npc/019-1_Snow_field
parent2ac5f8a1dfa5482dc1fee2bbd41b5e0eb0928abd (diff)
downloadserverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.tar.gz
serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.tar.bz2
serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.tar.xz
serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.zip
Fixeds to check for invy room before giving items
Diffstat (limited to 'npc/019-1_Snow_field')
-rw-r--r--npc/019-1_Snow_field/santa_helper.txt40
-rw-r--r--npc/019-1_Snow_field/snowman.txt7
2 files changed, 31 insertions, 16 deletions
diff --git a/npc/019-1_Snow_field/santa_helper.txt b/npc/019-1_Snow_field/santa_helper.txt
index 72b00acf..a8a86af6 100644
--- a/npc/019-1_Snow_field/santa_helper.txt
+++ b/npc/019-1_Snow_field/santa_helper.txt
@@ -1,11 +1,12 @@
019-1.gat,74,75,0 script Santa's Helper 105,{
if (ChristmasQuest2 == 1) goto L_Done;
mes "[Santa's Helper]";
- mes "Hello my young friend.";
- mes "Would you like to help me?";
+ mes "\"Hello my young friend.";
+ mes "Would you like to help me?\"";
next;
- mes "Those monsters stole Santa's presents.";
- mes "If you help me, I'll give you something very nice";
+ mes "[Santa's Helper]";
+ mes "\"Those monsters stole Santa's presents.";
+ mes "If you help me, I'll give you something very nice\"";
next;
L_M:
@@ -16,12 +17,15 @@ L_M:
L_Y:
mes "[Santa's Helper]";
- mes "Hmm, let me check what you have.";
+ mes "\"Hmm, let me check what you have.\"";
next;
- if(countitem(515)<25) goto L_NoItem;
- if(countitem(516)<20) goto L_NoItem;
- if(countitem(538)<5) goto L_NoItem;
- mes "Great! Here is something for you";
+ if (countitem(515) < 25) goto L_NoItem;
+ if (countitem(516) < 20) goto L_NoItem;
+ if (countitem(538) < 5) goto L_NoItem;
+ getinventorylist;
+ if (@inventorylist_count > 99) goto L_TooMany;
+ mes "[Santa's Helper]";
+ mes "\"Great! Here is something for you\"";
delitem 515, 25;
delitem 516, 20;
delitem 538, 5;
@@ -31,27 +35,31 @@ L_Y:
L_R:
mes "[Santa's Helper]";
- mes "I need:";
+ mes "\"I need:";
mes "25 purple present boxes";
mes "20 blue present boxes";
- mes "5 green present boxes";
+ mes "5 green present boxes\"";
next;
goto L_M;
L_N:
mes "[Santa's Helper]";
- mes "Enjoy your holidays and I wish you an happy Christmas!";
+ mes "\"Enjoy your holidays and I wish you an happy Christmas!\"";
close;
L_NoItem:
mes "[Santa's Helper]";
- mes "You dont seem to have enough presents.";
+ mes "\"You dont seem to have enough presents.\"";
close;
L_Done:
mes "[Santa's Helper]";
- mes "All the children got their Christmas presents.";
- mes "Thank you for your help.";
+ mes "\"All the children got their Christmas presents.";
+ mes "Thank you for your help.\"";
close;
-}
+L_TooMany:
+ mes "[Santa's Helper]";
+ mes "\"It doesn't look like you have room for this. Come back later.\"";
+ close;
+}
diff --git a/npc/019-1_Snow_field/snowman.txt b/npc/019-1_Snow_field/snowman.txt
index 1f56e4f2..ca8c1f09 100644
--- a/npc/019-1_Snow_field/snowman.txt
+++ b/npc/019-1_Snow_field/snowman.txt
@@ -24,6 +24,8 @@ L_Sure:
if(countitem(510) < 15) goto L_NoItem;
if(countitem(509) < 10) goto L_NoItem;
if(countitem(502) < 5) goto L_NoItem;
+ getinventorylist;
+ if (@inventorylist_count > 99) goto L_TooMany;
delitem 510, 15;
delitem 509, 10;
delitem 502, 5;
@@ -51,4 +53,9 @@ L_Done:
mes "[Snowman]";
mes "\"Thank you for help!\"";
close;
+
+L_TooMany:
+ mes "[Snowman]";
+ mes "\"It doesn't look like you have room for this. Come back later.\"";
+ close;
}