diff options
author | Saulc <lucashelaine14@gmail.com> | 2018-01-30 18:34:39 +0100 |
---|---|---|
committer | Saulc <lucashelaine14@gmail.com> | 2018-01-30 18:34:39 +0100 |
commit | 7e7af651bbcb0c2e522938dea2e7898646712347 (patch) | |
tree | 1d17e858f8611afa8b465407033e1c1b7a235361 /npc/003-1/ninathetraveler.txt | |
parent | 52517b8e8e3fb5614cb106523575c681c3beb6b9 (diff) | |
download | serverdata-7e7af651bbcb0c2e522938dea2e7898646712347.tar.gz serverdata-7e7af651bbcb0c2e522938dea2e7898646712347.tar.bz2 serverdata-7e7af651bbcb0c2e522938dea2e7898646712347.tar.xz serverdata-7e7af651bbcb0c2e522938dea2e7898646712347.zip |
add 30 useless npc in tulimshar town
Diffstat (limited to 'npc/003-1/ninathetraveler.txt')
-rw-r--r-- | npc/003-1/ninathetraveler.txt | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/npc/003-1/ninathetraveler.txt b/npc/003-1/ninathetraveler.txt new file mode 100644 index 000000000..771a495ab --- /dev/null +++ b/npc/003-1/ninathetraveler.txt @@ -0,0 +1,80 @@ +// Author: +// Saulc + +003-1,56,143,0 script Nina The Traveler 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; + +OnInit: + .sex = G_MALE; + .distance = 3; + end; +} + |