viewing paste topic/11173- find-the-mvp | Athena

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
//Created by youtube
prontera,155,185,3      script  Find the Naruto 1_F_PRIEST,{
        mes "[ Find the Naruto ]";
        if ( getgmlevel() < 80 ) {
                if ( .Event == false )
                        mes "There is no Find the Naruto event.";
                else {
                        mes "There is a Find the Naruto event on now!";
                        mes "Location: "+ .map$;
                        mes "Prize: " + getitemname(.ItemID);
                        mes "Number of Naruto: " + .Naruto;
                }
                close;
        }
        mes "Hello "+strcharinfo(0)+"! Please customize this event:";
Main:
        next;
        mes "[ Find the Naruto ]";
        switch ( select ( "Start Event:End Event" ) ) {
        case 1:
                mes "Starting the event now...";
                .Event = true;
                close2;
                goto OnStart;
        case 2:
                mes "Ending the event now...";
                if ( .Event )
                        announce ""+strcharinfo(0)+" ended Find the Naruto Event!", bc_all;
                killmonster .map$, "Find the Naruto::OnMobKilled";
                .Event = false;
                close;
        }
       
OnMinute20:
OnStart:
        announce "It's time to kill the Naruto!",0;
        sleep 1000;
        .map$ = callfunc ( "F_Rand",
//              "splendide","hugel","yuno","comodo","xmas","aldebaran","payon","geffen","morocc"
                "izlude");
        sleep 1000;
        announce "The Naruto has landed in "+ .map$ +"!", bc_all;
        sleep 10000;
        announce "1 Naruto have spawned in "+ .map$ +"!", bc_all;
        sleep 10000;
        monster .map$, 128,147, "Naruto", PORING, 1, "Find the Naruto::OnMobKilled"; // change poring into your mvp, and the coordinate
        sleep 600000; // 1 minute nobody kill
        if ( .Event == true ) {
                killmonster .map$, "Find the Naruto::OnMobKilled";
                mapannounce .map$, "Nobody kill the Naruto.", bc_map;
                .Event = false;
        }
    end;
 
OnMobKilled:
        mapannounce .map$,"We've got a winner: " + strcharinfo(0) + " Congrats!", bc_map;
//      set zeny,zeny+10000000;
        getitem Update_Ticket, 10;
        .Event = false;
        awake strnpcinfo(0);
        end;
}
Viewed 839 times, submitted by AnnieRuru.