i need help for edit this event: event_invasion-zelos.txt , event working 100% but i need to implement ranking event.
example:
the player to kill more monsters get the .ItemID1
the second player to kill more monsters get the item .ItemID2
the third player to kill more monsters get the item .ItemID3
drop of the MVP will go to the player who killed the MVP .ItemID ( <- this it ok i just need implement first second and third place for get rewards when event finish will automatically receive the rewards! )
jupe_ele,36,53,6 script Event Invasion 105,{
set .gm,50;//GM Level to access the GM Menu. Default: 50
setarray .@mp$[1], "prontera", "morocc", "geffen", "payon", "alberta", "izlude", "aldebaran", "xmas (lutie)", "comodo", "yuno", "amatsu", "gonryun", "umbala", "niflheim", "louyang", "jawaii", "ayothaya", "einbroch", "hugel", "rachel", "veins", "moscovia", "midgard camp", "manuk", "splendide", "brasilis", "el dicastes", "mora", "dewata", "malangdo island", "malaya port", "eclage";
// GM menu
//It allows GMs Level 50 or more to Start and Stop invasions.
if (getgmlevel()>.gm) {
if (.mobs_left) {
mes "[Event Invasion]";
mes "An invasion is in progress..";
mes "Location: " + .Map$;
mes "^FF0000"+.mobs_left+"^000000 Monsters left";
mes " ";
mes "Stop invasion?";
if(select("No:Yes")==1) close;
donpcevent "Event Invasion::onstop";
mes "Invasion stopped";
announce "The Invasion has been stopped by "+strcharinfo(0),bc_all;
close;
}
mes "[Event Invasion]";
mes "Please customize the Invasion event before starting it.";
Main:
next;
mes "[Event Invasion]";
mes "MVP Item Drop:[" + getitemname(.ItemID) + "]";
mes "first place Drop:[" + getitemname(.ItemID1) + "]";
mes "Second place Drop:[" + getitemname(.ItemID2) + "]";
mes "third place Drop:[" + getitemname(.ItemID3) + "]";
mes "Monsters Respawn:[" + strmobinfo(1,.MobID) + "]";
mes "MVP Respawn:[" + strmobinfo(1,.MvpID) + "]";
mes "Map Event will Start:["+.Map$+"]";
switch(select("Rewards:Monster [" + strmobinfo(1,.MobID) + "]:MVP [" + strmobinfo(1,.MvpID) + "]:Select Map Event["+.Map$+"]:Start Event")) {
case 1:
mes "Which item would you like to drop?";
mes "Please input the MVP item Drop ID:;
input .ItemID;
next;
mes "Please input the first place item ID:";
input .ItemID1;
next;
mes "Please input the Second place item ID:";
input .ItemID2;
next;
mes "Please input the third place item ID:";
input .ItemID3;
goto Main;
case 2:
mes "Please input the monster ID:";
input .MobID;
goto Main;
case 3:
mes "Please input the MVP ID:";
input .MvpID;
goto Main;
case 4:
for ( set .@i, 1; .@i < getarraysize(.@mp$); set .@i, .@i + 1 )
set .@menuE$, .@menuE$ + .@mp$[.@i] + ":";
set .Map$, .@mp$[select( .@menuE$ )];
mes "Map Event : "+.Map$;
goto Main;
case 5:
mes "Starting the event now...";
close2;
goto onstart;
}
}
// If a player clicks the NPC, it displays:
mes "[Event Invasion]";
mes .mobs_left+" have invaded "+.Map$[.rand_map]+"!";
close;
/////////////////////////
//The actual NPC Script//
/////////////////////////
//OnMinute50: // Change this to your liking ( automatic start )
onstart:
if( .mobs_left ) end;
set .mobs_left, 1;
sleep2 1000;
announce "[ Rune-Midgard Guard ]: We have trouble here in the town " + .Map$ + "!", bc_all;
sleep2 5000;
announce "[ Rune-Midgard Guard ]: Everyone, we need your help to get rid of these monsters!", bc_all;
monster .Map$,0,0,"--ja--",.MobID,250,"Event Invasion::OnMyMobDead";
set .mobs_left, 250;
initnpctimer;
end;
onstop:
killmonster .Map$,"Event Invasion::OnSpecialMobDead";
OnTimer1805000: // 30 minutes later, kills all the mobs.
killmonster .Map$,"Event Invasion::OnMyMobDead";
set .mobs_left, 0;
stopnpctimer;
end;
OnMyMobDead: //When a mob is killed
set .mobs_left, .mobs_left-1;
if (.mobs_left==0) {
announce "[ Rune-Midgard Guard ]: The " + strmobinfo(1,.MvpID) + " has spawned in " + .Map$ + "!", bc_all;
monster .Map$,0,0,"--ja--",.MvpID,1,"Event Invasion::OnSpecialMobDead";
} else
announce "["+.mobs_left+"/250] " + strmobinfo(1,.MobID) + " left.",bc_map;
end;
OnSpecialMobDead:
announce strcharinfo(0)+" has fought off the Invasion and has been awarded a worthy prize!", bc_all;
getitem .ItemID,1; //Change the [5] to the amount you wish to hand out.
end;
}
Question
ZelosAvalon
i need help for edit this event: event_invasion-zelos.txt , event working 100% but i need to implement ranking event.
example:
the player to kill more monsters get the .ItemID1
the second player to kill more monsters get the item .ItemID2
the third player to kill more monsters get the item .ItemID3
drop of the MVP will go to the player who killed the MVP .ItemID ( <- this it ok i just need implement first second and third place for get rewards when event finish will automatically receive the rewards! )
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.