Jump to content
  • 0

MVP Next Round doesn't starts sometimes


DEsMOn

Question


  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.04
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

Hello Everyone,

Looking for solution on this script.

MVP Event Round  1 starts and after ALL MVP dead proceed with next round 2 & so on untill Round 9

Point 1) But this works sometimes & and sometimes its getting stuck on Round 1 or Round 4 itself there is no error in CMD so couldn't see what's wrong in script.

Point 2)  MVP warper doesn't disappear after count down. (Because of this player comes again if they are dead).

Any expert here can help to fix?

Thank you in Advance..!!  @Emistry

//================================================Name======================================================
                                    // MVP Event (Official Release Name)
//===============================================Version====================================================
//                                                  1.2 
//===============================================Author=====================================================
//                     ____ _____  ______  __ __   __  _______    __   _____ __   __  _______
//                    |  __ \ _  \|  __  \|  |  \ |  |/  ___  \  |  | /  /  |  \ |  |/  ___  \
//                    | |__| | \  \ |__|  |  |   \|  |  |  _\_/  |  |/  /|  |   \|  |  |  _\_/
//                    |   __/   | |      /|  |       |  | |_  \  |     | |  |    |  |  | |_  \
//                    |  |\  \_/  /  |\  \|  |  |\   |   \_/  |  |  |\  \|  |  |\   |   \_/  |
//                    |__| \_____/|__| \__\__|__| \__|\______/   |__| \__\__|__| \__|\______/
//----------------------------------------Script Last Update 2020-------------------------------------------
//==============================================Changelog===================================================
                                    // 1.0 *
                                    //        - Initial Release
                                    // 1.2
                                    //        - Remove all error from Latest rAthena
                                    //        - Maximize script
                                    //        - Fix some dialog of NPC
                                    //        - Added Mapflag for the Event Map  
//==========================================================================================================
prontera,144,145,5    script    MVP Event Manager    403,{

    set @npc$, "[ MVP Event ]";
    if (getgmlevel() < 80) {
        mes @npc$;
        mes "Hello "+strcharinfo(0)+", this NPC is for Admin's use only.";
        close;
    }
    if (getgmlevel() >= 40) goto mvp_Admin;
    mes @npc$;
    mes "Hello "+strcharinfo(0)+", this NPC is for Event GM's use only.";
    close;
    
mvp_Admin:
    mes @npc$;
    mes "Hello "+strcharinfo(0)+", what would you like to do?";
    menu "Start MVP Event",mvp_start,"Nothing",endmvp;
    mvp_start:
        if ($@mvp_event == 1) goto mvp_started;
        mes " ";
        mes "Ok, starting MVP event.";
        set $@mvp_event,1;
        close2;
        donpcevent "MVP Event::OnStartMVP";
        end;

    endmvp:
        next;
        mes @npc$;
        mes "Ok, nice seeing you.";
        close;
mvp_started:
    mes @npc$;
    mes "The event is still running";
    close;

}

pvp_n_6-5,0,0,0    script    mvppvpoff    -1,{

OnMVPpvpoff:
    pvpoff "pvp_n_6-5";
    end;

}


-    script    MVP Event Warper#disable    -1,{
OnInit:
disablenpc "MVP Event Warper";
end;
}


-    script    MVP Event Announcer    -1,{
OnClock0030:
OnClock0330:
OnClock0630:
OnClock0930:
OnClock1230:
OnClock1530:
OnClock1830:
OnClock2130:
    if ($@woe_ongoing == 1) {
        end;
    }
    donpcevent "MVP Event::OnStartMVP";
    end;
}
//------------------------------------------------------------------------------------------------------------------
prontera,164,152,3    script    MVP Event Warper    403,{
    mes "[ MVP Event Warper ]";
    mes "Do you want to join the MVP event?";
    menu "Yes",pront_mvp,"No",pront_mvp_end;

pront_mvp:
    mes "[ MVP Event Warper ]";
    mes "I will now warp you to the MVP Event map.";
    warp "pvp_n_6-5",98,99;
    end;

pront_mvp_end:
    mes "[ MVP Event Warper ]";
    mes "Ok, Bye.";
    close;
}

