Jump to content
  • 0

MVP Event Script help


Hossam

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  92
  • Reputation:   2
  • Joined:  09/06/15
  • Last Seen:  

	//===== 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

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

set (.mobid,1115);	//Monster ID

change to

set (.mobid,-3);	//Monster ID

 

Link to comment
Share on other sites

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...