viewing paste Unknown #480 | 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 83 84 85 86 87 88 89
//========================================================
                //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;
}
Viewed 918 times, submitted by Joseph.