summaryrefslogtreecommitdiff
path: root/npc/custom/events/xmas_rings_event.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-08-20 23:39:17 +0200
committerHaru <haru@dotalux.com>2016-08-21 00:54:23 +0200
commit460e53b1b64cf2880b4c615ad6eb41386f7530f6 (patch)
tree8fc91c576f7a0910faec125e1043bb1a2b76bb8c /npc/custom/events/xmas_rings_event.txt
parent7a276976948fa39e2d329de3b622c34dd0c572ad (diff)
downloadhercules-460e53b1b64cf2880b4c615ad6eb41386f7530f6.tar.gz
hercules-460e53b1b64cf2880b4c615ad6eb41386f7530f6.tar.bz2
hercules-460e53b1b64cf2880b4c615ad6eb41386f7530f6.tar.xz
hercules-460e53b1b64cf2880b4c615ad6eb41386f7530f6.zip
Removed some of the leftover calls to menu() in custom scripts
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/custom/events/xmas_rings_event.txt')
-rw-r--r--npc/custom/events/xmas_rings_event.txt113
1 files changed, 56 insertions, 57 deletions
diff --git a/npc/custom/events/xmas_rings_event.txt b/npc/custom/events/xmas_rings_event.txt
index a1b8918d9..d76c0a784 100644
--- a/npc/custom/events/xmas_rings_event.txt
+++ b/npc/custom/events/xmas_rings_event.txt
@@ -36,52 +36,54 @@ prontera,156,174,4 script Snower 4_M_06,{
}
emotion e_sob;
next;
- menu "Where are your sisters?",-, "What holidays?",M_PR,"What gifts?",M_WRAP,"May I help you?",M_QUEST;
-
- mes "[Snower]";
- mes "My younger sis Sneewy's left to some faraway land to prepare gifts for their poor children... I don't know where. You should ask my elder sis and her birdies.";
- next;
- mes "[Snower]";
- mes "My elder sis? Her name's Snoowy. She's sailed to some green island... She's talking about some gifts for dolphins or something...";
- close;
-
-M_PR:
- mes "[Snower]";
- mes "The whole three holidays? Well they come one after another!";
- mes "^000080The Christmas^000000, ^FF0000Karachun^000000 and ^008000New Year Eve^000000!";
- next;
- mes "[Snower]";
- mes "^FF0000Karachun^000000? Heh... This is an old pagans festival. They used to celebrate it before the appearance of HNY and XMas, you know.";
- next;
- goto M_QUEST;
-
-M_WRAP:
- mes "[Snower]";
- mes "My sisters say that all the gifts should look the same way. Or else some children might fight for fancy ones!";
- next;
- mes "[Snower]";
- mes "Would you like me to wrap your fancy gift boxes with a gray paper?";
- next;
- menu "Wrap them, please!",-, "No, thanks.",M_QUEST;
-
- set @prizes, countitem(Gift_Box_1)+countitem(Gift_Box_2)+countitem(Gift_Box_3)+countitem(Gift_Box_4);
- if( @prizes == 0){
+ switch (select("Where are your sisters?", "What holidays?", "What gifts?", "May I help you?")) {
+ case 1:
+ mes "[Snower]";
+ mes "My younger sis Sneewy's left to some faraway land to prepare gifts for their poor children... I don't know where. You should ask my elder sis and her birdies.";
+ next;
mes "[Snower]";
- mes "I don't see any gifts in fancy boxes on you...";
- if(countitem(Gift_Box))mes "You've got only gray boxes.";
+ mes "My elder sis? Her name's Snoowy. She's sailed to some green island... She's talking about some gifts for dolphins or something...";
close;
- }
- delitem 664,countitem(Gift_Box_1);
- delitem 665,countitem(Gift_Box_2);
- delitem 666,countitem(Gift_Box_3);
- delitem 667,countitem(Gift_Box_4);
- getitem 644,@prizes;
+ case 2:
+ mes "[Snower]";
+ mes "The whole three holidays? Well they come one after another!";
+ mes "^000080The Christmas^000000, ^FF0000Karachun^000000 and ^008000New Year Eve^000000!";
+ next;
+ mes "[Snower]";
+ mes "^FF0000Karachun^000000? Heh... This is an old pagans festival. They used to celebrate it before the appearance of HNY and XMas, you know.";
+ next;
+ break; // Quest
+ case 3:
+ mes "[Snower]";
+ mes "My sisters say that all the gifts should look the same way. Or else some children might fight for fancy ones!";
+ next;
+ mes "[Snower]";
+ mes "Would you like me to wrap your fancy gift boxes with a gray paper?";
+ next;
+ if (select("Wrap them, please!", "No, thanks.") != 1)
+ break; // Quest
+ set @prizes, countitem(Gift_Box_1)+countitem(Gift_Box_2)+countitem(Gift_Box_3)+countitem(Gift_Box_4);
+ if( @prizes == 0){
+ mes "[Snower]";
+ mes "I don't see any gifts in fancy boxes on you...";
+ if(countitem(Gift_Box))mes "You've got only gray boxes.";
+ close;
+ }
+ delitem 664,countitem(Gift_Box_1);
+ delitem 665,countitem(Gift_Box_2);
+ delitem 666,countitem(Gift_Box_3);
+ delitem 667,countitem(Gift_Box_4);
+ getitem 644,@prizes;
- mes "[Snower]";
- mes "*shuffle* Here you go.";
- next;
+ mes "[Snower]";
+ mes "*shuffle* Here you go.";
+ next;
+ break;
+ case 4:
+ break; // Quest
+ }
-M_QUEST:
+ // Quest
mes "[Snower]";
mes "I wish you find my sisters ASAP... They need help.";
if(Q_XMSRINGS==0) set Q_XMSRINGS,1;
@@ -111,7 +113,12 @@ louyang,224,249,4 script Sneewy 4_F_KID3,{
mes "[Sneewy]";
mes "Oh, hello. Has my brother Snower told you everything?";
next;
- menu "Here are your 4 Gift Boxes",-, "I don't know any Snowhatevers...",M_End;
+ if (select("Here are your 4 Gift Boxes", "I don't know any Snowhatevers...") != 1) {
+ mes "[Sneewy]";
+ mes "Pity... I've got a magic Santa's ring... I'd exchange it for 4 Gift Boxes...";
+ emotion e_swt;
+ close;
+ }
mes "[Sneewy]";
if(countitem(Gift_Box)<4){
@@ -132,12 +139,6 @@ louyang,224,249,4 script Sneewy 4_F_KID3,{
emotion e_thx;
mes "Thanks again! No children will meet the holidays without the gifts!";
close;
-
-M_End:
- mes "[Sneewy]";
- mes "Pity... I've got a magic Santa's ring... I'd exchange it for 4 Gift Boxes...";
- emotion e_swt;
- close;
}
izlu2dun,133,160,2 script Snoowy 4_F_06,{
@@ -163,8 +164,12 @@ izlu2dun,133,160,2 script Snoowy 4_F_06,{
mes "[Snoowy]";
mes "But I too need 3 more gifts for my marine folk friends...";
next;
- menu "Have these gifts!",-, "I need a li'l something in return",M_End;
-
+ if (select("Have these gifts!", "I need a li'l something in return") != 1) {
+ mes "[Snoowy]";
+ mes "I'd exchange a GOLD magic ring for 3 gift boxes...";
+ emotion e_swt;
+ close;
+ }
mes "[Snoowy]";
if(countitem(Gift_Box)<3){
mes "Oops!! You haven't got 3 gray gift boxes on you.";
@@ -182,10 +187,4 @@ izlu2dun,133,160,2 script Snoowy 4_F_06,{
mes "Oh... the whole marine folk send you their thanks! They love presents so much!!!";
if(rand(2))mes "Didn't you know that Santa's Hat reveals the real power of the rings?";
close;
-
-M_End:
- mes "[Snoowy]";
- mes "I'd exchange a GOLD magic ring for 3 gift boxes...";
- emotion e_swt;
- close;
}