diff options
Diffstat (limited to 'npc/003-1/sarah.txt')
-rw-r--r-- | npc/003-1/sarah.txt | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/npc/003-1/sarah.txt b/npc/003-1/sarah.txt index ebcd1131e..01bb2fbf9 100644 --- a/npc/003-1/sarah.txt +++ b/npc/003-1/sarah.txt @@ -1,30 +1,30 @@ +// TMW2 Script // Author: // Saulc +// Description: +// Random NPC without any purpose but to give SerfHat. Uh. // TODO: Could be repeatable quest (eg. 60 GP for a cake every day, so you can have a 10 GP profit selling cakes) 003-1,90,144,0 script Sarah NPC_FEMALE,{ .cake = CherryCake; .reward = SerfHat; - - function quest_completed{ + + function quest_completed { speech S_FIRST_BLANK_LINE | S_LAST_NEXT, l("It was so tasty, I can't eat anything more... Thank you."); close; } function quest_open { - if (countitem(.cake) > 5) - { + if (countitem(.cake) >= 5) { speech S_FIRST_BLANK_LINE | S_LAST_NEXT, - l("You brought me 6 @@ ! Here is your @@, as promised.",getitemlink(.cake), getitemlink(.reward)); - delitem .cake,6; + l("You brought me 5 @@ ! Here is your @@, as promised.",getitemlink(.cake), getitemlink(.reward)); + delitem .cake,5; getitem .reward,1; setq TulimsharQuest_Sarah, 1; close; - } - else - { + } else { speech S_FIRST_BLANK_LINE, l("Sorry, that is not the cake I love."); close; @@ -35,22 +35,21 @@ speech S_FIRST_BLANK_LINE | S_LAST_NEXT, l("Oh, Welcome then."); speech S_LAST_NEXT, - l("Can you bring me 6 piece of Cherry Cake? Pretty please?"); + l("Can you bring me 5 pieces of Cherry Cake? Pretty please?"); do { - select - l("Here is it!"), - menuaction(l("Quit")); + select + l("Here they are!"), + menuaction(l("Quit")); - switch (@menu) - { - case 1: - quest_open; - break; - } - } while (@menu != 2); + switch (@menu) { + case 1: + quest_open; + break; + } + } while (@menu != 2); } - + do { .@chest = getq(TulimsharQuest_Sarah); @@ -61,8 +60,7 @@ l("Hello, I'm new here! Can I help you?")), menuaction(l("Quit")); - switch (@menu) - { + switch (@menu) { case 1: quest_started; break; |