- script announce_nvz -1,{
OnClock0000: // Server Time
announce "The event for Zombie vs. Novice will begin in 3 minutes",0;
killmonsterall "quiz_01";
sleep 5000;
announce "Proceed @go event and talk to the Zombie NPC to join.",0;
enablenpc "Novice vs. Zombie";
sleep 55000;
announce "Event Zombie vs. Novice will begin in 2 minutes.",0;
sleep 60000;
announce "Event Zombie vs. Novice will begin in 1 minute.",0;
sleep 30000;
mapannounce "quiz_01","In 30 seconds the Zombies will arrive!",0;
sleep 25000;
announce "Event Zombie vs. Novice will start in 5",0;
sleep 1000;
announce "Event Zombie vs. Novice will start in 4",0;
sleep 1000;
announce "Event Zombie vs. Novice will start in 3",0;
sleep 1000;
announce "Event Zombie vs. Novice will start in 2",0;
sleep 1000;
announce "Event Zombie vs. Novice will start in 1",0;
sleep 1000;
announce "Event 'Zombie vs. Novice' has begun!",0,0x00FF00;
monster "quiz_02",46,374,"Zombie",1015,5;
disablenpc "Novice vs. Zombie";
sleep 10000;
monster "quiz_02",46,374,"Zombie",1015,10;
sleep 10000;
monster "quiz_02",46,374,"Zombie",1015,20;
sleep 10000;
monster "quiz_02",46,374,"Zombie",1015,30;
sleep 10000;
monster "quiz_02",46,374,"Ghoul",1036,10;
initnpctimer;
end;
OnTimer5000:
if ( getmapusers("quiz_02") == 0 )
{
killmonsterall "quiz_02";
announce "'Zombie Vs. Novice' has ended, no one survived!",0;
disablenpc "Prize";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_02") > 1 )
{
mapannounce "quiz_02",getmapusers("quiz_02") +" survivors are still on the map.",0,0x00FF00;;
initnpctimer;
end;
}
if ( getmapusers("quiz_02") == 1 ) {
killmonsterall "quiz_02";
mapannounce "quiz_02","You've won! Please approach to the Prize Giver to get your award.",0;
enablenpc "Prize";
stopnpctimer;
end;
}
initnpctimer;
end;
OnPCDieEvent:
getmapxy .@mapnvz$,.@xnvz,.@ynvz,0;
if ( .@mapnvz$ == "quiz_02") {
sleep2 1;
warp "prontera",156,223;
atcommand "@alive "+ strcharinfo(0);
dispbottom "You were beaten by a Zombie.";
}
sleep2 1000;
end;
}
quiz_02,46,374,3 script Prize 72,{
if (sex == 1) {
announce "Wow! " + strcharinfo (0) + " has won! He survived versus the Zombies.",0;
}
else {
announce "Wow! " + strcharinfo (0) + " has won! She survived versus the Zombies.",0;
};
getitem 675,1;
warp "prontera",156,223;
sleep2 250;
disablenpc "Prize";
end;
}
prontera,150,150,5 script Novice vs. Zombie 1015,{
if ( Weight > 0 ){
mes "You must clear all your items in your Equipment Field and Inventory before joining this event.";
close;
}
if (BaseLevel > 1) goto NO;
if (class == 0) goto event;
if (class > 0) goto NO;
event:
mes "[^0000FFZombie Vs. Novice^000000]";
mes "You wish to get on the Zombie Vs. Novice arena?";
next;
switch(select("Yes","No")) {
case 1:
sc_end SC_ALL;
//sc_start SC_DECREASEAGI,300000,10;
percentheal 100,100;
warp "quiz_02",46,374;
end;
break;
case 2:
mes "[^0000FFZombie Vs. Novice^000000]";
mes "Okay, talk to me when you've changed your mind.";
close;
break;
NO:
mes "[^0000FFZombie Vs. Novice^000000]";
mes "You don't meet the requirements. Only Level 1 Novice can join.";
close;
}
OnInit:
disablenpc "Novice vs. Zombie";
disablenpc "Prize";
end;
}
quiz_02 mapflag nowarp
quiz_02 mapflag nowarpto
quiz_02 mapflag noteleport
quiz_02 mapflag nosave
quiz_02 mapflag nomemo
quiz_02 mapflag nobranch
quiz_02 mapflag noloot
quiz_02 mapflag noskill
quiz_02 mapflag nightenabled
quiz_02 mapflag nodrop
quiz_02 mapflag noexp
quiz_02 mapflag pvp off
//quiz_01 mapflag pvp_noparty
//quiz_01 mapflag pvp_noguild
quiz_01 mapflag nocommand 80
Edited by Emistry Please use [CODEBOX] or Attachments for long contents.
Question
Petey Pablo
How to edit this to Round 1 = 1 Zombie.
Like this:
Round 1 = 1 Zombie
Round 2 = 5 Zombie
Round 3 = 10 Zombie
Round 4 = 15 Zombie
Round 5 = 30 Zombie
Edited by EmistryPlease use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites
1 answer to this question
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.