Jump to content

Recommended Posts

Posted

Monsterspawn Event


Every half hour will start the event and spawn Monsters.

The event stats with a broadcast massage.

How to start/stop the event?

- Whisper the npc with "npc:MSE" and write a random word.

How to changed the settings?

- At line 10 you can change the requried GM Level.

"set .gm,99;"

- At line 46 you can change the time when the event should start.

"OnMinute30:"

- At line 49 you can change the monster that will be spawned.

"set (.mobid,1002);"

- At line 50 you can change the monstername.

"set (.mobname$,"EventMonster");"

- At line 51 you can change the monstercount that will be spawned.

"set (.moba,5);"

If you have any questions, don't be shy to ask me.

Greetings

WhiteEagle


 

  • 1 month later...
Posted (edited)

hey man, would like to use this script, but one question.. do i put this on the NPC folder too?

and how do i edit the spot where monsters should spawn?

Edited by stydianx
Posted

hey man, would like to use this script, but one question.. do i put this on the NPC folder too?

and how do i edit the spot where monsters should spawn?

How to add a script ? read this... Adding_a_Script

when the event start..it will announce where the monster is spawned.

depend on these ...

if (.@rand == 1) set .map$,"prontera";
if (.@rand == 2) set .map$,"geffen";
if (.@rand == 3) set .map$,"morocc";
if (.@rand == 4) set .map$,"payon";
if (.@rand == 5) set .map$,"harmonia";
if (.@rand == 6) set .map$,"izlude";

Posted

hey man, would like to use this script, but one question.. do i put this on the NPC folder too?

and how do i edit the spot where monsters should spawn?

How to add a script ? read this... Adding_a_Script

when the event start..it will announce where the monster is spawned.

depend on these ...

if (.@rand == 1) set .map$,"prontera";
if (.@rand == 2) set .map$,"geffen";
if (.@rand == 3) set .map$,"morocc";
if (.@rand == 4) set .map$,"payon";
if (.@rand == 5) set .map$,"harmonia";
if (.@rand == 6) set .map$,"izlude";

may i put only prontera along with different coordinates? instead of "payon" "harmonia" etc.??

so it will only spawn at prontera but in different locations.

Posted

if you want only prontera...just remove the other map...and also this

set .@rand...........

just one line is enough.

set .map$,"prontera";

and coordinate is random by default.

Posted

OnMyMobDead:
set .mob_left,.mob_left-1;
if (.mob_left == 0) {
		   announce "[Monsterspawn Event]: "+strcharinfo(0)+" has killed the last "+.mobname$+".",bc_all;
		   donpcevent "MSE::OnStop";
    } else {
		   announce "["+.mob_left+"/"+.moba+"] "+.mobname$+" left.",bc_all;
    }
    end;
}

dont know how.

Posted (edited)

Here i want to ask,how to make getitem is random ?

make it 4 items but random prize will give to the winner

//===== Link Script =======================================
//= http://rathena.org/board/topic/70963-monsterspawn-event/
//===== 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,1765); //Monster ID
set (.mobname$,"EventMonster"); //Monster Name
set (.moba,1); //Monster Anzahl
set .@rand,rand(1,6);
if (.@rand == 1) set .map$,"prontera";
if (.@rand == 2) set .map$,"geffen";
if (.@rand == 3) set .map$,"morocc";
if (.@rand == 4) set .map$,"payon";
if (.@rand == 5) set .map$,"izlude";
sleep2 1000;
announce ("[Monsterspawn Event]: "+.moba+" "+.mobname$+" spawn at "+.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 "The Event was stopped by an Admin.",bc_all;
set .mob_left,0;
end;
OnStop:
sleep2 2000;
announce "The Event start every half and full hour.",bc_all;
end;
OnMyMobDead:
getitem 29002,1;
set .mob_left,.mob_left-1;
if (.mob_left == 0) {
		   announce "[Monsterspawn Event]: "+strcharinfo(0)+" has killed the last "+.mobname$+".",bc_all;
		   donpcevent "MSE::OnStop";
	} else {
		   announce "["+.mob_left+"/"+.moba+"] "+.mobname$+" left.",bc_all;
	}
	end;
}

Edited by madtoyz

Join the conversation

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

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...