From 5cbabd3b310d3fdaf4640ad6c17964c6929b507d Mon Sep 17 00:00:00 2001 From: Reid Yaro Date: Mon, 3 Feb 2014 03:17:14 +0100 Subject: Add new text on cookie master NPC to be able to re-give a cookie. --- npc/001-1/cookiemaster.txt | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'npc') 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; -- cgit v1.2.3-70-g09d2