Jump to content
  • 0

RFYL


letstry

Question


  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

The event wont stop even though there's only 1 novice left in the map..

Help please Thanks

- script announce_nvz -1,{
OnClock0130:
OnClock0430:
OnClock0730:
OnClock1030:
OnClock1330:
OnClock1630:
OnClock1930:
OnClock2230:
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_01",42,369,"Zombie",1015,3;
disablenpc "Novice vs. Zombie";
sleep 10000;
monster "quiz_01",42,369,"Zombie",1015,3;
sleep 10000;
monster "quiz_01",42,369,"Zombie",1015,3;
sleep 10000;
monster "quiz_01",42,369,"Ghoul",1036,5;
initnpctimer;
end;
OnTimer5000:
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01";
announce "'Zombie Vs. Novice' has ended, no one survived!",0;
disablenpc "Prize";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
mapannounce "quiz_01",getmapusers("quiz_01") +" survivors are still on the map.",0,0x00FF00;;
initnpctimer;
end;
}
if ( .@mapnvz$ == "quiz_01" && getmapusers("quiz_01") = 1 ) {
killmonsterall "quiz_01";
mapannounce "quiz_01","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_01") {
sleep2 1;
warp "prontera",156,223;
atcommand "@alive "+ strcharinfo(0);
dispbottom "You were beaten by a Zombie.";
}
sleep2 1000;
end;
}
quiz_01,42,369,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;
}
brasilis,116,337,3 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_01",42,369;
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_01 mapflag nowarp
quiz_01 mapflag nowarpto
quiz_01 mapflag noteleport
quiz_01 mapflag nosave
quiz_01 mapflag nomemo
quiz_01 mapflag nobranch
quiz_01 mapflag noloot
quiz_01 mapflag noskill
quiz_01 mapflag nightenabled
quiz_01 mapflag nodrop
quiz_01 mapflag noexp
quiz_01 mapflag pvp off
quiz_01 mapflag pvp_noparty
quiz_01 mapflag pvp_noguild
quiz_01 mapflag nocommand 80

Edited by Arcenciel
Codeboxed
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


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

change this

if ( .@mapnvz$ == "quiz_01" && getmapusers("quiz_01") = 1 ) {

into this

if ( getmapusers("quiz_01") == 1 ) {

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

×
×
  • Create New...