- script LMS#disable -1,{
OnInit:
OnReset:
enablenpc "LMS Manager";
enablenpc "LMS Manager#manual";
disablenpc "Michael Buffer";
pvpoff "guild_vs5";
pvpoff "quiz_02";
set $@eventongoing,0;
set $@registeropen,0;
end;
}
- script LMS -1,{
end;
OnClock0000:
OnClock0100:
OnClock0200:
OnClock0300:
OnClock0400:
OnClock0500:
OnClock0600:
OnClock0700:
OnClock0800:
OnClock0900:
OnClock1000:
OnClock1100:
OnClock1200:
OnClock1300:
OnClock1400:
OnClock1500:
OnClock1600:
OnClock1700:
OnClock1800:
OnClock1900:
OnClock2000:
OnClock2100:
OnClock2200:
OnClock2300:
OnManual:
startlmsevent:
if ($@eventongoing == 1){end;}
set $@eventongoing,1;
set $@registeropen,1;
announce "Michael Buffer: A Last Man Standing Event will be held shortly.",0;
sleep2 5000;
announce "Michael Buffer: Those who want to play, please proceed to Prontera and look for the manager.",0;
movenpc "LMS Manager",155,177;
movenpc "LMS Manager",155,177;
sleep2 5000;
announce "Michael Buffer: The Registration will be available for 1 minute and 30 seconds.",0;
sleep2 15000;
announce "Michael Buffer: Please go to Prontera and Register now if you want to join.",0;
sleep2 15000;
initnpctimer;
end;
OnTimer30000:
announce "Michael Buffer: Last 30 seconds.",0;
sleep2 5000;
announce "Michael Buffer: Registration for the LMS Event is being held at Prontera.",0;
end;
OnTimer50000:
announce "Michael Buffer: Last 10 seconds.",0;
end;
OnTimer55000:
announce "Michael Buffer: 5.",0;
end;
OnTimer56000:
announce "Michael Buffer: 4.",0;
end;
OnTimer57000:
announce "Michael Buffer: 3.",0;
end;
OnTimer58000:
announce "Michael Buffer: 2.",0;
end;
OnTimer59000:
announce "Michael Buffer: 1.",0;
end;
OnTimer60000:
announce "Michael Buffer: Time's up.",0;
set $@registeropen,0;
end;
OnTimer61000:
movenpc "LMS Manager",155,180;
movenpc "LMS Manager",135,181;
donpcevent "Michael Buffer::OnEnable";
stopnpctimer;
end;
}
//---------------------------------Warper--------------------------------
prontera,135,177,5 script LMS Manager 721,{
if ($@registeropen == 0) {
goto offduty;
end;
}
mes "[LMS Manager]";
mes "Hello What can I do for you?";
next;
menu "Register",-,"What is LMS?",what,"Leave",leave;
next;
mes "[LMS Manager]";
mes "Thank you for registering " + strcharinfo(0) + ", Have fun!";
next;
set #kill_point, 0;
warp "quiz_02",31,345;
end;
what:
mes "[LMS Manager]";
mes "LMS means Last Man Standing";
mes "LMS is a PvP event wherein the last player alive wins.";
close;
leave:
mes "[LMS Manager]";
mes "Hope you join the next round which is in 2 hours.";
close;
end;
offduty:
mes "[LMS Manager]";
mes "Sorry, registration is closed";
close;
end;
OnInit:
set $@registeropen,0;
npcspeed 0;
end;
}
quiz_02,286,234,5 script LMS Manager#manual 721,{
if(getgmlevel()<98){
mes "[LMS Manager]";
mes "Sorry i'm off duty right now";
close;
end;
}
mes "Hi GM, do you want to start a special unscheduled LMSevent?";
menu "Yes",-,"No",dontstart;
if ($@eventongoing == 1){
mes "Sorry event on going";
close;
end;}
doevent "LMS::OnManual";
close;
end;
dontstart:
mes "OK, GM's orders";
close;
end;
}
//--------------------------
//--------------------------
guild_vs5,50,50,6 script Michael Buffer 61,{
mes "[Michael Buffer]";
mes "Congrats. You've won.";
next;
announce "Michael Buffer: We have a winner! Congratulations to "+strcharinfo(0)+"!",0;
getitem 7711, 1;
mes "You will be accompanied home now";
next;
warp "prontera",156,191;
atcommand "@hidenpc Michael Buffer";
close;
end;
OnEnable:
pvpoff "guild_vs5";
mapannounce "quiz_02","Michael Buffer: The Last Man Standing Event will start shortly",0;
sleep2 10000;
mapannounce "quiz_02","Michael Buffer: Here are the rules..",0;
sleep2 5000;
mapannounce "quiz_02","Michael Buffer: KILL EVERYONE IN SIGHT!!",0;
sleep2 5000;
mapannounce "quiz_02","Michael Buffer: Only the Last Man Standing will win this event!!",0;
sleep2 5000;
mapannounce "quiz_02","Michael Buffer: Extra rewards will be given to those with lots of kills!",0;
sleep2 5000;
mapannounce "quiz_02","Michael Buffer: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
sleep2 5000;
mapannounce "quiz_02","Michael Buffer: Get Ready!! Here we go!!....",0;
sleep2 5000;
mapannounce "quiz_02","Michael Buffer: 5",0;
sleep2 1000;
mapannounce "quiz_02","Michael Buffer: 4",0;
sleep2 1000;
mapannounce "quiz_02","Michael Buffer: 3",0;
sleep2 1000;
mapannounce "quiz_02","Michael Buffer: 2",0;
sleep2 1000;
mapannounce "quiz_02","Michael Buffer: 1",0;
areapercentheal "quiz_02",20,357,43,334,100,100;
sleep2 1000;
mapannounce "quiz_02","Michael Buffer: GO!!",0;
set .announcecount,0;
pvpon "guild_vs5";
areawarp "quiz_02",20,357,43,334,"guild_vs5",0,0;
goto L_Start;
end;
L_Start:
announce "The LMS event has started!",0;
sleep2 5000;
if(getmapusers("guild_vs5") == 1) goto L_Champ;
if(getmapusers("guild_vs5") == 0) goto L_None;
if(getmapusers("guild_vs5") > 1) {
goto timer;
end;
}
timer:
initnpctimer;
end;
OnTimer1000:
end;
OnTimer1100:
if(getmapusers("guild_vs5") == 1) goto L_Champ;
if(getmapusers("guild_vs5") > 2) goto timer;
if(getmapusers("guild_vs5") == 2) goto champ;
stopnpctimer;
end;
champ:
if(.announcecount % 5 == 0){
mapannounce "guild_vs5","Michael Buffer: Only Two players left in the competition!!",0;
}
set .announcecount, .announcecount+1;
sleep2 5000;
if(getmapusers("guild_vs5") == 1) goto L_Champ;
if(getmapusers("guild_vs5") > 1) goto timer;
end;
L_Champ:
mapannounce "guild_vs5","Michael Buffer: Please talk to me to get your prize..",0;
set .announcecount,0;
pvpoff "guild_vs5";
atcommand "@shownpc Michael Buffer";
end;
L_None:
disablenpc "Michael Buffer";
pvpoff "guild_vs5";
set .announcecount,0;
announce "The LMS event has ended because noone participated",0;
donpcevent "LMS#disable::OnReset";
end;
}
//----- Die = warp prt -----
- script Ded_Uwi -1,{
OnPCDieEvent:
getmapxy(.@map$,.@x,.@y,0);
if(.@map$=="guild_vs5")
{
set #kill_point, 0;
announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
end;
}
OnPCKillEvent:
getmapxy(.@map$,.@x,.@y,0);
if(.@map$=="guild_vs5")
{
set #kill_point,#kill_point+1;
if ( #kill_point == 5) {
announce ""+strcharinfo(0)+" is on a killing streak!",bc_all;
getitem 14232, 2;
end;
}
if ( #kill_point > 5) {
announce "SOMEBODY STOP "+strcharinfo(0)+"!!",bc_all;
getitem 14232, 1;
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 noreturn
quiz_02 mapflag nogo
guild_vs5 mapflag nowarp
guild_vs5 mapflag nowarpto
guild_vs5 mapflag noteleport
guild_vs5 mapflag nosave
guild_vs5 mapflag nomemo
guild_vs5 mapflag noreturn
guild_vs5 mapflag nopenalty
guild_vs5 mapflag nogo
guild_vs5 mapflag nodrop
guild_vs5 mapflag nocommand 98
guild_vs5 mapflag nochat
guild_vs5 mapflag novending
guild_vs5 mapflag notrade
guild_vs5 mapflag nobranch
guild_vs5 mapflag pvp_noparty
guild_vs5 mapflag pvp_noguild
Hi.. above is my script of LMS.. I'm wondering why my npc doesn't automatically trigger 7days a week? if i make a @reloadscript.. it only triggers every hour per day.. but doesn't continue up to 7days a week not even 2 days per week.. please help me guys.. thank you all..
Edited by Mysterious Please use [codebox] for long content.
Question
creeps123
Hi.. above is my script of LMS.. I'm wondering why my npc doesn't automatically trigger 7days a week? if i make a @reloadscript.. it only triggers every hour per day.. but doesn't continue up to 7days a week not even 2 days per week.. please help me guys.. thank you all..
Edited by MysteriousPlease use [codebox] for long content.
Link to comment
Share on other sites
7 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.