//======================================================== //TREASURE CHEST MINI-GAME //======================================================== //=====================NPC: Hylian======================== prontera,159,186,3 script Hylian::hyl_warp 51,{ mes "[Hylian]"; mes "Hello, my name is Hylian"; 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 "[Hylian]"; mes "You'll have 1 minute to pick"; mes "1 treasure chest out of 3."; next; mes "[Hylian]"; mes "If lucky, you can end up with"; mes "a really nice prize!"; next; mes "[Hylian]"; mes "Do you wish to play?"; switch(select("Sure!::I'll pass.")) { case 1: break; case 2: mes "[Hylian]"; mes "You're missing all the fun!"; close; } break; case 2: break; } if ( #t_1 != gettimestr(%Y%m%d,9) ) { set #t_1, gettimestr(%Y%m%d,9); set #t_2, 0; } if ( #t_2 > 3 ) { mes "[Hylian]"; mes "I'm sorry you can only play this event for 3 times per day."; close; } mes "[Hylian]"; 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 Hylian::hyl_wait 51,{ end; OnInit: delwaitingroom "Treasure Chest"; waitingroom "Treasure Chest",8,"play_wait::OnWarpToArea",1; end; OnWarpToArea: warpwaitingpc "poring_c01",104,102; end; }