//===== eAthena Script =======================================
//= Monster Spawn Event
//===== By ===================================================
//= WhiteEagle
//===== Version ==============================================
//= 1.0
//============================================================
- script MSE -1,{
set .gm,99; // GM Level
OnWhisperGlobal:
if(getgmlevel() >= .gm) {
if (.mob_left) {
mes "^FF0000[Monsterspawn Event CP]^000000";
mes "The Monsterspawn Event is already in progress!";
mes "Would you stop it?";
switch(select("Yes:No")){
case 1:
close2;
goto OnStop2;
case 2:
close;
}
}
mes "^FF0000[Monsterspawn Event CP]^000000";
mes "This is the Control Panel for the Monster Spawn Event.";
mes "How can I help you?";
next;
switch(select("Start:Stop:Cancel")){
case 1:
mes "^FF0000[Monsterspawn Event CP]^000000";
mes "The Monster Spawn Event will now start.";
close2;
goto OnStart;
case 2:
case 3:
close;
}
}
close;
OnMinute30:
OnStart:
donpcevent "MSE::OnTimer1800000";
set (.mobid,1115); //Monster ID
set (.mobname$,"MVP"); //Monster Name
set (.moba,1); //Monster Anzahl
set .@rand,rand(1,3);
if (.@rand == 1) set .map$,"prontera";
if (.@rand == 2) set .map$,"geffen";
if (.@rand == 3) set .map$,"morocc";
sleep2 1000;
announce ("[Monsterspawn Event]: "+.moba+" "+.mobname$+" ظهر فى "+.map$+"",bc_all);
monster(.map$,0,0,.mobname$,.mobid,.moba,"MSE::OnMyMobDead");
set .mob_left,.moba;
sleep2 1798000;
donpcevent "MSE::OnTimer1800000";
end;
OnTimer1800000:
killmonster .map$,"MSE::OnMyMobDead";
set .mob_left,0;
end;
OnStop2:
killmonster .map$,"MSE::OnMyMobDead";
announce "تم انهاء الفاعلية من قبل الجى ام.",bc_all;
set .mob_left,0;
end;
OnStop:
sleep2 2000;
announce "انتهت الفاعلية.",bc_all;
end;
OnMyMobDead:
getitem 6379,10;
set .mob_left,.mob_left-1;
if (.mob_left == 0) {
announce "[Monsterspawn Event]: "+strcharinfo(0)+" قام بقتل وحش اخر "+.mobname$+".",bc_all;
donpcevent "MSE::OnStop";
} else {
announce "["+.mob_left+"/"+.moba+"] "+.mobname$+" تبقى.",bc_all;
}
end;
}
how i can make this script random mvp
now summon eddga how i can add random mvp ?
Question
Hossam
//===== eAthena Script ======================================= //= Monster Spawn Event //===== By =================================================== //= WhiteEagle //===== Version ============================================== //= 1.0 //============================================================ - script MSE -1,{ set .gm,99; // GM Level OnWhisperGlobal: if(getgmlevel() >= .gm) { if (.mob_left) { mes "^FF0000[Monsterspawn Event CP]^000000"; mes "The Monsterspawn Event is already in progress!"; mes "Would you stop it?"; switch(select("Yes:No")){ case 1: close2; goto OnStop2; case 2: close; } } mes "^FF0000[Monsterspawn Event CP]^000000"; mes "This is the Control Panel for the Monster Spawn Event."; mes "How can I help you?"; next; switch(select("Start:Stop:Cancel")){ case 1: mes "^FF0000[Monsterspawn Event CP]^000000"; mes "The Monster Spawn Event will now start."; close2; goto OnStart; case 2: case 3: close; } } close; OnMinute30: OnStart: donpcevent "MSE::OnTimer1800000"; set (.mobid,1115); //Monster ID set (.mobname$,"MVP"); //Monster Name set (.moba,1); //Monster Anzahl set .@rand,rand(1,3); if (.@rand == 1) set .map$,"prontera"; if (.@rand == 2) set .map$,"geffen"; if (.@rand == 3) set .map$,"morocc"; sleep2 1000; announce ("[Monsterspawn Event]: "+.moba+" "+.mobname$+" ظهر فى "+.map$+"",bc_all); monster(.map$,0,0,.mobname$,.mobid,.moba,"MSE::OnMyMobDead"); set .mob_left,.moba; sleep2 1798000; donpcevent "MSE::OnTimer1800000"; end; OnTimer1800000: killmonster .map$,"MSE::OnMyMobDead"; set .mob_left,0; end; OnStop2: killmonster .map$,"MSE::OnMyMobDead"; announce "تم انهاء الفاعلية من قبل الجى ام.",bc_all; set .mob_left,0; end; OnStop: sleep2 2000; announce "انتهت الفاعلية.",bc_all; end; OnMyMobDead: getitem 6379,10; set .mob_left,.mob_left-1; if (.mob_left == 0) { announce "[Monsterspawn Event]: "+strcharinfo(0)+" قام بقتل وحش اخر "+.mobname$+".",bc_all; donpcevent "MSE::OnStop"; } else { announce "["+.mob_left+"/"+.moba+"] "+.mobname$+" تبقى.",bc_all; } end; }
how i can make this script random mvp
now summon eddga how i can add random mvp ?
Link to comment
Share on other sites
1 answer 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.