WhiteEagle Posted September 12, 2012 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 2 hours ago Share Posted September 12, 2012 View File 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 Submitter WhiteEagle Submitted 08/28/2012 Category Games, Events, Quests Video Content Author WhiteEagle Quote Link to comment Share on other sites More sharing options...
stydianx Posted October 16, 2012 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 390 Reputation: 27 Joined: 07/12/12 Last Seen: October 24, 2022 Share Posted October 16, 2012 (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 October 16, 2012 by stydianx Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 16, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 16, 2012 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"; Quote Link to comment Share on other sites More sharing options...
stydianx Posted October 17, 2012 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 390 Reputation: 27 Joined: 07/12/12 Last Seen: October 24, 2022 Share Posted October 17, 2012 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. Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 17, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 17, 2012 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. Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 18, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Share Posted October 18, 2012 how to add getitem in this event ? Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 18, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 18, 2012 how to add getitem in this event ? add getitem below this label OnMyMobDead: Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 18, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Share Posted October 18, 2012 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. Quote Link to comment Share on other sites More sharing options...
Rosemount Posted October 18, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 82 Reputation: 18 Joined: 01/02/12 Last Seen: March 25, 2023 Share Posted October 18, 2012 (edited) OnMyMobDead: getitem 5022,100; Edited October 18, 2012 by Rosemount Quote Link to comment Share on other sites More sharing options...
stydianx Posted October 19, 2012 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 390 Reputation: 27 Joined: 07/12/12 Last Seen: October 24, 2022 Share Posted October 19, 2012 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? Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 19, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Share Posted October 19, 2012 (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 October 22, 2012 by madtoyz Quote Link to comment Share on other sites More sharing options...
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.