after the After 1 Minute the Registration will close I have been automatically teleported to the place where all job manager is placed...removed it please
- script LMS -1,{OnInit:
disablenpc "Mr. Banker";
disablenpc "All Job Manager";
setarray .Message$[0],
"The Last Man Standing event will be starting shortly.",
"Those who want to play, please proceed to Aldebaran and Register.",
"After 1 Minute the Registration will close.",
"Please go to Aldebaran and Register now if you want to join.";
end;
OnMinute00:
OnMinute10:
OnMinute20:
OnMinute30:
OnMinute40:
OnMinute50:
if( .Status ) end;
for( set .i,0; .i < getarraysize( .Message$ ); set .i,.i + 1 ){
announce "Mr. Manager: "+.Message$[.i],0;
sleep 10000;
}
mapwarp "quiz_02","aldebaran",153,107;
pvpoff "quiz_02";
set .Status,1;
enablenpc "All Job Manager";
sleep 30000;
announce "Mr. Manager: Last 30 seconds.",0;
sleep 15000;
announce "Mr. Manager: If you want to join please Register in Aldebaran.",0;
sleep 5000;
for( set .i,10; .i > 0; set .i,.i - 1 ){
announce "Mr. Manager: Last "+.i+" seconds.",0;
sleep 1000;
}
disablenpc "All Job Manager";
donpcevent "Mr. Banker::OnEnable";
end;
OnPCDieEvent:
if( strcharinfo(3) =="quiz_02" ){
dispbottom "You are killed.";
warp "aldebaran",140,116;
}
end;
}//---------All Job Registration---------------
aldebaran,153,107,3 script All Job Manager 106,{
mes "[Mr. Manager]";
mes "Hello What can I do for you?";
next;
menu "Register",-,"What is LMS?",what,"Leave",leave;
next;
mes "[Mr. Manager]";
mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
warp "quiz_02",305,249;
end;
what:
mes "[Mr. Manager]";
mes "LMS is also known as Last Man Standing Event";
next;
mes "[Mr. Manager]";
mes "LMS is also like a PvP.";
mes "The only difference is at LMS you will get 20 CDSC Event Cards if you are the Last Man Standing at the arena.";
next;
mes "[Mr. Manager]";
mes "That's all";
close;
leave:
mes "[Mr. Manager]";
mes "I hope you will register next time";
close;
}
//------------------------
quiz_02,297,265,6 script Checker 780,{mes "[Checker]";
mes "Hi " + strcharinfo(0) + ", Want to check how many are you here?";
next;
mes "There are currently ["+getmapusers("quiz_02")+"]players on map";
close;
OnInit:
waitingroom "Map Checker",0;
end;
}
//--------------------------//--------------------------
quiz_02,311,265,6 script Mr. Banker 56,{
mes "[banker]";
mes "Congrats. You've won.";
close2;
announce "Mr. Manager: We have a winner! well done "+.@name$+".",0;
getitem 674, 10; // Change This item id to what ever you want . 674,10
warp "aldebaran",140,116;
disablenpc "Mr. Banker";
set getvariableofnpc( .Status,"LMS" ),0;
end;
OnEnable:
mapannounce "quiz_02","Mr. Manager:The Last Man Standing Event will start shortly",0;
sleep2 10000;
mapannounce "quiz_02","Mr. Manager:But before we start this is just a few reminders..",0;
sleep2 10000;
mapannounce "quiz_02","Mr. Manager:Using Cloaking , Hiding is strictly not allowed..",0;
sleep2 10000;
mapannounce "quiz_02","Mr. Manager: Only the Last Man Standing will win this event!!",0;
sleep2 10000;
mapannounce "quiz_02","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
sleep2 10000;
goto L_Start;
end;
L_Start:
if(getmapusers("quiz_02") == 1) goto L_Champ;
if(getmapusers("quiz_02") == 0) goto L_None;
if(getmapusers("quiz_02") > 1) {
mapannounce "quiz_02","Mr. Manager: Get ready at the count of 5 we will start!....",0;
sleep2 3000;
for( set .i,5; .i > 0; set .i,.i - 1 ){
mapannounce "quiz_02","Mr. Manager: Last "+.i+" seconds.",0;
sleep 1000;
}
pvpon "quiz_02";
initnpctimer;
}
end;
OnTimer1100:
if(getmapusers("quiz_02") == 1) goto L_Champ;
if(getmapusers("quiz_02") > 2) initnpctimer;
if(getmapusers("quiz_02") == 2) goto champ;
stopnpctimer;
end;champ:
announce "Mr. Manager: Last 2 Brave warriors are still alive!",0;
sleep2 10000;
if(getmapusers("quiz_02") == 1) goto L_Champ;
if(getmapusers("quiz_02") > 1) initnpctimer;
end;
L_Champ:
mapannounce "quiz_02","Mr. Banker: Please talk to me to get your prize..",0;
enablenpc "Mr. Banker";
pvpoff "quiz_02";
end;
L_None:
set getvariableofnpc( .Status,"LMS" ),0;
disablenpc "Mr. Banker";
pvpoff "quiz_02";
end;
}
// == Mapflags
quiz_02 mapflag nowarp
quiz_02 mapflag nowarpto
quiz_02 mapflag noteleport
quiz_02 mapflag nosave
quiz_02 mapflag nomemo
quiz_02 mapflag nobranch
Question
darking123
after the After 1 Minute the Registration will close I have been automatically teleported to the place where all job manager is placed...removed it please
FIXED
i removed
mapwarp "quiz_02","aldebaran",153,107;
Edited by glemor123Link to comment
Share on other sites
0 answers 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.