viewing paste Unknown #483 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
//========================================================
                                //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;
}
Viewed 867 times, submitted by Guest.