//========================================================
//TREASURE CHEST MINI-GAME
//========================================================
//=====================NPC: Hylian========================
prontera,159,186,3 script Hylianne::hyl_warp 51,{
mes "[Hylianne]";
mes "Hello, my name is Hylianne";
mes "and I'm the one in charge of";
mes "the Treasure Chest mini-game.";
next;
mes "[Hylian]";
mes "Do you want me to explain";
mes "how the mini-game works?";
next;
switch(select("Yes, please!::Skip it and go!"))
{
case 1:
mes "[Hylianne]";
mes "You'll have 1 minute to pick";
mes "1 treasure chest out of 3.";
next;
mes "[Hylianne]";
mes "If lucky, you can end up with";
mes "a really nice prize!";
next;
mes "[Hylianne]";
mes "Do you wish to play?";
next;
switch(select("Sure!::I'll pass."))
{
case 1:
break;
case 2:
mes "[Hylianne]";
mes "You're missing all the fun!";
close;
}
case 2:
break;
}
set .@tmp_time, gettimestr("%Y%m%d",9);
if(#t_1 != .@tmp_time)
{
set #t_1, gettimestr("%Y%m%d",9);
set #t_2, 0;
}
if(#t_2 > 3)
{
mes "[Hylianne]";
mes "I'm sorry, you can only play this event 3 times a day.";
close;
}
mes "[Hylianne]";
mes "Alright! Let's go!";
close2;
set #t_2, #t_2 + 1;
warp "poring_w02",95,200;
end;
}
//========================================================
//TREASURE CHEST MINI-GAME
//========================================================
//=======================WAITING ROOM=====================
poring_w02,96,200,5 script Hylianne::hyl_wait 51,{
end;
OnInit:
delwaitingroom "Treasure Chest";
waitingroom "Treasure Chest",8,"play_wait::OnWarpToArea",1;
end;
OnWarpToArea:
warpwaitingpc "poring_c01",104,102;
end;
}