From 6728378e57caa14d811e515891ccbbef07dc1110 Mon Sep 17 00:00:00 2001 From: No Name Date: Sun, 14 Feb 2010 17:48:48 -0800 Subject: Close some long-standing issues in Hurnscald's Waitress NPC. This moves the GP and item checks to immediately precede transactions and addresses a few typographical errors. --- npc/009-2_Hurnscald/waitress.txt | 60 +++++++++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 19 deletions(-) diff --git a/npc/009-2_Hurnscald/waitress.txt b/npc/009-2_Hurnscald/waitress.txt index 4bf018ee..265cd234 100644 --- a/npc/009-2_Hurnscald/waitress.txt +++ b/npc/009-2_Hurnscald/waitress.txt @@ -1,47 +1,69 @@ // Waitress 009-2.gat,60,52,0 script Melinda 140,{ - if (zeny < 180) goto L_NoMoney; - getinventorylist; - set @beerCount, countitem("Beer"); - if (@inventorylist_count == 100 && beerCount == 0) goto L_TooMany; mes "[Melinda]"; - mes "\"Hi sweety! Want a fresh beer for 170gp?\""; + mes "\"Hi, sweetie! Want a fresh beer for 170 GP?\""; next; menu - "\"Sure! [don't tip]\"", -, - "Sure! [tip 5gp]", L_5Tip, - "Sure! [tip 10gp]", L_10Tip, + "\"Sure! [don't tip]\"", L_NoTip, + "Sure! [tip 5 GP]", L_5Tip, + "Sure! [tip 10 GP]", L_10Tip, "Nah, maybe later.", L_No; + close; + +L_NoTip: + if (zeny < 170) + goto L_NoMoney; + + getinventorylist; + if (@inventorylist_count == 100 && countitem("Beer") == 0) + goto L_TooMany; - mes "[Melinda]"; - mes "Pff... nickel nurser!"; - next; set zeny, zeny - 170; getitem "Beer", 1; + + mes "[Melinda]"; + mes "Pff... nickel nurser!"; close; L_5Tip: - mes "[Melinda]"; - mes "\"Here you go, sweethearth!\""; - next; + if (zeny < 175) + goto L_NoMoney; + + getinventorylist; + if (@inventorylist_count == 100 && countitem("Beer") == 0) + goto L_TooMany; + set zeny, zeny - 175; getitem "Beer", 1; + + mes "[Melinda]"; + mes "\"Here you go, sweetheart!\""; close; L_10Tip: - mes "[Melinda]"; - mes "\"Thank you, sweety! Want me to hear a secret?\""; - next; + if (zeny < 180) + goto L_NoMoney; + + getinventorylist; + if (@inventorylist_count == 100 && countitem("Beer") == 0) + goto L_TooMany; + set zeny, zeny - 180; getitem "Beer", 1; + + mes "[Melinda]"; + mes "\"Thank you, sweetie! Want to hear a secret?\""; + next; + menu - "What's it, darling?", -, + "What is it, darling?", -, "Nah, I don't feel like chatting.", L_No; + mes "[Melinda]"; - mes "\"The bowmaking master in this village used to construct exceptional bows. When you want one you should go and ask him.\""; + mes "\"The master bowyer in this village used to construct exceptional bows. When you want one you should go and ask him.\""; close; L_No: -- cgit v1.2.3-60-g2f50