diff options
Diffstat (limited to 'npc/003-1/guardphilip.txt')
-rw-r--r-- | npc/003-1/guardphilip.txt | 71 |
1 files changed, 2 insertions, 69 deletions
diff --git a/npc/003-1/guardphilip.txt b/npc/003-1/guardphilip.txt index 99c7f85a1..d64eca424 100644 --- a/npc/003-1/guardphilip.txt +++ b/npc/003-1/guardphilip.txt @@ -3,78 +3,11 @@ 003-1,98,100,0 script Guard Philipe 451,{ - .cake = CherryCake; - .reward = FancyHat; - - 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) > 0) - { - speech S_FIRST_BLANK_LINE | S_LAST_NEXT, - l("You brought me Cherry Cake! Here is your @@, as promised.",getitemlink(.reward)); - delitem .cake,1; - getitem .reward,1; - setq TulimsharQuest_Sarah, 1; - close; - } - else - { - speech S_FIRST_BLANK_LINE, - l("Sorry it's not the cake i love."); - close; - } - } - - function quest_started { - speech S_FIRST_BLANK_LINE | S_LAST_NEXT, - l("Oh Welcoem then."); - speech S_LAST_NEXT, - l("Can you bring me a piece of Cherry Cake? Pretty please?."); - do - { - select - l("Here is it !"), - menuaction(l("Quit")); - - switch (@menu) - { - case 1: - quest_open; - break; - } - } while (@menu != 2); - } - - do - { - .@chest = getq(TulimsharQuest_Sarah); - if (.@chest == 1) - goto quest_completed; - select - rif(.@chest == 0, - l("Hello i'm new there, can i help you ?")), - menuaction(l("Quit")); - - switch (@menu) - { - case 1: - quest_started; - break; - } - } while (@menu != 2); - - closedialog; - goodbye; - close; +hello; OnInit: .sex = G_MALE; .distance = 3; end; -} - +}
\ No newline at end of file |