Jump to content
  • 0

edit this to make it autoevent thank you


Question

Posted

prontera,148,175,4 script RFYL 72,{
if (getgmlevel()< 1) { goto startthenvz; end;}
mes "Hello GM "+ strcharinfo(0) +" what can i do for you today?!";
next;
switch(select("Start Game:Terminate Game")){
case 1:
if($@startnow == 1){ mes "The event is alread on."; close;}
set $@startnow,1;
initnpctimer;
killmonsterall "quiz_01";
mapwarp "sec_pri","izlude",128,116;
disablenpc "Prize_nvsz";
announce "RFYL has been started please proceed to the NPC and register.",0;
atcommand "@refresh "+strcharinfo(0)+"";
sleep2 1000;
announce "You have 1 minute to register and the registration will be closed.",0;
end;
break;
case 2:
set $@startnow,0;
announce "The RFYL has been terminated by "+ strcharinfo(0) +".",0;
killmonsterall "quiz_01";
mapwarp "quiz_01","izlude",150,132;
close;
break;
}
OnTimer10000:
announce "You have 3 minutes to register.",0;
end;
OnTimer190000:
set $@startnow,0;
announce "The registration for RFYL has been closed.",0;
end;
OnTimer200000:
mapannounce "quiz_01","The event will start in one minute..",bc_blue;
end;
OnPCDieEvent:
getmapxy .@mapnvz$,.@xnvz,.@ynvz,0;
if ( .@mapnvz$ == "quiz_01") {
mapwarp "sec_pri","izlude",128,116;
dispbottom "You lose!...";
end;
}
OnTimer210000:
monster "quiz_01",42,369,"Zombie-2",1015,1;
mapannounce "quiz_01","'RFYL' first wave.",bc_blue;
end;
OnTimer220000:
monster "quiz_01",42,369,"Zombie-3",1015,2;
mapannounce "quiz_01","'RFYL' second wave.",bc_blue;
end;
OnTimer230000:
monster "quiz_01",42,369,"Zombie-4",1015,3;
mapannounce "quiz_01","'RFYL' last wave.",bc_blue;
end;
OnTimer240000:
set $@startnow,0;
announce "'RFYL' has ended and a lucky player has won!",0;
killmonsterall "quiz_01";
enablenpc "Prize_nvsz";
stopnpctimer;
end;
startthenvz:
if($@startnow == 0){ mes "RFYL is still off or still in going."; close;}
if (BaseLevel > 1) {goto notallowed; end;}
if(class > 0) {goto notallowed; end;}
announce ""+ strcharinfo(0) +", joined RFYL.",bc_blue;
sc_end SC_ALL;
warp "quiz_01",42,369;
end;
notallowed:
mes "You're not a novice "+ strcharinfo(0) +".";
close;
}
quiz_01,42,369,3 script Prize_nvsz 941,{
if (getgmlevel()>= 1) {
switch(select("Set Prize:Review Settings")){
case 1:
mes "Please input the item ID.";
input $itemid;
next;
mes "Please input item amount!";
input $itemamount;
next;
mes "The prize is:^0000FF "+getitemname($itemid)+"^000000 and amount is:^0000FF "+$itemamount+"^000000.";
close;
break;
case 2:
mes "The prize is:^0000FF "+getitemname($itemid)+"^000000 and amount is:^0000FF "+$itemamount+"^000000.";
close;
break;
}
}
getitem 7227,1;
warp "izlude",150,130;
sleep2 60000;
disablenpc "Prize_nvsz";
end;
}

anyone?

bump. .

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.

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