diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-09 13:33:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-09 13:33:57 -0300 |
commit | cf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch) | |
tree | f9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/002-1/sarah.txt | |
parent | 8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff) | |
download | serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2 serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip |
Override
Diffstat (limited to 'npc/002-1/sarah.txt')
-rwxr-xr-x | npc/002-1/sarah.txt | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/npc/002-1/sarah.txt b/npc/002-1/sarah.txt new file mode 100755 index 00000000..e703194f --- /dev/null +++ b/npc/002-1/sarah.txt @@ -0,0 +1,75 @@ +002-1,93,43,0 script Sarah NPC106,{ + if (QL_SARAH >= 2) goto L_Done; + if (QL_SARAH == 1) goto L_Progress; + + mes "[Sarah]"; + mes "\"Boy, am I hungry or what!\""; + next; + + @temp = rand(2); + if(@temp == 1) goto L_Opening1; + goto L_Opening0; + +L_Opening0: + mes "\"Cherry Cake is the best!\""; + next; + goto L_Ask; + +L_Opening1: + mes "\"Mmm, Cherry Cake... I love it!\""; + next; + goto L_Ask; + +L_Ask: + mes "\"Can you bring me a piece of Cherry Cake? Pretty please?\""; + menu + "Yes.", L_Req0, + "No.", L_close; + +L_Req0: + mes "[Sarah]"; + mes "\"Yippee! Bring me a piece of Cherry Cake, and I'll give you a nice hat!\""; + next; + QL_SARAH = 1; + mes "[Sarah]"; + mes "\"Please bring it to me!\""; + goto L_close; + +L_Progress: + if (countitem("CherryCake") < 1) + goto L_NotEnough; + mes "[Sarah]"; + mes "\"Whee!\""; + next; + mes "You brought me Cherry Cake! Here is your new hat, as promised.\""; + getinventorylist; + if ((@inventorylist_count - (countitem("CherryCake") == 1)) > 99) goto L_TooMany; + delitem "CherryCake", 1; + getitem "SerfHat", 1; + QL_SARAH = 2; + close2; + emotion EMOTE_TONGUE, strcharinfo(0); + end; + +L_NotEnough: + mes "[Sarah]"; + mes "\"Oh, I'm starving! Please bring me Cherry Cake!\""; + goto L_close; + +L_Done: + mes "[Sarah]"; + mes "\"It was so tasty, I can't eat anything more... Thank you!\""; + close2; + emotion EMOTE_TONGUE, strcharinfo(0); + end; + +L_close: + @temp = 0; + close; + +L_TooMany: + next; + mes "[Sarah]"; + mes "\"You don't have room for my reward. I'll wait until you do.\""; + goto L_close; +} |