Jump to content

Quests, Games: Monsterspawn Event


Recommended Posts


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

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


 

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

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
Link to comment
Share on other sites


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

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";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

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.

Link to comment
Share on other sites


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

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

how to add getitem in this event ?

Link to comment
Share on other sites


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

how to add getitem in this event ?

add getitem below this label

OnMyMobDead:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   18
  • Joined:  01/02/12
  • Last Seen:  

OnMyMobDead:

getitem 5022,100;

Edited by Rosemount
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

how to add getitem in this event ?

add getitem below this label

OnMyMobDead:

is there an NPC for this event to receive rewards?

and how can it announce of ever a player kills a monster?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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

×
×
  • Create New...