summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Yaro <reidyaro@gmail.com>2014-02-03 03:17:14 +0100
committerReid Yaro <reidyaro@gmail.com>2014-02-03 03:17:14 +0100
commit5cbabd3b310d3fdaf4640ad6c17964c6929b507d (patch)
treecad546f51d290fc1dbf8ce30e96c8342dad1cea4
parent6097fa710bfd30282151f760be88830205815bc2 (diff)
downloadserverdata-5cbabd3b310d3fdaf4640ad6c17964c6929b507d.tar.gz
serverdata-5cbabd3b310d3fdaf4640ad6c17964c6929b507d.tar.bz2
serverdata-5cbabd3b310d3fdaf4640ad6c17964c6929b507d.tar.xz
serverdata-5cbabd3b310d3fdaf4640ad6c17964c6929b507d.zip
Add new text on cookie master NPC to be able to re-give a cookie.
-rw-r--r--npc/001-1/cookiemaster.txt30
1 files changed, 29 insertions, 1 deletions
diff --git a/npc/001-1/cookiemaster.txt b/npc/001-1/cookiemaster.txt
index b0a888aa..f2965ba6 100644
--- a/npc/001-1/cookiemaster.txt
+++ b/npc/001-1/cookiemaster.txt
@@ -6,6 +6,8 @@
// Cookie NPC, beware, if you don't take your cookie, she'll keep it!
001-1.gat,34,33,0,0 script Cookie Master 319;2,{
+ if ((countitem("DeliciousCookie") == 1) && (getq(GeneraL_Cookies) == 1))
+ goto L_LostCookie;
if (getq(GeneraL_Cookies) == 1)
goto L_GetCookie;
@@ -207,11 +209,37 @@ L_Kick:
close;
L_GetCookie:
- mesq l("How was the cookie? Tasty, wasn't it?");
+ mesq l("Hey, I'm not a drug seller, you won't have another one by stalking me!");
next;
mesq l("If you want another one, you know what to do!");
next;
+ goto L_Bye;
+
+L_LostCookie:
+ mesq l("Hey, how was the...");
+ next;
+ mesq l("Wait a minute, where's the cookie that I gave you?");
+ next;
+ mesq l("The cookie where I put all of my love inside?");
+ next;
+ mesq l("The best, the wonderfull, the cookie from all of the cookies, the...");
+ next;
+ // Angry emote
+ mesq l("Grr...");
+ next;
+ mesq l("You're lucky that I'm a generous person, here is another one!");
+ next;
+ mesq l("This is the last one. If you use it again out of clumsiness, I will take your flesh as the main ingredient for my cookie recipe.");
+ next;
+
+ set @item, 517;
+ set @count, 1;
+ callfunc "InventoryPlace", 517, 1;
+
+ getitem "DeliciousCookie", 1;
+ npctalk3 l("You receive a @@!", getitemlink("DeliciousCookie"));
+
L_Bye:
closedialog;