Jump to content
  • 0

Monster Event


Question

Posted (edited)

Kindly modify my script .

i want all the monster in round 1 to be killed in order to proceed to the 2nd round

and also im having trouble with this

quiz_00,20,115,3 script MVP Event GM 403,{
if(getgroupid() >= 60) {
 mes "Would you like to start the MVP event?";
 next;
 menu "Yes.",STR,"No.",STP;
  STR:
Callsub OnEventStart;
end;
  STP:
close;
}
end;

when i start the event . the npc wont close . thx

- script mvpevent -1,{
OnInit:
disablenpc "MVP Event";
end;
}
quiz_00,20,115,3 script MVP Event GM 403,{
if(getgroupid() >= 60) {
 mes "Would you like to start the MVP event?";
 next;
 menu "Yes.",STR,"No.",STP;
  STR:
Callsub OnEventStart;
end;
  STP:
close;
}
end;

//Time to be happening annons.
OnClock0000:
OnClock0600:
OnClock1200:
OnClock1800:
OnEventStart:
initnpctimer;
OnTimer0:
announce "Mvp Event will start after 3 minute",0;
end;
OnTimer10000:
enablenpc "MVP Event";
killmonsterall "guild_vs1";
announce "MVP Event: Please proceed to Prontera to join the event",0;
end;
OnTimer60000:
announce "MVP Event will start after 2 minute",0;
end;
OnTimer120000:
announce "Mvp Event will start after 1 minute",0;
end;
OnTimer180000:
announce "MVP Event warper is now closed.",0;
stopnpctimer; //disable the timer.
disablenpc "MVP Event";
sleep 10000;
mapannounce "guild_vs1","The first invasion of monsters in 10 seconds",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1785,2; //atroce
monster "guild_vs1",0,0,"--ja--",1630,2; //bacsojin
monster "guild_vs1",0,0,"--ja--",1252,2; //garm
monster "guild_vs1",0,0,"--ja--",1688,2; //lady tanee
monster "guild_vs1",0,0,"--ja--",1147,2; //maya
monster "guild_vs1",0,0,"--ja--",1150,2; //moonlight flower
monster "guild_vs1",0,0,"--ja--",1120,2; //ghostring
monster "guild_vs1",0,0,"--ja--",1582,2; //deviling
monster "guild_vs1",0,0,"--ja--",1059,2; //mistress
monster "guild_vs1",0,0,"--ja--",1087,2; //orc hero
monster "guild_vs1",0,0,"--ja--",1159,2; //phreeoni
monster "guild_vs1",0,0,"--ja--",1289,2; //maya purple
sleep 120000;
mapannounce "guild_vs1","The second invasion of monsters in 10 seconds.",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1511,2; //amon ra
monster "guild_vs1",0,0,"--ja--",1039,2; //baphomet
monster "guild_vs1",0,0,"--ja--",1719,2; //detale
monster "guild_vs1",0,0,"--ja--",1046,2; //doppelganger
monster "guild_vs1",0,0,"--ja--",1389,2; //Dracula
monster "guild_vs1",0,0,"--ja--",1112,2; //drake
monster "guild_vs1",0,0,"--ja--",1115,2; //Eddga
monster "guild_vs1",0,0,"--ja--",1418,2; //Evil Snake Lord
monster "guild_vs1",0,0,"--ja--",1373,2; //Lord of Death
monster "guild_vs1",0,0,"--ja--",1190,2; //Orc Lord
monster "guild_vs1",0,0,"--ja--",1157,2; //Pharaoh
sleep 120000;
mapannounce "guild_vs1","The Third Invasion of monsters in 10 seconds.",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1874,1; //Beelzebub
monster "guild_vs1",0,0,"--ja--",1272,1; //Dark Lord
monster "guild_vs1",0,0,"--ja--",1768,1; //Gloom Under Night
monster "guild_vs1",0,0,"--ja--",1086,1; //Golden Thief Bug
monster "guild_vs1",0,0,"--ja--",1832,1; //Ifrit
monster "guild_vs1",0,0,"--ja--",1492,1; //Incantation Samurai
monster "guild_vs1",0,0,"--ja--",1734,1; //kiel
monster "guild_vs1",0,0,"--ja--",1251,1; //Stormy Knight
monster "guild_vs1",0,0,"--ja--",1779,1; //ktullanux
monster "guild_vs1",0,0,"--ja--",1038,1; //Osiris
monster "guild_vs1",0,0,"--ja--",1623,1; //RSX
sleep 120000;
mapannounce "guild_vs1","The Third Invasion of monsters in 10 seconds.",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1583,2; //Tao Gunka
monster "guild_vs1",0,0,"--ja--",1708,2; //Thanatos
monster "guild_vs1",0,0,"--ja--",1312,2; //turtle general
monster "guild_vs1",0,0,"--ja--",1751,1; //randgris
monster "guild_vs1",0,0,"--ja--",1871,1; //fallen bishop
monster "guild_vs1",0,0,"--ja--",1685,1; //vesper
monster "guild_vs1",0,0,"--ja--",1646,1; //lord knight
monster "guild_vs1",0,0,"--ja--",1651,1; //
//disablenpc "Kenny";
stopnpctimer; //disable the timer.
end;
}
prontera,155,162,5 script MVP Event 811,{
mes "Event will begin after 1 minute.";
mes "You want to participate?";
next;
mes "Well, you are registered";
mes "Want to get to locations of event?";
next;
menu "Yes.",case1,"No.",case2;
case1:
warp "guild_vs1",0,0;
close;
case2:
mes "[Mvp]";
mes "Well, come whenever you want.";
close;
}
// -- Mapflags
guild_vs1 mapflag nowarp
guild_vs1 mapflag nowarpto
guild_vs1 mapflag noteleport
guild_vs1 mapflag nomemo
guild_vs1 mapflag nobranch
guild_vs1 mapflag nopenalty
guild_vs1 mapflag nosave SavePoint
guild_vs1 mapflag pvp off
//
//

bump !

Edited by Emistry
Please use [CODEBOX] or Attachments for long contents.

4 answers to this question

Recommended Posts

Posted (edited)

i want all the monster in round 1 to be killed in order to proceed to the 2nd round

Just add after 1st round

quiz_00,20,115,3	script	MVP Event GM	403,{
if( getgroupid() < 60 ) end;
mes "Would you like to start the MVP event?";
next;

if( select( "Yes", "No" ) == 1 )
	donpcevent strnpcinfo(0)+"::OnEventStart";
close;


//Time to be happening annons.
OnClock0000:
OnClock0600:
OnClock1200:
OnClock1800:
OnEventStart:
initnpctimer;
announce "Mvp Event will start after 3 minute",0;
end;
OnTimer1000:
enablenpc "MVP Event";
killmonsterall "guild_vs1";
announce "MVP Event: Please proceed to Prontera to join the event",0;
end;
OnTimer6000:
announce "MVP Event will start after 2 minute",0;
end;
OnTimer12000:
announce "Mvp Event will start after 1 minute",0;
end;
OnTimer18000:
announce "MVP Event warper is now closed.",0;
stopnpctimer; //disable the timer.
disablenpc "MVP Event";
sleep 10000;
mapannounce "guild_vs1","The first invasion of monsters in 10 seconds",0,0x00ff00;
sleep 10000;
.count = 24;
monster "guild_vs1",0,0,"--ja--",1785,2,strnpcinfo(0)+"::OnMyKill"; //atroce
monster "guild_vs1",0,0,"--ja--",1630,2,strnpcinfo(0)+"::OnMyKill"; //bacsojin
monster "guild_vs1",0,0,"--ja--",1252,2,strnpcinfo(0)+"::OnMyKill"; //garm
monster "guild_vs1",0,0,"--ja--",1688,2,strnpcinfo(0)+"::OnMyKill"; //lady tanee
monster "guild_vs1",0,0,"--ja--",1147,2,strnpcinfo(0)+"::OnMyKill"; //maya
monster "guild_vs1",0,0,"--ja--",1150,2,strnpcinfo(0)+"::OnMyKill"; //moonlight flower
monster "guild_vs1",0,0,"--ja--",1120,2,strnpcinfo(0)+"::OnMyKill"; //ghostring
monster "guild_vs1",0,0,"--ja--",1582,2,strnpcinfo(0)+"::OnMyKill"; //deviling
monster "guild_vs1",0,0,"--ja--",1059,2,strnpcinfo(0)+"::OnMyKill"; //mistress
monster "guild_vs1",0,0,"--ja--",1087,2,strnpcinfo(0)+"::OnMyKill"; //orc hero
monster "guild_vs1",0,0,"--ja--",1159,2,strnpcinfo(0)+"::OnMyKill"; //phreeoni
monster "guild_vs1",0,0,"--ja--",1289,2,strnpcinfo(0)+"::OnMyKill"; //maya purple
end;

OnMyKill:
.count--;
if( .count ) end;
mapannounce "guild_vs1","The second invasion of monsters in 10 seconds.",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1511,2; //amon ra
monster "guild_vs1",0,0,"--ja--",1039,2; //baphomet
monster "guild_vs1",0,0,"--ja--",1719,2; //detale
monster "guild_vs1",0,0,"--ja--",1046,2; //doppelganger
monster "guild_vs1",0,0,"--ja--",1389,2; //Dracula
monster "guild_vs1",0,0,"--ja--",1112,2; //drake
monster "guild_vs1",0,0,"--ja--",1115,2; //Eddga
monster "guild_vs1",0,0,"--ja--",1418,2; //Evil Snake Lord
monster "guild_vs1",0,0,"--ja--",1373,2; //Lord of Death
monster "guild_vs1",0,0,"--ja--",1190,2; //Orc Lord
monster "guild_vs1",0,0,"--ja--",1157,2; //Pharaoh
sleep 120000;
mapannounce "guild_vs1","The Third Invasion of monsters in 10 seconds.",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1874,1; //Beelzebub
monster "guild_vs1",0,0,"--ja--",1272,1; //Dark Lord
monster "guild_vs1",0,0,"--ja--",1768,1; //Gloom Under Night
monster "guild_vs1",0,0,"--ja--",1086,1; //Golden Thief Bug
monster "guild_vs1",0,0,"--ja--",1832,1; //Ifrit
monster "guild_vs1",0,0,"--ja--",1492,1; //Incantation Samurai
monster "guild_vs1",0,0,"--ja--",1734,1; //kiel
monster "guild_vs1",0,0,"--ja--",1251,1; //Stormy Knight
monster "guild_vs1",0,0,"--ja--",1779,1; //ktullanux
monster "guild_vs1",0,0,"--ja--",1038,1; //Osiris
monster "guild_vs1",0,0,"--ja--",1623,1; //RSX
sleep 120000;
mapannounce "guild_vs1","The Third Invasion of monsters in 10 seconds.",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1583,2; //Tao Gunka
monster "guild_vs1",0,0,"--ja--",1708,2; //Thanatos
monster "guild_vs1",0,0,"--ja--",1312,2; //turtle general
monster "guild_vs1",0,0,"--ja--",1751,1; //randgris
monster "guild_vs1",0,0,"--ja--",1871,1; //fallen bishop
monster "guild_vs1",0,0,"--ja--",1685,1; //vesper
monster "guild_vs1",0,0,"--ja--",1646,1; //lord knight
monster "guild_vs1",0,0,"--ja--",1651,1; //
//disablenpc "Kenny";
end;

OnInit:
disablenpc "MVP Event";
end;
}
prontera,155,162,5	script	MVP Event	811,{
mes "Event will begin after 1 minute.";
mes "You want to participate?";
next;
mes "Well, you are registered";
mes "Want to get to locations of event?";
next;
menu "Yes.",case1,"No.",case2;
case1:
warp "guild_vs1",0,0;
close;
case2:
mes "[Mvp]";
mes "Well, come whenever you want.";
close;
}
// -- Mapflags
guild_vs1	mapflag	nowarp
guild_vs1	mapflag	nowarpto
guild_vs1	mapflag	noteleport
guild_vs1	mapflag	nomemo
guild_vs1	mapflag	nobranch
guild_vs1	mapflag	nopenalty
guild_vs1	mapflag	nosave	SavePoint
guild_vs1	mapflag	pvp	off

when i start the event . the npc wont close . thx

I don't know why it didn't hide 'coz I cleaned it without thinking...

Edit: I had misread >.<

@ewanjeli

set a variable is more ressource freely than mobcount

Edited by Capuche
Posted (edited)

quiz_00,20,115,3 script MVP Event GM 403,{
if( getgroupid() < 60 ) end;
mes "Would you like to start the MVP event?";
next;

if( select( "Yes", "No" ) == 1 )
donpcevent strnpcinfo(0)+"::OnEventStart";
close;


//Time to be happening annons.
OnClock0000:
OnClock0600:
OnClock1200:
OnClock1800:
OnEventStart:
initnpctimer;
announce "Mvp Event will start after 3 minute",0;
end;
OnTimer1000:
enablenpc "MVP Event";
killmonsterall "guild_vs1";
announce "MVP Event: Please proceed to Prontera to join the event",0;
end;
OnTimer6000:
announce "MVP Event will start after 2 minute",0;
end;
OnTimer12000:
announce "Mvp Event will start after 1 minute",0;
end;
OnTimer18000:
announce "MVP Event warper is now closed.",0;
stopnpctimer; //disable the timer.
disablenpc "MVP Event";
sleep 10000;
mapannounce "guild_vs1","The first invasion of monsters in 10 seconds",0,0x00ff00;
sleep 10000;
.count = 24;
monster "guild_vs1",0,0,"--ja--",1785,2,strnpcinfo(0)+"::OnMyKill"; //atroce
monster "guild_vs1",0,0,"--ja--",1630,2,strnpcinfo(0)+"::OnMyKill"; //bacsojin
monster "guild_vs1",0,0,"--ja--",1252,2,strnpcinfo(0)+"::OnMyKill"; //garm
monster "guild_vs1",0,0,"--ja--",1688,2,strnpcinfo(0)+"::OnMyKill"; //lady tanee
monster "guild_vs1",0,0,"--ja--",1147,2,strnpcinfo(0)+"::OnMyKill"; //maya
monster "guild_vs1",0,0,"--ja--",1150,2,strnpcinfo(0)+"::OnMyKill"; //moonlight flower
monster "guild_vs1",0,0,"--ja--",1120,2,strnpcinfo(0)+"::OnMyKill"; //ghostring
monster "guild_vs1",0,0,"--ja--",1582,2,strnpcinfo(0)+"::OnMyKill"; //deviling
monster "guild_vs1",0,0,"--ja--",1059,2,strnpcinfo(0)+"::OnMyKill"; //mistress
monster "guild_vs1",0,0,"--ja--",1087,2,strnpcinfo(0)+"::OnMyKill"; //orc hero
monster "guild_vs1",0,0,"--ja--",1159,2,strnpcinfo(0)+"::OnMyKill"; //phreeoni
monster "guild_vs1",0,0,"--ja--",1289,2,strnpcinfo(0)+"::OnMyKill"; //maya purple
end;

OnMyKill:
.count--;
if( .count ) end;
mapannounce "guild_vs1","The second invasion of monsters in 10 seconds.",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1511,2,strnpcinfo(0)+"::OnMyKill2"; //amon ra
monster "guild_vs1",0,0,"--ja--",1039,2,strnpcinfo(0)+"::OnMyKill2"; //baphomet
monster "guild_vs1",0,0,"--ja--",1719,2,strnpcinfo(0)+"::OnMyKill2"; //detale
monster "guild_vs1",0,0,"--ja--",1046,2,strnpcinfo(0)+"::OnMyKill2"; //doppelganger
monster "guild_vs1",0,0,"--ja--",1389,2,strnpcinfo(0)+"::OnMyKill2"; //Dracula
monster "guild_vs1",0,0,"--ja--",1112,2,strnpcinfo(0)+"::OnMyKill2"; //drake
monster "guild_vs1",0,0,"--ja--",1115,2,strnpcinfo(0)+"::OnMyKill2"; //Eddga
monster "guild_vs1",0,0,"--ja--",1418,2,strnpcinfo(0)+"::OnMyKill2"; //Evil Snake Lord
monster "guild_vs1",0,0,"--ja--",1373,2,strnpcinfo(0)+"::OnMyKill2"; //Lord of Death
monster "guild_vs1",0,0,"--ja--",1190,2,strnpcinfo(0)+"::OnMyKill2"; //Orc Lord
monster "guild_vs1",0,0,"--ja--",1157,2,strnpcinfo(0)+"::OnMyKill2"; //Pharaoh

OnMyKill2:
.count2--;
if( .count2 ) end;
mapannounce "guild_vs1","The Third Invasion of monsters in 10 seconds.",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1874,1,strnpcinfo(0)+"::OnMyKill3"; //Beelzebub
monster "guild_vs1",0,0,"--ja--",1272,1,strnpcinfo(0)+"::OnMyKill3"; //Dark Lord
monster "guild_vs1",0,0,"--ja--",1768,1,strnpcinfo(0)+"::OnMyKill3"; //Gloom Under Night
monster "guild_vs1",0,0,"--ja--",1086,1,strnpcinfo(0)+"::OnMyKill3"; //Golden Thief Bug
monster "guild_vs1",0,0,"--ja--",1832,1,strnpcinfo(0)+"::OnMyKill3"; //Ifrit
monster "guild_vs1",0,0,"--ja--",1492,1,strnpcinfo(0)+"::OnMyKill3"; //Incantation Samurai
monster "guild_vs1",0,0,"--ja--",1734,1,strnpcinfo(0)+"::OnMyKill3"; //kiel
monster "guild_vs1",0,0,"--ja--",1251,1,strnpcinfo(0)+"::OnMyKill3"; //Stormy Knight
monster "guild_vs1",0,0,"--ja--",1779,1,strnpcinfo(0)+"::OnMyKill3"; //ktullanux
monster "guild_vs1",0,0,"--ja--",1038,1,strnpcinfo(0)+"::OnMyKill3"; //Osiris
monster "guild_vs1",0,0,"--ja--",1623,1,strnpcinfo(0)+"::OnMyKill3"; //RSX

OnMyKill3:
.count3--;
if( .count3 ) end;
mapannounce "guild_vs1","The Third Invasion of monsters in 10 seconds.",0,0x00ff00;
sleep 10000;
monster "guild_vs1",0,0,"--ja--",1583,2,strnpcinfo(0)+"::OnMyKill4"; //Tao Gunka
monster "guild_vs1",0,0,"--ja--",1708,2,strnpcinfo(0)+"::OnMyKill4"; //Thanatos
monster "guild_vs1",0,0,"--ja--",1312,2,strnpcinfo(0)+"::OnMyKill4"; //turtle general
monster "guild_vs1",0,0,"--ja--",1751,1,strnpcinfo(0)+"::OnMyKill4"; //randgris
monster "guild_vs1",0,0,"--ja--",1871,1,strnpcinfo(0)+"::OnMyKill4"; //fallen bishop
monster "guild_vs1",0,0,"--ja--",1685,1,strnpcinfo(0)+"::OnMyKill4"; //vesper
monster "guild_vs1",0,0,"--ja--",1646,1,strnpcinfo(0)+"::OnMyKill4"; //lord knight
monster "guild_vs1",0,0,"--ja--",1651,1,strnpcinfo(0)+"::OnMyKill4"; //
//disablenpc "Kenny";
end;

OnInit:
disablenpc "MVP Event";
end;
}
prontera,155,162,5 script MVP Event 811,{
mes "Event will begin after 1 minute.";
mes "You want to participate?";
next;
mes "Well, you are registered";
mes "Want to get to locations of event?";
next;
menu "Yes.",case1,"No.",case2;
case1:
warp "guild_vs1",0,0;
close;
case2:
mes "[Mvp]";
mes "Well, come whenever you want.";
close;
}
// -- Mapflags
guild_vs1 mapflag nowarp
guild_vs1 mapflag nowarpto
guild_vs1 mapflag noteleport
guild_vs1 mapflag nomemo
guild_vs1 mapflag nobranch
guild_vs1 mapflag nopenalty
guild_vs1 mapflag nosave SavePoint
guild_vs1 mapflag pvp off

im having trouble in 3rd round

Edited by Emistry
Please use [CODEBOX] or Attachments for long contents.
Posted (edited)

.count = 24;
monster "guild_vs1",0,0,"--ja--",1785,2,strnpcinfo(0)+"::OnMyKill"; //atroce
monster "guild_vs1",0,0,"--ja--",1630,2,strnpcinfo(0)+"::OnMyKill"; //bacsojin
monster "guild_vs1",0,0,"--ja--",1252,2,strnpcinfo(0)+"::OnMyKill"; //garm
monster "guild_vs1",0,0,"--ja--",1688,2,strnpcinfo(0)+"::OnMyKill"; //lady tanee
monster "guild_vs1",0,0,"--ja--",1147,2,strnpcinfo(0)+"::OnMyKill"; //maya
monster "guild_vs1",0,0,"--ja--",1150,2,strnpcinfo(0)+"::OnMyKill"; //moonlight flower
monster "guild_vs1",0,0,"--ja--",1120,2,strnpcinfo(0)+"::OnMyKill"; //ghostring
monster "guild_vs1",0,0,"--ja--",1582,2,strnpcinfo(0)+"::OnMyKill"; //deviling
monster "guild_vs1",0,0,"--ja--",1059,2,strnpcinfo(0)+"::OnMyKill"; //mistress
monster "guild_vs1",0,0,"--ja--",1087,2,strnpcinfo(0)+"::OnMyKill"; //orc hero
monster "guild_vs1",0,0,"--ja--",1159,2,strnpcinfo(0)+"::OnMyKill"; //phreeoni
monster "guild_vs1",0,0,"--ja--",1289,2,strnpcinfo(0)+"::OnMyKill"; //maya purple

In this example I set .count = 24; 'coz there are 24 mobs spawn. Count and set the number of mobs in each round before processing... or use mobcount

OnMyKill:
   if( mobcount( "guild_vs1", strnpcinfo(0)+"::OnMyKill") ) end;
   mapannounce "guild_vs1","The second invasion of monsters in 10 seconds.",0,0x00ff00;

Edited by Capuche

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.

  • Recently Browsing   0 members

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