pvp_n_6-5,0,0,0    script    MVP Event    -1,{
OnStartMVP:
    donpcevent "mvppvpoff::OnMVPpvpoff";
    set $@mvp_event,1;
    announce "MVP Event is now open",0;
    enablenpc "MVP Event Warper";
    killmonsterall "pvp_n_6-5";
    initnpctimer;
    sleep 60000;
    announce "MVP Event will start automatically after 2 minutes",0;
    sleep 60000;
    announce "MVP Event will start automatically after 1 minute",0;
    sleep 30000;
    announce "MVP Event is starting in 30s",0;
    sleep 30000;
    announce "MVP Event is starting in 5",0;
    sleep 1000;
    announce "MVP Event is starting in 4",0;
    sleep 1000;
    announce "MVP Event is starting in 3",0;
    sleep 1000;
    announce "MVP Event is starting in 2",0;
    sleep 1000;
    announce "MVP Event is starting in 1",0;
    sleep 1000;
    announce "The event warper are now closed",0;
    sleep 10000;
    mapannounce "pvp_n_6-5","MVP Event: Round 1 will begin shortly.",0;
    sleep 5000;
    set $@mvp_event,0;
    goto Onmvp_round1;

Onmvp_round1:
    set $@mobmvp,5;
    monster "pvp_n_6-5",98,103,"Baphomet",1039,1,"MVP Event::Onmvpdead";
    monster "pvp_n_6-5",99,113,"Angeling",1096,1,"MVP Event::Onmvpdead";
    monster "pvp_n_6-5",132,97,"Mistress",1059,1,"MVP Event::Onmvpdead";
    monster "pvp_n_6-5",100,67,"Deviling",1582,1,"MVP Event::Onmvpdead";
    monster "pvp_n_6-5",65,100,"Atroce",1785,1,"MVP Event::Onmvpdead";
    end;

Onmvpdead:
    set $@mobmvp,$@mobmvp - 1;
    if($@mobmvp <= 0) {
        mapannounce "pvp_n_6-5","MVP Event: Round 2 will begin shortly.",0;
        sleep 5000;
        goto Onmvp_round2;
    }
    end;

Onmvp_round2:
    set $@mobmvp,4;
    monster "pvp_n_6-5",98,103,"Garm",1252,1,"MVP Event::Onmvpdead2";
    monster "pvp_n_6-5",99,113,"Dracula",1389,1,"MVP Event::Onmvpdead2";
    monster "pvp_n_6-5",132,97,"Doppelganger",1046,1,"MVP Event::Onmvpdead2";
    monster "pvp_n_6-5",65,100,"Ghostring",1120,1,"MVP Event::Onmvpdead2";
    end;

Onmvpdead2:
    set $@mobmvp,$@mobmvp - 1;
    if($@mobmvp <= 0) {
        mapannounce "pvp_n_6-5","MVP Event: Round 3 will begin shortly.",0;
        sleep 5000;
        goto Onmvp_round3;
    }
    end;

Onmvp_round3:
    set $@mobmvp,4;
    monster "pvp_n_6-5",98,103,"Edgga",1115,1,"MVP Event::Onmvpdead3";
    monster "pvp_n_6-5",99,113,"Osiris",1038,1,"MVP Event::Onmvpdead3";
    monster "pvp_n_6-5",132,97,"Moonlight Flower",1150,1,"MVP Event::Onmvpdead3";
    monster "pvp_n_6-5",65,100,"Pharaoh",1157,1,"MVP Event::Onmvpdead3";
    end;

Onmvpdead3:
    set $@mobmvp,$@mobmvp - 1;
    if($@mobmvp <= 0) {
        mapannounce "pvp_n_6-5","MVP Event: Round 4 will begin shortly.",0;
        sleep 5000;
        goto Onmvp_round4;
    }
    end;

Onmvp_round4:
    set $@mobmvp,4;
    monster "pvp_n_6-5",98,103,"Drake",1112,1,"MVP Event::Onmvpdead4";
    monster "pvp_n_6-5",99,113,"Bacsojin",1518,1,"MVP Event::Onmvpdead4";
    monster "pvp_n_6-5",132,97,"Arc Angeling",1388,1,"MVP Event::Onmvpdead4";
    monster "pvp_n_6-5",65,100,"Stormy Knight",1251,1,"MVP Event::Onmvpdead4";
    end;

Onmvpdead4:
    set $@mobmvp,$@mobmvp - 1;
    if($@mobmvp <= 0) {
        mapannounce "pvp_n_6-5","MVP Event: Round 5 will begin shortly.",0;
        sleep 5000;
        goto Onmvp_round5;
    }
    end;


Onmvp_round5:
    set $@mobmvp,4;
    monster "pvp_n_6-5",98,103,"Orc Hero",1087,1,"MVP Event::Onmvpdead5";
    monster "pvp_n_6-5",99,113,"Lord of Death",1373,1,"MVP Event::Onmvpdead5";
    monster "pvp_n_6-5",132,97,"Incantation Samurai",1492,1,"MVP Event::Onmvpdead5";
    monster "pvp_n_6-5",65,100,"Lady Tanee",1688,1,"MVP Event::Onmvpdead5";
    end;


Onmvpdead5:
    set $@mobmvp,$@mobmvp - 1;
    if($@mobmvp <= 0) {
        mapannounce "pvp_n_6-5","MVP Event: Round 6 will begin shortly.",0;
        sleep 5000;
        goto Onmvp_round6;
    }
    end;

Onmvp_round6:
    set $@mobmvp,4;
    monster "pvp_n_6-5",98,103,"Detale",1719,1,"MVP Event::Onmvpdead6";
    monster "pvp_n_6-5",99,113,"Vesper",1685,1,"MVP Event::Onmvpdead6";
    monster "pvp_n_6-5",132,97,"Orc Lord",1190,1,"MVP Event::Onmvpdead6";
    monster "pvp_n_6-5",65,100,"Dark Lord",1272,1,"MVP Event::Onmvpdead6";
    end;


Onmvpdead6:
    set $@mobmvp,$@mobmvp - 1;
    if($@mobmvp <= 0) {
        mapannounce "pvp_n_6-5","MVP Event: Round 7 will begin shortly.",0;
        sleep 5000;
        goto Onmvp_round7;
    }
    end;

Onmvp_round7:
    set $@mobmvp,4;
    monster "pvp_n_6-5",98,103,"RSX-0806",1623,1,"MVP Event::Onmvpdead7";
    monster "pvp_n_6-5",99,113,"Golden Thief Bug",1086,1,"MVP Event::Onmvpdead7";
    monster "pvp_n_6-5",132,97,"Phreeoni",1159,1,"MVP Event::Onmvpdead7";
    monster "pvp_n_6-5",65,100,"Maya Purple",1289,1,"MVP Event::Onmvpdead7";
    end;

Onmvpdead7:
    set $@mobmvp,$@mobmvp - 1;
    if($@mobmvp <= 0) {
        mapannounce "pvp_n_6-5","MVP Event: Round 8 will begin shortly.",0;
        sleep 5000;
        goto Onmvp_round8;
    }
    end;

Onmvp_round8:
    set $@mobmvp,4;
    monster "pvp_n_6-5",98,103,"Maya",1147,1,"MVP Event::Onmvpdead8";
    monster "pvp_n_6-5",99,113,"Turtle General",1312,1,"MVP Event::Onmvpdead8";
    monster "pvp_n_6-5",132,97,"Evil Snake Lord",1418,1,"MVP Event::Onmvpdead8";
    monster "pvp_n_6-5",65,100,"Amon Ra",1511,1,"MVP Event::Onmvpdead8";
    end;

Onmvpdead8:
    set $@mobmvp,$@mobmvp - 1;
    if($@mobmvp <= 0) {
        mapannounce "pvp_n_6-5","MVP Event: Final Round will begin shortly.",0;
        sleep 5000;
        goto Onmvp_round9;
    }
    end;

Onmvp_round9:
    set $@mobmvp,5;
    monster "pvp_n_6-5",99,110,"Tao Gunka",1583,1,"MVP Event::Onmvpdead9";
    monster "pvp_n_6-5",99,113,"Valkyrie Randgris",1751,1,"MVP Event::Onmvpdead9";
    monster "pvp_n_6-5",99,113,"Ifrit",1832,1,"MVP Event::Onmvpdead9";
    monster "pvp_n_6-5",132,97,"Beelzebub",1873,1,"MVP Event::Onmvpdead9";
    monster "pvp_n_6-5",65,100,"Ktullanux",1779,1,"MVP Event::Onmvpdead9";
    end;

Onmvpdead9:
    set $@mobmvp,$@mobmvp - 1;
    if($@mobmvp <= 0) {
        stopnpctimer;
        disablenpc "MVP Event Warper";
        mapannounce "pvp_n_6-5","MVP Event: That was the Last Round!.",0;
        sleep 5000;
        mapwarp "pvp_n_6-5","prontera",156,191;
        set $@mvp_event,0;
    }
    end;

OnTimer1200000:
    stopnpctimer;
    killmonsterall "pvp_n_6-5";
    mapannounce "pvp_n_6-5","MVP Event: Time's Up!",0;
    sleep 5000;
    mapwarp "pvp_n_6-5","prontera",116,73;
    disablenpc "MVP Event Warper";
    set $@mvp_event,0;
    end;        
}

// -- Mapflags
pvp_n_6-5    mapflag    nowarp
pvp_n_6-5    mapflag    nowarpto
pvp_n_6-5    mapflag    noteleport
pvp_n_6-5    mapflag    nosave    SavePoint
pvp_n_6-5    mapflag    nomemo
pvp_n_6-5    mapflag    nobranch
pvp_n_6-5    mapflag    nopenalty


 

mvp-event.txt

Edited by DEsMOn
Tag
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...