diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-10 23:48:17 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-10 23:48:17 -0600 |
commit | fa8044e15a87cbe3c09f69f116cad7271c1d0272 (patch) | |
tree | a84d0ca6c850ec9af9be528a9ec1f276d89a90e2 /npc/easter/2009/bunny.txt | |
parent | cde870eb8366667df7b87a7235026b9511785659 (diff) | |
download | serverdata-fa8044e15a87cbe3c09f69f116cad7271c1d0272.tar.gz serverdata-fa8044e15a87cbe3c09f69f116cad7271c1d0272.tar.bz2 serverdata-fa8044e15a87cbe3c09f69f116cad7271c1d0272.tar.xz serverdata-fa8044e15a87cbe3c09f69f116cad7271c1d0272.zip |
Easter 2009
Diffstat (limited to 'npc/easter/2009/bunny.txt')
-rw-r--r-- | npc/easter/2009/bunny.txt | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/npc/easter/2009/bunny.txt b/npc/easter/2009/bunny.txt new file mode 100644 index 00000000..10cb86e3 --- /dev/null +++ b/npc/easter/2009/bunny.txt @@ -0,0 +1,88 @@ +// The Easter Bunny + +007-1.gat,32,30, 0 script Easter Bunny 173,{ + callfunc "ClearVariables"; + if (QUEST_Easter09 == 1) goto L_CheckEggs; + if (QUEST_Easter09 == 2) goto L_Done; + + mes "[Easter Bunny]"; + mes "Oh dear! Oh dear! I shall be too late!"; + next; + + menu + "What do you mean?", -, + "Goodbye then.", close; + + mes "[Easter Bunny]"; + mes "It's already Easter and I haven't hid a single Easter egg yet. And the worst part is, they already started searching for the eggs. What am I going to do? I seriously need a miracle. I mean, there are so many people searching and I haven't even begun yet. What am I going to do?"; + next; + + menu + "Maybe I can help.", -, + "I'll leave you to it then.", close; + + mes "[Easter Bunny]"; + mes "It's hopeless, you can't help me, it's to late!"; + next; + + menu + "I'm sure they haven't searched everywhere. What about that stone over there?", -, + "You're probably right.", close; + + mes "[Easter Bunny]"; + mes "Maybe you're right. Here, go hide these 10 Easter eggs for me."; + + getitem "EasterEgg", 10; + set QUEST_Easter09, 1; + + close; + +L_CheckEggs: + set @count, 0; + set @temp, QUEST_Easter09_slots; + set @i, 0; + +L_CheckEggs_Loop: + if (@temp & 1) set @count, @count + 1; + set @i, @i + 1; + if (@i == 31) goto L_CheckEggs_Continue; + set @temp, @temp >> 1; + goto L_CheckEggs_Loop; + +L_CheckEggs_Continue: + if (@count > 10) goto L_ManyEggs; + if (@count == 10) goto L_EnoughEggs; + mes "[Easter Bunny]"; + mes "Please place " + (10 - @count) + " more eggs!"; + + set @temp, 10 - @count - countitem("EasterEgg"); + + if (@temp > 0) goto L_GiveMoreEggs; + close; + +L_GiveMoreEggs: + mes "[Easter Bunny]"; + mes "What happened to " + @temp + " of your eggs?"; + next; + + mes "[Easter Bunny]"; + mes "Never mind that. Take these and get them placed!"; + getitem "EasterEgg", @temp; + close; + +L_ManyEggs: + mes "[Easter Bunny]"; + mes "How did you manage to place more eggs than I gave you?"; + next; + +L_EnoughEggs: + mes "[Easter Bunny]"; + mes "Thanks! I'm saved. Now I don't need to be scared anymore. And I just came with the great plan to hide myself under a paper bag. Oh well, maybe you can use it."; + getitem "PaperBagHelm", 1; + close; + +L_Done: + mes "[Easter Bunny]"; + mes "Thank you for placing those eggs for me!"; + close; +} |