From b1fcaf1a416f3f1453787eaf447efd8e8d9baf7d Mon Sep 17 00:00:00 2001 From: kisuka Date: Fri, 24 May 2019 00:11:08 -0700 Subject: [PATCH] Review changes --- npc/events/christmas_2006.txt | 26 +++---- npc/events/christmas_2007.txt | 118 ++++++++++++++---------------- npc/events/christmas_2008.txt | 4 +- npc/events/christmas_2009.txt | 48 ++++++------ npc/events/christmas_2010.txt | 28 ++++--- npc/events/valentinesday_2004.txt | 19 +++-- npc/events/valentinesday_2010.txt | 41 +++++------ npc/re/events/christmas_2011.txt | 48 ++++++------ 8 files changed, 161 insertions(+), 171 deletions(-) diff --git a/npc/events/christmas_2006.txt b/npc/events/christmas_2006.txt index 27cf74ab330..2554a1f1c27 100644 --- a/npc/events/christmas_2006.txt +++ b/npc/events/christmas_2006.txt @@ -144,7 +144,7 @@ xmas_in,89,92,5 script Louise Kim#06xmas 4_F_06,{ next(); mes("[Designer Louise Kim]"); mes("~This is called the Louise's miracle.~"); - mes("~The most talented disigner,~"); + mes("~The most talented designer,~"); mes("~L_O_U_I_S_E K_I_M~"); emotion(e_lv); specialeffect(EF_BENEDICTIO); @@ -3260,29 +3260,29 @@ prontera,156,268,3 script Santa Claus#06xmas_01 4_M_SANTA,{ getitem(Santas_Hat, 1); } else if (.@06christ_gift == 2) { getitem(Pierrot_Nose, 1); - } else if (.@06christ_gift > 2 && .@06christ_gift < 6) { + } else if (.@06christ_gift < 6) { getitem(Gift_Box, 1); - } else if (.@06christ_gift > 5 && .@06christ_gift < 11) { + } else if (.@06christ_gift < 11) { getitem(Red_Socks_With_Holes, 1); - } else if (.@06christ_gift > 10 && .@06christ_gift < 16) { + } else if (.@06christ_gift < 16) { getitem(Branch_Of_Dead_Tree, 1); - } else if (.@06christ_gift > 15 && .@06christ_gift < 21) { + } else if (.@06christ_gift < 21) { getitem(Royal_Jelly, 1); - } else if (.@06christ_gift > 20 && .@06christ_gift < 26) { + } else if (.@06christ_gift < 26) { getitem(Seed_Of_Yggdrasil, 1); - } else if (.@06christ_gift > 25 && .@06christ_gift < 31) { + } else if (.@06christ_gift < 31) { getitem(Cookie_Bag, 1); - } else if (.@06christ_gift > 30 && .@06christ_gift < 41) { + } else if (.@06christ_gift < 41) { getitem(Chocolate, 3); - } else if (.@06christ_gift > 40 && .@06christ_gift < 51) { + } else if (.@06christ_gift < 51) { getitem(Candy_Striper, 7); - } else if (.@06christ_gift > 50 && .@06christ_gift < 61) { + } else if (.@06christ_gift < 61) { getitem(Candy, 10); - } else if (.@06christ_gift > 60 && .@06christ_gift < 71) { + } else if (.@06christ_gift < 71) { getitem(Well_Baked_Cookie, 5); - } else if (.@06christ_gift > 70 && .@06christ_gift < 81) { + } else if (.@06christ_gift < 81) { getitem(Fruit_Of_Mastela, 1); - } else if (.@06christ_gift > 80 && .@06christ_gift < 91) { + } else if (.@06christ_gift < 91) { getitem(Event_Cake, 3); } else { getitem(Event_Cake, 5); diff --git a/npc/events/christmas_2007.txt b/npc/events/christmas_2007.txt index 8e86aacfbc9..68d12e64f44 100644 --- a/npc/events/christmas_2007.txt +++ b/npc/events/christmas_2007.txt @@ -131,7 +131,7 @@ prontera,47,329,3 script Examiner#2007xm 4_M_ALCHE_D,3,3,{ mes("my report and admit that"); mes("I failed to find anything."); next(); - while(1) { + while(true) { switch(select("What is this about?", "What are you looking for?", "How can I help?")) { case 1: mes("[Examiner Miche]"); @@ -340,7 +340,7 @@ xmas,196,245,5 script Dist. Staff#2007xm 4_M_ROGUE,{ mes("we don't have the luxury"); mes("of time. Very busy here!"); next(); - while(1) { + while(true) { if (select("What you are doing?", "What happened during the heist?") == 2) { mes("[Dist. Staff Igor]"); mes("Let's see... We were"); @@ -653,7 +653,7 @@ xmas_dun01,152,129,5 script Div Staff#2007xm 4_M_EINMAN2,{ mes("Headquarters all of a sudden..."); mes("Ah, and I heard a noise!"); next(); - while(1) { + while(true) { if (select("A noise?", "Chat with Boris?") == 2) { mes("[Div Staff Linus]"); mes("Oh, yeah. I was talking to"); @@ -939,19 +939,19 @@ xmas,143,44,3 script Kid#2007xm 4_F_NFLOSTGIRL,{ end; OnTouch: - if (strnpcinfo(2) == "thief107xm") { + if (strnpcinfo(NPC_NAME_HIDDEN) == "thief107xm") { .@checkVal = 107; - } else if (strnpcinfo(2) == "thief207xm") { + } else if (strnpcinfo(NPC_NAME_HIDDEN) == "thief207xm") { .@checkVal = 108; - } else if (strnpcinfo(2) == "thief307xm") { + } else if (strnpcinfo(NPC_NAME_HIDDEN) == "thief307xm") { .@checkVal = 109; - } else if (strnpcinfo(2) == "thief407xm") { + } else if (strnpcinfo(NPC_NAME_HIDDEN) == "thief407xm") { .@checkVal = 110; } if (05christ_solo == .@checkVal || 05christ_solo == 111) { - enablenpc("Odd Old Man#"+strnpcinfo(2)); - disablenpc("#"+strnpcinfo(2)); + enablenpc("Odd Old Man#"+strnpcinfo(NPC_NAME_HIDDEN)); + disablenpc("#"+strnpcinfo(NPC_NAME_HIDDEN)); } end; } @@ -962,16 +962,16 @@ xmas_dun02,240,233,0 duplicate(thief07xm) #thief307xm FAKE_NPC,3,3 xmas_dun02,239,19,0 duplicate(thief07xm) #thief407xm FAKE_NPC,3,3 - script ::oldMan07xm FAKE_NPC,{ - if (strnpcinfo(2) == "thief107xm") { + if (strnpcinfo(NPC_NAME_HIDDEN) == "thief107xm") { .@checkVala = 107; .@checkValb = 111; - } else if (strnpcinfo(2) == "thief207xm") { + } else if (strnpcinfo(NPC_NAME_HIDDEN) == "thief207xm") { .@checkVala = 108; .@checkValb = 112; - } else if (strnpcinfo(2) == "thief307xm") { + } else if (strnpcinfo(NPC_NAME_HIDDEN) == "thief307xm") { .@checkVala = 109; .@checkValb = 113; - } else if (strnpcinfo(2) == "thief407xm") { + } else if (strnpcinfo(NPC_NAME_HIDDEN) == "thief407xm") { .@checkVala = 110; .@checkValb = 114; } @@ -1027,8 +1027,8 @@ xmas_dun02,239,19,0 duplicate(thief07xm) #thief407xm FAKE_NPC,3,3 mes("matter altogether. Heh..."); mes("I'm gonna kill you!"); close2(); - donpcevent("mobspawn#"+strnpcinfo(2)+"::OnEnable"); - disablenpc("Odd Old Man#"+strnpcinfo(2)); + donpcevent("mobspawn#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnEnable"); + disablenpc("Odd Old Man#"+strnpcinfo(NPC_NAME_HIDDEN)); end; } @@ -1043,14 +1043,14 @@ xmas_dun02,239,19,0 duplicate(thief07xm) #thief407xm FAKE_NPC,3,3 getitem Stolen_Candy, 1; getitem Yulia_Hat, 1; close2(); - disablenpc("Odd Old Man#"+strnpcinfo(2)); - enablenpc("#"+strnpcinfo(2)); + disablenpc("Odd Old Man#"+strnpcinfo(NPC_NAME_HIDDEN)); + enablenpc("#"+strnpcinfo(NPC_NAME_HIDDEN)); end; } OnInit: - if (strnpcinfo(2) != "") { - disablenpc("Odd Old Man#"+strnpcinfo(2)); + if (strnpcinfo(NPC_NAME_HIDDEN) != "") { + disablenpc("Odd Old Man#"+strnpcinfo(NPC_NAME_HIDDEN)); } end; } @@ -1064,49 +1064,49 @@ xmas_dun02,239,19,0 duplicate(oldMan07xm) Odd Old Man#thief407xm 4_M_SANTA end; OnEnable: - enablenpc("mobspawn#"+strnpcinfo(2)); + enablenpc("mobspawn#"+strnpcinfo(NPC_NAME_HIDDEN)); initnpctimer(); - getmapxy(.@map$, .@mapx, .@mapy, UNITTYPE_NPC, strnpcinfo(0)); - monster("xmas_dun02",.@mapx,.@mapy,"Cookie Thief",1962,1,"mobspawn#"+strnpcinfo(2)+"::OnMyMobDead"); - monster("xmas_dun02",.@mapx,.@mapy,"Hat Thief",1962,1,"mobspawn#"+strnpcinfo(2)+"::OnMyMobDead"); - monster("xmas_dun02",.@mapx,.@mapy,"Candy Thief",1962,1,"mobspawn#"+strnpcinfo(2)+"::OnMyMobDead"); + getmapxy(.@map$, .@mapx, .@mapy, UNITTYPE_NPC, strnpcinfo(NPC_NAME)); + monster("xmas_dun02",.@mapx,.@mapy,"Cookie Thief",1962,1,"mobspawn#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead"); + monster("xmas_dun02",.@mapx,.@mapy,"Hat Thief",1962,1,"mobspawn#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead"); + monster("xmas_dun02",.@mapx,.@mapy,"Candy Thief",1962,1,"mobspawn#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead"); end; OnMyMobDead: - if (strnpcinfo(2) == "thief107xm") { + if (strnpcinfo(NPC_NAME_HIDDEN) == "thief107xm") { .@checkVala = 107; .@checkValb = 111; - } else if (strnpcinfo(2) == "thief207xm") { + } else if (strnpcinfo(NPC_NAME_HIDDEN) == "thief207xm") { .@checkVala = 108; .@checkValb = 112; - } else if (strnpcinfo(2) == "thief307xm") { + } else if (strnpcinfo(NPC_NAME_HIDDEN) == "thief307xm") { .@checkVala = 109; .@checkValb = 113; - } else if (strnpcinfo(2) == "thief407xm") { + } else if (strnpcinfo(NPC_NAME_HIDDEN) == "thief407xm") { .@checkVala = 110; .@checkValb = 114; } - if (mobcount("xmas_dun02", "#"+strnpcinfo(2)+"::OnMyMobDead") < 1) { + if (mobcount("xmas_dun02", "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead") < 1) { if (05christ_solo == .@checkVala) { 05christ_solo = .@checkValb; } - enablenpc("Odd Old Man#"+strnpcinfo(2)); - disablenpc("mobspawn#"+strnpcinfo(2)); + enablenpc("Odd Old Man#"+strnpcinfo(NPC_NAME_HIDDEN)); + disablenpc("mobspawn#"+strnpcinfo(NPC_NAME_HIDDEN)); stopnpctimer(); } end; OnTimer120000: - killmonster("xmas_dun02", "#"+strnpcinfo(2)+"::OnMyMobDead"); - enablenpc("Odd Old Man#"+strnpcinfo(2)); - disablenpc("mobspawn#"+strnpcinfo(2)); + killmonster("xmas_dun02", "#"+strnpcinfo(NPC_NAME_HIDDEN)+"::OnMyMobDead"); + enablenpc("Odd Old Man#"+strnpcinfo(NPC_NAME_HIDDEN)); + disablenpc("mobspawn#"+strnpcinfo(NPC_NAME_HIDDEN)); stopnpctimer(); end; OnInit: - if (strnpcinfo(2) != "") { - disablenpc("mobspawn#"+strnpcinfo(2)); + if (strnpcinfo(NPC_NAME_HIDDEN) != "") { + disablenpc("mobspawn#"+strnpcinfo(NPC_NAME_HIDDEN)); } end; } @@ -2097,7 +2097,7 @@ morocc_in,116,127,3 script Kage#ryu 4W_M_02,{ mes("don't you tell me"); mes("who you think it is?"); close(); - } else if (05christ_solo == 139 && Sex == 1) { + } else if (05christ_solo == 139 && Sex == SEX_MALE) { mes("[Kage]"); mes("Are you here to try"); mes("to make me feel guilty"); @@ -2170,7 +2170,7 @@ morocc_in,116,127,3 script Kage#ryu 4W_M_02,{ mes("of hair on a woman's head?"); mes("It's like... Art that's alive!"); next(); - if (Sex == 1) { + if (Sex == SEX_MALE) { mes("[Kage]"); mes("You there! You have the"); mes("kind of eyes that can"); @@ -2476,7 +2476,7 @@ xmas_in,89,92,5 script Louise Kim#07christ_00 4_F_06,{ mes("me know which hairstyle"); mes("you want to see!"); close(); - } else if (.@style == 0) { + } else if (.@style <= 0) { cutin "hair_f_01", 255; mes("[Artist Louise Kim]"); mes("Let me know anytime"); @@ -2831,14 +2831,14 @@ xmas_in,89,92,5 script Louise Kim#07christ_00 4_F_06,{ mes("that. Make sure that you"); mes("enter a number from 1 to 23."); close(); - } else if (.@style == 0) { + } else if (.@style <= 0) { mes("[Artist Louise Kim]"); mes("Oh, you changed your"); mes("mind? Alright, but come"); mes("back to me if you decide"); mes("to change your hairstyle."); close(); - } else if (getlook(1) == .@style) { + } else if (getlook(LOOK_HAIR) == .@style) { mes("[Artist Louise Kim]"); mes("Hm? You already have"); mes("this hairstyle. Maybe"); @@ -2875,7 +2875,7 @@ xmas_in,89,92,5 script Louise Kim#07christ_00 4_F_06,{ mes("your hairstyle again."); mes("I'll be waiting!"); delitem Louis_Hair_Coupon, 1; - setlook 1,.@style; + setlook LOOK_HAIR,.@style; close(); } } else { @@ -2905,15 +2905,9 @@ xmas_in,89,92,5 script Louise Kim#07christ_00 4_F_06,{ L_cutin: .@num = getarg(0); if (Sex == SEX_MALE) { - if (.@num < 10) - cutin "hair_m_0"+ .@num, 4; - else - cutin "hair_m_"+ .@num, 4; + cutin sprintf("hair_m_%02d", .@num), 4; } else { - if (.@num < 10) - cutin "hair_f_0"+ .@num, 4; - else - cutin "hair_f_"+ .@num, 4; + cutin sprintf("hair_f_%02d", .@num), 4; } return; } @@ -3195,29 +3189,29 @@ prontera,156,268,3 script Santa Claus#07christ_01 4_M_SANTA,{ .@07christ_gift = rand(1, 100); if (.@07christ_gift < 11) { getitem Red_Bag, 1; - } else if (.@07christ_gift > 10 && .@07christ_gift < 21) { + } else if (.@07christ_gift < 21) { getitem Chocolate, 3; - } else if (.@07christ_gift > 20 && 07christ_gift < 31) { + } else if (.@07christ_gift < 31) { getitem White_Chocolate, 2; - } else if (.@07christ_gift > 20 && .@07christ_gift < 36) { + } else if (.@07christ_gift < 36) { getitem Choco_Tart, 1; - } else if (.@07christ_gift > 35 && .@07christ_gift < 41) { + } else if (.@07christ_gift < 41) { getitem Jam_Pancake, 1; - } else if (.@07christ_gift > 40 && .@07christ_gift < 46) { + } else if (.@07christ_gift < 46) { getitem Sour_Cream_Pancake, 1; - } else if (.@07christ_gift > 45 && .@07christ_gift < 51) { + } else if (.@07christ_gift < 51) { getitem Honey_Pancake, 1; - } else if (.@07christ_gift > 50 && .@07christ_gift < 56) { + } else if (.@07christ_gift < 56) { getitem Mushroom_Pancake, 1; - } else if (.@07christ_gift > 55 && .@07christ_gift < 61) { + } else if (.@07christ_gift < 61) { getitem Caviar_Pancake, 1; - } else if (.@07christ_gift > 60 && .@07christ_gift < 71) { + } else if (.@07christ_gift < 71) { getitem Candy_Striper, 5; - } else if (.@07christ_gift > 70 && .@07christ_gift < 81) { + } else if (.@07christ_gift < 81) { getitem Santas_Hat, 1; - } else if (.@07christ_gift > 80 && .@07christ_gift < 86) { + } else if (.@07christ_gift < 86) { getitem Cookie_Bag, 1; - } else if (.@07christ_gift > 85 && .@07christ_gift < 91) { + } else if (.@07christ_gift < 91) { getitem Old_Bleu_Box, 1; } else { getitem Well_Baked_Cookie, 5; diff --git a/npc/events/christmas_2008.txt b/npc/events/christmas_2008.txt index 5155cfd513d..4c938f46364 100644 --- a/npc/events/christmas_2008.txt +++ b/npc/events/christmas_2008.txt @@ -285,7 +285,6 @@ prontera,226,306,0 script Caroller#08xmas 1_F_PRIEST,{ mes "Isn't that big news?"; emotion e_heh; close; - break; case 2: mes "[Caroller]"; mes "Gift boxes?! All right!"; @@ -303,7 +302,6 @@ prontera,226,306,0 script Caroller#08xmas 1_F_PRIEST,{ mes "Isn't it amazing?"; emotion e_heh; close; - break; case 3: if (evt_xmas08_carol >= 103) { mes "[Caroller]"; @@ -590,7 +588,7 @@ prontera,226,306,0 script Caroller#08xmas 1_F_PRIEST,{ next; .@SantaCardTurn = 0; .@SantaCardWins = 0; - while(1) { + while(true) { if (.@SantaCardTurn == 5 || .@SantaCardWins == 3) { break; } diff --git a/npc/events/christmas_2009.txt b/npc/events/christmas_2009.txt index a20e8a899ff..f6a4191b738 100644 --- a/npc/events/christmas_2009.txt +++ b/npc/events/christmas_2009.txt @@ -416,15 +416,13 @@ xmas_in,97,99,5 script Claris#xmas 4_F_KAFRA5,1,1,{ close2(); } else if (checkcart() == true) { mes("[kafra Claris]"); - mes("You already"); - mes("have a cart."); + mes("You already have a cart."); close2(); } else { if (getskilllv("MC_PUSHCART") == 0) { mes("[kafra Claris]"); - mes("You have ^006400Push cart^000000 skill,"); - mes("If you want"); - mes("to use a cart."); + mes("You need the ^006400Push cart^000000 skill,"); + mes("If you want to use a cart."); close2(); cutin("", 255); end; @@ -435,8 +433,7 @@ xmas_in,97,99,5 script Claris#xmas 4_F_KAFRA5,1,1,{ setcart; } else { mes("[kafra Claris]"); - mes("It's 800 zeny for"); - mes("using a cart."); + mes("It's 800 zeny for using a cart."); mes("Will you use it?"); next(); if (select("Use it.", "Cancel!") == 2) { @@ -531,16 +528,16 @@ xmas_in,104,99,5 script Debril#xmas 4_F_KAFRA6,1,1,{ switch(.@menu) { case 1: - .@item = 664; // Gift_Box_1 + .@item = Gift_Box_1; break; case 2: - .@item = 665; // Gift_Box_2 + .@item = Gift_Box_2; break; case 3: - .@item = 666; // Gift_Box_3 + .@item = Gift_Box_3; break; case 4: - .@item = 667; // Gift_Box_4 + .@item = Gift_Box_4; break; case 5: mes("[kafra Debril]"); @@ -604,16 +601,16 @@ xmas_in,104,99,5 script Debril#xmas 4_F_KAFRA6,1,1,{ emotion(e_thx); switch(rand(1, 4)) { case 1: - delitem2 664, 1, 1, 0, 0, 254, 0, .@slot3, .@slot4; + delitem2 Gift_Box_1, 1, 1, 0, 0, 254, 0, .@slot3, .@slot4; break; case 2: - delitem2 665, 1, 1, 0, 0, 254, 0, .@slot3, .@slot4; + delitem2 Gift_Box_2, 1, 1, 0, 0, 254, 0, .@slot3, .@slot4; break; case 3: - delitem2 666, 1, 1, 0, 0, 254, 0, .@slot3, .@slot4; + delitem2 Gift_Box_3, 1, 1, 0, 0, 254, 0, .@slot3, .@slot4; break; case 4: - delitem2 667, 1, 1, 0, 0, 254, 0, .@slot3, .@slot4; + delitem2 Gift_Box_4, 1, 1, 0, 0, 254, 0, .@slot3, .@slot4; break; } mes("[kafra Debril]"); @@ -633,7 +630,7 @@ xmas_in,104,99,5 script Debril#xmas 4_F_KAFRA6,1,1,{ .@n_rand_gift = rand(1, 5); if (.@n_rand_gift > 0 && .@n_rand_gift < 3) { getitem(Santas_Hat, 1); - } else if (.@n_rand_gift > 2 && .@n_rand_gift < 5) { + } else if (.@n_rand_gift < 5) { getitem(Santas_Hat_, 1); } else { getitem(Santa_Beard, 1); @@ -870,16 +867,16 @@ xmas,136,314,6 script The common boy#xmas 4_M_KID1,{ } else { switch(rand(1, 4)) { case 1: - delitem2 664,1,1,0,0,.@slot1,.@slot2,.@slot3,.@slot4; + delitem2 Gift_Box_1,1,1,0,0,.@slot1,.@slot2,.@slot3,.@slot4; break; case 2: - delitem2 665,1,1,0,0,.@slot1,.@slot2,.@slot3,.@slot4; + delitem2 Gift_Box_2,1,1,0,0,.@slot1,.@slot2,.@slot3,.@slot4; break; case 3: - delitem2 666,1,1,0,0,.@slot1,.@slot2,.@slot3,.@slot4; + delitem2 Gift_Box_3,1,1,0,0,.@slot1,.@slot2,.@slot3,.@slot4; break; case 4: - delitem2 667,1,1,0,0,.@slot1,.@slot2,.@slot3,.@slot4; + delitem2 Gift_Box_4,1,1,0,0,.@slot1,.@slot2,.@slot3,.@slot4; break; } mes("[Retired Santa]"); @@ -1323,21 +1320,21 @@ xmas_dun02,83,222,0 script #misty_i06 FAKE_NPC,2,2,{ mes("......."); getitem(Illusion_Piece, 1); close2(); - disablenpc(strnpcinfo(0)); + disablenpc(strnpcinfo(NPC_NAME)); end; OnTimer10000: - disablenpc(strnpcinfo(0)); + disablenpc(strnpcinfo(NPC_NAME)); end; OnEnable: - enablenpc(strnpcinfo(0)); + enablenpc(strnpcinfo(NPC_NAME)); initnpctimer(); end; OnInit: - if (strnpcinfo(1) != "") { - disablenpc(strnpcinfo(0)); + if (strnpcinfo(NPC_NAME_VISIBLE) != "") { + disablenpc(strnpcinfo(NPC_NAME)); } end; } @@ -1371,6 +1368,7 @@ xmas_dun01,0,0,0,0 monster Christmas Orc 1588,3,30000,0 // ----------------------------------------------------------- sec_in02,21,175,6 script Xmas Manager#xmas 4_F_KAFRA7,{ + callfunc "F_GM_NPC"; mes("[Misty]"); mes("The number of characters passed mission"); mes("--> ^006400"+$091203_xmas01+"^000000"); diff --git a/npc/events/christmas_2010.txt b/npc/events/christmas_2010.txt index 7fce8713456..37effb7dbea 100644 --- a/npc/events/christmas_2010.txt +++ b/npc/events/christmas_2010.txt @@ -45,16 +45,16 @@ prontera,152,193,3 script Strange Box#prontera 4_MYSTCASE,{ close(); } .@int_temp = rand(1,30); - if (.@int_temp > 0 && .@int_temp < 11) { - pushpc(4,3); + if (.@int_temp < 11) { + pushpc(DIR_SOUTH, 3); specialeffect(EF_PROVOKE, AREA, playerattached()); mes("Surprisingly, as you try to open the box, the box bounces."); mes("^FF0000Anxiety^000000~ ^0000FFCuriosity^000000~"); mes("Want to continue?? Want to stop?"); close(); - } else if (.@int_temp > 10 && .@int_temp < 16) { + } else if (.@int_temp < 16) { emotion(e_gasp, playerattached()); - mes("["+strcharinfo(0)+"]"); + mes("["+strcharinfo(PC_NAME)+"]"); mes("What is this?"); next(); mes("The huge box is empty."); @@ -69,7 +69,7 @@ prontera,152,193,3 script Strange Box#prontera 4_MYSTCASE,{ mes("It seems like it's too late though."); mes("^800080You got poisoned^000000."); close(); - } else if (.@int_temp > 15 && .@int_temp < 26) { + } else if (.@int_temp < 26) { pushpc(4,3); specialeffect(EF_PROVOKE, AREA, playerattached()); mes("Surprisingly, as you try to open the box, the box bounces."); @@ -77,7 +77,7 @@ prontera,152,193,3 script Strange Box#prontera 4_MYSTCASE,{ close(); } else { emotion(e_gasp, playerattached()); - mes("["+strcharinfo(0)+"]"); + mes("["+strcharinfo(PC_NAME)+"]"); mes("What is this?"); next(); mes("The huge box is empty."); @@ -159,7 +159,7 @@ prontera,142,183,3 script Red Coat Girl#prontera 4_F_NFLOSTGIRL,3,3,{ mes("Full of gifts..... So...... wonderful."); emotion(e_pif); close(); - } else if (evt_2010_xmas > 250 && evt_2010_xmas < 254) { + } else if (evt_2010_xmas < 254) { mes("[Red Coat Girl]"); mes("If you want to move back to'^FF0000Witch's Castle^000000', you need a Red Frame."); next(); @@ -545,10 +545,8 @@ nif_in,122,182,3 script Santa Claus#nif 4_M_SANTA,{ emotion(e_x); evt_2010_xmas = 252; close(); - break; case 5: close(); - break; case 6: mes("[Santa Claus]"); mes("Correct answer!"); @@ -570,7 +568,7 @@ nif_in,122,182,3 script Santa Claus#nif 4_M_SANTA,{ mes("The Witch likes Red too."); mes("So what color do you like?"); next(); - while(1) { + while(true) { switch(select("[ Find the Witch again ]", "[ About the quiz ]", "[ End conversation ]")) { case 1: if (Zeny < 10000) { @@ -590,7 +588,7 @@ nif_in,122,182,3 script Santa Claus#nif 4_M_SANTA,{ Zeny -= 10000; close(); case 5: - end; + close(); case 6: mes("[Santa Claus]"); mes("Correct answer!"); @@ -789,7 +787,7 @@ prontera,170,126,3 script Old Santa Claus#prontera 4_M_SANTA,{ case 1: mes("[Old Santa Claus]"); emotion(e_heh); - mes("HoHoHo!~ I'm happy to see you too, my dear" +strcharinfo(0)+"."); + mes("HoHoHo!~ I'm happy to see you too, my dear" +strcharinfo(PC_NAME)+"."); mes("Have you done lots of good things"); mes("today? Santa Claus is giving away"); mes("presents to good kids!"); @@ -840,7 +838,7 @@ prontera,170,126,3 script Old Santa Claus#prontera 4_M_SANTA,{ if (.@int_lottery > 0 && .@int_lottery < 41) { delitem Casual_Diary, 1; getitem Buche_De_Noel, 1; - } else if (.@int_lottery > 40 && .@int_lottery < 81) { + } else if (.@int_lottery < 81) { delitem Casual_Diary, 1; getitem Cookie_Bag, 1; } else { @@ -882,10 +880,10 @@ prontera,170,126,3 script Old Santa Claus#prontera 4_M_SANTA,{ if (.@int_lottery > 0 && .@int_lottery < 61) { delitem Honest_Diary, 1; getitem Siege_White_Potion, 1; - } else if ( .@int_lottery > 60 && .@int_lottery < 96) { + } else if (.@int_lottery < 96) { delitem Honest_Diary, 1; getitem Siege_Blue_Potion, 1; - } else if (.@int_lottery > 95 && .@int_lottery < 100) { + } else if (.@int_lottery < 100) { delitem Honest_Diary, 1; getitem Yggdrasilberry, 1; } else { diff --git a/npc/events/valentinesday_2004.txt b/npc/events/valentinesday_2004.txt index 092cada2a90..580f8a8fb85 100644 --- a/npc/events/valentinesday_2004.txt +++ b/npc/events/valentinesday_2004.txt @@ -44,13 +44,14 @@ alberta,26,243,4 script Stephen 1_M_MERCHANT,{ mes "That's right, don't you love chocolate.... I do."; mes "And you are in luck, because I'm selling them for only 5,000 zeny a piece!"; next; - if (select("I want some chocolate!", "No thanks.")==2) { + if (select("I want some chocolate!", "No thanks.") == 2) { mes "[Stephen]"; mes "You don't want any chocolate?"; mes "I'm telling you! You'll regret it!"; mes "You better get some now... you won't come across Chocolate like this ever again!"; mes "Think it over and visit me again sometime."; - close; } + close; + } mes "[Stephen]"; mes "Hah!"; mes "I knew it!"; @@ -63,10 +64,12 @@ alberta,26,243,4 script Stephen 1_M_MERCHANT,{ mes "[Stephen]"; if (.@i > 5) { mes "I'm sorry, but I can't give you that many."; - close; } + close; + } if (Zeny < .@i*5000) { mes "I'm sorry, but it seems you can't afford to buy these off me."; - close; } + close; + } Zeny -= .@i*5000; getitem 558,.@i; mes "There you go!"; @@ -104,7 +107,7 @@ prt_castle,54,34,4 script Carl Orleans 1_M_01,{ mes "[Carl Orleans]"; mes "Yes?"; next; - if (select("I want some hand made chocolate...", "I'm lost, sorry to bother you.")==2) { + if (select("I want some hand made chocolate...", "I'm lost, sorry to bother you.") == 2) { mes "[Carl Orleans]"; mes "Oh... well, if you want me to make some of my special Hand Made Chocolate...."; mes "You will need to give me at least ^0000FF 3 Chocolates^000000."; @@ -115,14 +118,16 @@ prt_castle,54,34,4 script Carl Orleans 1_M_01,{ next; mes "[Carl Orleans]"; mes "See You."; - close; } + close; + } mes "[Carl Orleans]"; mes "Well, I just might be able to fulfill your needs..."; next; mes "[Carl Orleans]"; if (countitem(Chocolate) < 3) { mes "I'm sorry, you don't have enough Chocolate Bars to do this."; - close; } + close; + } delitem 558,3; mes "You got 3 pieces of pure chocolate, I see."; mes "Give them to me..."; diff --git a/npc/events/valentinesday_2010.txt b/npc/events/valentinesday_2010.txt index 6231280e8ff..f587ff2da1f 100644 --- a/npc/events/valentinesday_2010.txt +++ b/npc/events/valentinesday_2010.txt @@ -62,7 +62,7 @@ hugel,102,148,3 script The Old Man#hugel 4_M_HUGRANFA,{ mes("Would the Old Woman as well laughing?)"); close(); } - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("Hello."); mes("May I interrupt you for a second?"); next(); @@ -85,7 +85,7 @@ hugel,102,148,3 script The Old Man#hugel 4_M_HUGRANFA,{ mes("My wife asks me to tell you that"); mes("she's glad to meet you."); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("Oh, Hello."); next(); mes("(The Old Woman still has no words,"); @@ -96,7 +96,7 @@ hugel,102,148,3 script The Old Man#hugel 4_M_HUGRANFA,{ mes("to meet you."); mes("She talks a lot today."); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("...It may be presumptuous to ask but,"); mes("is she"); mes("ill?"); @@ -137,7 +137,6 @@ hugel,102,148,3 script The Old Man#hugel 4_M_HUGRANFA,{ mes("I saw the two taking a picture"); mes("friendly."); next(); - cutin("", 255); cutin("Aged_couple_2", 3); mes("I hope them to be happy for a long time.)"); emotion(e_lv2, playerattached()); @@ -156,7 +155,7 @@ hugel,102,148,3 script The Old Man#hugel 4_M_HUGRANFA,{ if (select("Give her the ^FF1493Cupid's Chocolate^000000.", "Just pass by her.") == 2) { close(); } - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("Grandpa."); mes("Here, please give it to grandma."); mes("Ah, You don't have to eat it"); @@ -166,7 +165,7 @@ hugel,102,148,3 script The Old Man#hugel 4_M_HUGRANFA,{ emotion(e_gasp); mes("Why.. what's this?"); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("Today is the ^800080Valentine's Day^000000."); mes("She'll love it when"); mes("you give it to her."); @@ -185,7 +184,7 @@ hugel,102,148,3 script The Old Man#hugel 4_M_HUGRANFA,{ mes("take this. I'm in the countryside that"); mes("I have nothing to give you but this."); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("No. I didn't want for any reward"); mes("when I gave you that."); next(); @@ -210,9 +209,8 @@ hugel,102,148,3 script The Old Man#hugel 4_M_HUGRANFA,{ getitem Yggdrasilberry, 5; getexp(90000, 0); evt_2010_valen = 10; - .@i = rand(0, 20); - setarray(.@pet,PORING,DROPS,POPORING,LUNATIC,PICKY,CHONCHON,STEEL_CHONCHON,SAVAGE_BABE,DESERT_WOLF_B,ROCKER,SPORE,POISON_SPORE,PECOPECO,SMOKIE,YOYO,ORK_WARRIOR,MUNAK,DOKEBI,ISIS,PETIT,BON_GUN); - makepet .@pet[.@i]; + .@pet = callfunc("F_Rand", PORING, DROPS, POPORING, LUNATIC, PICKY, CHONCHON, STEEL_CHONCHON, SAVAGE_BABE, DESERT_WOLF_B, ROCKER, SPORE, POISON_SPORE, PECOPECO, SMOKIE, YOYO, ORK_WARRIOR, MUNAK, DOKEBI, ISIS, PETIT, BON_GUN); + makepet .@pet; close(); } } else { @@ -279,7 +277,7 @@ yuno,66,189,6 script Andy#yuno 4_M_NFLOSTMAN,{ mes("warm story so, I decided to calm him"); mes("down sweetly.)"); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("Hey boy, what's the matter?"); mes("Hey, Don't cry. Why are you"); mes("crying on such a wonderful day?"); @@ -288,7 +286,7 @@ yuno,66,189,6 script Andy#yuno 4_M_NFLOSTMAN,{ mes("Sob...sob.."); mes("What are you? Sob..."); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); emotion(e_omg, playerattached()); mes("(Damn.. you little bean..)"); mes("Stop crying, What's up?"); @@ -306,7 +304,7 @@ yuno,66,189,6 script Andy#yuno 4_M_NFLOSTMAN,{ mes("I'm so embarrassed to live.."); mes("Sob..Ugh~"); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("Were you crying over on such thing?"); mes("Don't cry, I didn't get any too."); mes("The more important thing than chocolate is the mind.."); @@ -321,7 +319,7 @@ yuno,66,189,6 script Andy#yuno 4_M_NFLOSTMAN,{ mes("He wishes to die, so shall I just"); mes("make his wish come true? Huh...)"); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("I'll just buy you a chocolate!"); mes("All right?! So please stop crying!"); next(); @@ -335,7 +333,7 @@ yuno,66,189,6 script Andy#yuno 4_M_NFLOSTMAN,{ mes("You are going as far as ^0000FFAldebaran^000000 to get it?!"); mes("Are you sure?"); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("Oops.. When did I..."); next(); mes("[Andy]"); @@ -344,7 +342,7 @@ yuno,66,189,6 script Andy#yuno 4_M_NFLOSTMAN,{ mes("^0000FFAldebaran^000000."); mes("I wanna get that chocolate!!"); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes(".....How about...."); mes("......just a chocolate....?"); next(); @@ -368,7 +366,7 @@ yuno,66,189,6 script Andy#yuno 4_M_NFLOSTMAN,{ mes("Wow! Is this the"); mes("^FF1493Cupid's Chocolate^000000?!"); next(); - mes("[^0000CD"+strcharinfo(0)+"^000000]"); + mes("[^0000CD"+strcharinfo(PC_NAME)+"^000000]"); mes("Just take it."); next(); mes("[Andy]"); @@ -489,7 +487,7 @@ aldebaran,95,139,6 script The Fairy of Cupid#vday1 4_ANGELING,1,1,{ close(); } .@int_temp = rand(1, 10); - if (.@int_temp == 1 || .@int_temp == 2) { + if (.@int_temp <= 2) { mes("[The Fairy of Cupid]"); mes("Here it is! Be careful"); mes("not to eat it up all for yourself"); @@ -530,7 +528,7 @@ aldebaran,95,139,6 script The Fairy of Cupid#vday1 4_ANGELING,1,1,{ } } else if (evt_2010_valen == 7) { .@int_temp = rand(1, 8); - if (.@int_temp == 1 || .@int_temp == 2) { + if (.@int_temp <= 2) { mes("[The Fairy of Cupid]"); mes("Oh, you've came just in time."); mes("Waited? Here arrived the chocolates"); @@ -595,7 +593,7 @@ aldebaran,184,127,3 script The Fairy of Cupid#vday2 4_ANGELING,1,1,{ close(); } .@int_temp = rand(1, 10); - if (.@int_temp == 1 || .@int_temp == 2) { + if (.@int_temp <= 2) { mes("[The Fairy of Cupid]"); mes("Here, Take it."); evt_2010_valen = 8; @@ -630,7 +628,7 @@ aldebaran,184,127,3 script The Fairy of Cupid#vday2 4_ANGELING,1,1,{ } } else if (evt_2010_valen == 7) { .@int_temp = rand(1, 8); - if (.@int_temp == 1 || .@int_temp == 2) { + if (.@int_temp <= 2) { mes("[The Fairy of Cupid]"); mes("Ah, you are here."); mes("You've waited so long time."); @@ -903,6 +901,7 @@ aldebaran,177,127,6 script Man#aldebaran02 4_M_06,{ } hugel,1,1,3 script Valentine ON/OFF#hugel 1_M_SIZ,{ + callfunc "F_GM_NPC"; mes("Hello?"); mes("I'm 2010 Valentine's Day Event ON/OFF NPC."); next(); diff --git a/npc/re/events/christmas_2011.txt b/npc/re/events/christmas_2011.txt index dca998a1fe0..ed1cdafa7ca 100644 --- a/npc/re/events/christmas_2011.txt +++ b/npc/re/events/christmas_2011.txt @@ -35,13 +35,11 @@ prontera,149,176,5 script Quercus#mas XMAS_SMOKEY_R,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize()- @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } - .@mas = rand(1, 100); - if (BaseLevel < 30) { mes("[Quercus]"); mes("You, seem to weak!!!"); @@ -231,7 +229,7 @@ prontera,149,176,5 script Quercus#mas XMAS_SMOKEY_R,{ emotion(e_no1); close(); } - if (.@mas > 0 && .@mas < 51) { + if (rand(1, 100) < 51) { mes("[Quercus]"); mes("Alright buddy,"); mes("It seems like you really really want to help us."); @@ -545,7 +543,7 @@ prontera,149,176,5 script Quercus#mas XMAS_SMOKEY_R,{ geffen,113,148,3 script Castanea#mas XMAS_SMOKEY_B,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize() - @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } @@ -911,7 +909,7 @@ geffen,110,148,5 script Juniper#mas01 XMAS_SMOKEY_Y,{ geffen,199,172,3 script Bean#mas XMAS_SMOKEY_R,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize() - @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } @@ -998,7 +996,7 @@ geffen,199,172,3 script Bean#mas XMAS_SMOKEY_R,{ geffen,204,174,0 script #mas1 FAKE_NPC,2,2,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize() - @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } @@ -1024,7 +1022,7 @@ geffen,204,174,0 script #mas1 FAKE_NPC,2,2,{ geffen,37,154,5 script Pinus#mas XMAS_SMOKEY_Y,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize() - @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } @@ -1130,7 +1128,7 @@ geffen,37,154,5 script Pinus#mas XMAS_SMOKEY_Y,{ geffen,26,156,0 script #mas2 FAKE_NPC,2,2,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize() - @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } @@ -1169,7 +1167,7 @@ geffen,26,156,0 script #mas2 FAKE_NPC,2,2,{ geffen,109,142,3 script Pyrus#mas XMAS_SMOKEY_R,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize() - @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } @@ -1386,7 +1384,7 @@ geffen,109,142,3 script Pyrus#mas XMAS_SMOKEY_R,{ geffen,98,196,3 script Citrus#mas XMAS_SMOKEY_B,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize() - @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } @@ -1474,7 +1472,7 @@ geffen,98,196,3 script Citrus#mas XMAS_SMOKEY_B,{ geffen,98,196,3 script Kaki#mas XMAS_SMOKEY_Y,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize() - @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } @@ -1606,7 +1604,7 @@ geffen,98,196,3 script Kaki#mas XMAS_SMOKEY_Y,{ xmas_in,95,95,5 script Little Santa#mas 4_F_RUSCHILD,{ getinventorylist(); - if ((MAX_INVENTORY - @inventorylist_count) < 3) { + if ((getInventorySize() - @inventorylist_count) < 3) { mes("- You are carrying too many items to continue. -"); close(); } @@ -1757,7 +1755,7 @@ xmas_in,95,95,5 script Little Santa#mas 4_F_RUSCHILD,{ next(); mes("Let's go back to the Quercus in Prontera."); close(); - } else if (evt_2011_xmas > 16) { + } else { mes("[Racoons shouting]"); mes("Give us more Sweet Potato!"); mes("My present! My Sweet Potato!"); @@ -1828,7 +1826,7 @@ xmas,137,220,7 script Abies#mas XMAS_SMOKEY_R,{ mes("Come on!"); close(); } - } else if (evt_2011_xmas > 15) { + } else { mes("[Abies]"); mes("I can actually picture a Rudolf dancing through"); mes("the Christmas carroll."); @@ -1886,7 +1884,7 @@ xmas,145,218,7 script Cedrus#mas XMAS_SMOKEY_Y,{ mes("More more!"); close(); } - } else if (evt_2011_xmas > 15) { + } else { mes("[Cedrus]"); mes("This tastes like sweet potatoes"); mes("twinkling like a tree light,"); @@ -1941,7 +1939,7 @@ xmas,150,219,1 script Wisteria#mas XMAS_SMOKEY_B,{ close(); } } - } else if (evt_2011_xmas > 15) { + } else { mes("[Wisteria]"); mes("This tastes so deep,"); mes("that makes me almost cry in this winter time!"); @@ -1990,7 +1988,7 @@ xmas,144,215,7 script Tobira#mas XMAS_SMOKEY_R,{ close(); } } - } else if (evt_2011_xmas > 15) { + } else { mes("[Tobira]"); mes("Ah Ah... I'm speechless"); mes("from this crazy delicious taste!"); @@ -2047,7 +2045,7 @@ xmas,149,214,1 script Prunus#mas XMAS_SMOKEY_B,{ mes("My sweet potato~!"); close(); } - } else if (evt_2011_xmas > 15) { + } else { mes("[Prunus]"); mes("Oh.. Wow..."); mes("Even a little bady would stop crying"); @@ -2072,7 +2070,7 @@ prontera,149,169,5 script Kalopanax#mas XMAS_SMOKEY_Y,{ mes("Leave my fabric alone!!!"); emotion(e_an, "Quercus#mas"); close(); - } else if (evt_2011_xmas > 16) { + } else { mes("[Kalopanax]"); mes("For Christmas, there's nothing better"); mes("than a sweet potato!"); @@ -2092,7 +2090,7 @@ prontera,153,173,1 script Tilia#mas XMAS_SMOKEY_R,{ mes("Stop taking fabrics from me!"); emotion(e_an, "Quercus#mas"); close(); - } else if (evt_2011_xmas > 16) { + } else { mes("[Tilia]"); mes("For Christmas, there's nothing better"); mes("than a sweet potato!"); @@ -2112,7 +2110,7 @@ prontera,155,168,1 script Camphora#mas XMAS_SMOKEY_B,{ mes("Stop taking fabrics from me!"); emotion(e_an, "Quercus#mas"); close(); - } else if (evt_2011_xmas > 16) { + } else { mes("[Camphora]"); mes("For Christmas, there's nothing better"); mes("than a sweet potato!"); @@ -2153,9 +2151,9 @@ alberta,127,59,3 duplicate(xmasReporter) Christmas Reporter#ch9 XMAS_SMOKEY_R // ----------------------------------------------------------- prontera,1,2,5 script Christmas Assistant#mas 4_MASK_SMOKEY,{ - input .@password; + callfunc "F_GM_NPC"; - if (.@password != 1854) { + if (callfunc("F_GM_NPC","1854",1) == 0) { mes("Nice sweet potato!"); close(); } @@ -2164,7 +2162,7 @@ prontera,1,2,5 script Christmas Assistant#mas 4_MASK_SMOKEY,{ mes("Tell me"); mes("everything you want!"); next(); - switch(select("Enable NPC", "Disable NPC", "Initialize Quest", "Castanea ¼±ÅÃÁö", "Pyrus ¼±ÅÃÁö", "¹ã°í±¸¸¶ ¹èÆ÷ Á÷Àü", "Setitem8")) { + switch(select("Enable NPC", "Disable NPC", "Initialize Quest", "Castanea", "Pyrus", "Before Sweet Potato", "Castanea Final")) { case 1: enablenpc "Quercus#mas"; mes("[Coal Briquet Plan]");