Jump to content
  • 0

help monster not spawn in LFUL


Question

Posted

i applied the script and it works the only problem is that it doenst spawn the monster. how to fix this? thanks

-	script	announce_RFYL	-1,{

//Event Start Time

OnClock0630:	//6am
OnClock0930:	//9am
OnClock1230:	//12pm noon
OnClock1530:	//3pm noon
OnClock1830:	//6pm
OnClock2130:	//9pm
OnClock0030:	//12pm midnight

announce "The Run For Your Life Event will begin in 3 Minutes.",0;
killmonsterall "quiz_01";
sleep 5000;
announce "The Run For Your Life NPC has appeared in Prontera!",0;
enablenpc "RFYL Warper";
sleep 55000;
announce "Event GM: Run For Your life will begin in 2 minutes.You better get ready!",0;
sleep 60000;
announce "Event GM: Run For Your Life will begin in 1 minute!",0;
sleep 30000;
mapannounce "quiz_01","In 30 seconds the monster will appear!",0;
sleep 25000;
announce "Event GM:Run For Your life Event will begin in ~5~",0;
sleep 1000;
announce "~4~",0;
sleep 1000;
announce "~3~",0;
sleep 1000;
announce "~2~",0;
sleep 1000;
announce "~1~",0;
sleep 1000;
announce "Event GM: Run For Your Life Event Has begun!!",0;
monster "quiz_01",42,369,"Agav",2500,1;
disablenpc "RFYL Warper";
sleep 10000;
monster "quiz_01",42,369,"Agav-2",2500,1;
sleep 10000;
monster "quiz_01",42,369,"Agav-3",2500,1;
sleep 10000;
monster "quiz_01",42,369,"Agav-4",2500,1;
sleep 10000;
monster "quiz_01",42,369,"Agav-5",2500,1;
initnpctimer;
end;

OnTimer5000:
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01";
announce "Run For Your Life Event has ended.All the monsters are gone.",0;
disablenpc "Prize";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
if ($@RFYLCounter >= 3){
    switch(rand(0,2)){
        case 0: mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00; break;
        case 1: mapannounce "quiz_01",getmapusers("quiz_01") +" players are STILL alive? Are you sure you're not cheating?",0,0x00FF00; break;
        case 2: mapannounce "quiz_01",getmapusers("quiz_01") +" players are STILL ALIVE? Seriously, I'm gonna have to report you.",0,0x00FF00; break;
        }
} else {
    mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00;
}
sleep 10000;
set $@RFYLCounter,$@RFYLCounter+1;
initnpctimer;
end;
}
initnpctimer;
end;

OnPCDieEvent:
getmapxy .@maprfyl$,.@xrfyl,.@yrfyl,0;
if ( .@maprfyl$ == "quiz_01") {
sleep2 1;
warp "prontera",156,223;
atcommand "@alive "+ strcharinfo(0);
dispbottom "You have lost...";
}
sleep2 1000;
if ( .@maprfyl$ == "quiz_01" && getmapusers("quiz_01") == 1 ) {
killmonsterall "quiz_01";
mapannounce "quiz_01","You have won, please approach to Prize NPC.",0;
enablenpc "Prize";
set $@RFYLCounter,0;
stopnpctimer;
end;
}
end;
}

quiz_01,42,369,3	script	Prize	72,{
announce "Hey "+strcharinfo(0)+" has won in Run For Your Life Event Congrats!",0;
getitem 7227,10;
warp "prontera",156,223;
sleep2 250;
disablenpc "Prize";
end;
}

prontera,156,168,3	script	RFYL Warper	84,{
mes "[^0000FFRFYL Warper^000000]";
mes "Hi "+strcharinfo(0)+"";
mes "^696969Do you wish to participate in the Run For Your Life Event?^000000";
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 "[^0000FFRFYL Warper^000000]";
mes "Brains brainnnss.. brains? Mind.";
mes "^696969It's really fun! Come join us when you change your mind.^000000";
close;
}
OnInit:
disablenpc "RFYL Warper";
disablenpc "Prize";
end;
}

 

4 answers to this question

Recommended Posts

  • 0
Posted
35 minutes ago, BugSICK said:

i applied the script and it works the only problem is that it doenst spawn the monster. how to fix this? thanks


-	script	announce_RFYL	-1,{

//Event Start Time

OnClock0630:	//6am
OnClock0930:	//9am
OnClock1230:	//12pm noon
OnClock1530:	//3pm noon
OnClock1830:	//6pm
OnClock2130:	//9pm
OnClock0030:	//12pm midnight

announce "The Run For Your Life Event will begin in 3 Minutes.",0;
killmonsterall "quiz_01";
sleep 5000;
announce "The Run For Your Life NPC has appeared in Prontera!",0;
enablenpc "RFYL Warper";
sleep 55000;
announce "Event GM: Run For Your life will begin in 2 minutes.You better get ready!",0;
sleep 60000;
announce "Event GM: Run For Your Life will begin in 1 minute!",0;
sleep 30000;
mapannounce "quiz_01","In 30 seconds the monster will appear!",0;
sleep 25000;
announce "Event GM:Run For Your life Event will begin in ~5~",0;
sleep 1000;
announce "~4~",0;
sleep 1000;
announce "~3~",0;
sleep 1000;
announce "~2~",0;
sleep 1000;
announce "~1~",0;
sleep 1000;
announce "Event GM: Run For Your Life Event Has begun!!",0;
monster "quiz_01",42,369,"Agav",2500,1;
disablenpc "RFYL Warper";
sleep 10000;
monster "quiz_01",42,369,"Agav-2",2500,1;
sleep 10000;
monster "quiz_01",42,369,"Agav-3",2500,1;
sleep 10000;
monster "quiz_01",42,369,"Agav-4",2500,1;
sleep 10000;
monster "quiz_01",42,369,"Agav-5",2500,1;
initnpctimer;
end;

OnTimer5000:
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01";
announce "Run For Your Life Event has ended.All the monsters are gone.",0;
disablenpc "Prize";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
if ($@RFYLCounter >= 3){
    switch(rand(0,2)){
        case 0: mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00; break;
        case 1: mapannounce "quiz_01",getmapusers("quiz_01") +" players are STILL alive? Are you sure you're not cheating?",0,0x00FF00; break;
        case 2: mapannounce "quiz_01",getmapusers("quiz_01") +" players are STILL ALIVE? Seriously, I'm gonna have to report you.",0,0x00FF00; break;
        }
} else {
    mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00;
}
sleep 10000;
set $@RFYLCounter,$@RFYLCounter+1;
initnpctimer;
end;
}
initnpctimer;
end;

OnPCDieEvent:
getmapxy .@maprfyl$,.@xrfyl,.@yrfyl,0;
if ( .@maprfyl$ == "quiz_01") {
sleep2 1;
warp "prontera",156,223;
atcommand "@alive "+ strcharinfo(0);
dispbottom "You have lost...";
}
sleep2 1000;
if ( .@maprfyl$ == "quiz_01" && getmapusers("quiz_01") == 1 ) {
killmonsterall "quiz_01";
mapannounce "quiz_01","You have won, please approach to Prize NPC.",0;
enablenpc "Prize";
set $@RFYLCounter,0;
stopnpctimer;
end;
}
end;
}

quiz_01,42,369,3	script	Prize	72,{
announce "Hey "+strcharinfo(0)+" has won in Run For Your Life Event Congrats!",0;
getitem 7227,10;
warp "prontera",156,223;
sleep2 250;
disablenpc "Prize";
end;
}

prontera,156,168,3	script	RFYL Warper	84,{
mes "[^0000FFRFYL Warper^000000]";
mes "Hi "+strcharinfo(0)+"";
mes "^696969Do you wish to participate in the Run For Your Life Event?^000000";
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 "[^0000FFRFYL Warper^000000]";
mes "Brains brainnnss.. brains? Mind.";
mes "^696969It's really fun! Come join us when you change your mind.^000000";
close;
}
OnInit:
disablenpc "RFYL Warper";
disablenpc "Prize";
end;
}

 

remove " " for map event

-	script	announce_RFYL	-1,{

//Event Start Time

OnClock0630:	//6am
OnClock0930:	//9am
OnClock1230:	//12pm noon
OnClock1530:	//3pm noon
OnClock1830:	//6pm
OnClock2130:	//9pm
OnClock0030:	//12pm midnight

announce "The Run For Your Life Event will begin in 3 Minutes.",0;
killmonsterall "quiz_01";
sleep 5000;
announce "The Run For Your Life NPC has appeared in Prontera!",0;
enablenpc "RFYL Warper";
sleep 55000;
announce "Event GM: Run For Your life will begin in 2 minutes.You better get ready!",0;
sleep 60000;
announce "Event GM: Run For Your Life will begin in 1 minute!",0;
sleep 30000;
mapannounce "quiz_01","In 30 seconds the monster will appear!",0;
sleep 25000;
announce "Event GM:Run For Your life Event will begin in ~5~",0;
sleep 1000;
announce "~4~",0;
sleep 1000;
announce "~3~",0;
sleep 1000;
announce "~2~",0;
sleep 1000;
announce "~1~",0;
sleep 1000;
announce "Event GM: Run For Your Life Event Has begun!!",0;
monster quiz_01,42,369,"Agav",2500,1;
disablenpc "RFYL Warper";
sleep 10000;
monster quiz_01,42,369,"Agav-2",2500,1;
sleep 10000;
monster quiz_01,42,369,"Agav-3",2500,1;
sleep 10000;
monster quiz_01,42,369,"Agav-4",2500,1;
sleep 10000;
monster quiz_01,42,369,"Agav-5",2500,1;
initnpctimer;
end;

OnTimer5000:
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01";
announce "Run For Your Life Event has ended.All the monsters are gone.",0;
disablenpc "Prize";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
if ($@RFYLCounter >= 3){
    switch(rand(0,2)){
        case 0: mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00; break;
        case 1: mapannounce "quiz_01",getmapusers("quiz_01") +" players are STILL alive? Are you sure you're not cheating?",0,0x00FF00; break;
        case 2: mapannounce "quiz_01",getmapusers("quiz_01") +" players are STILL ALIVE? Seriously, I'm gonna have to report you.",0,0x00FF00; break;
        }
} else {
    mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00;
}
sleep 10000;
set $@RFYLCounter,$@RFYLCounter+1;
initnpctimer;
end;
}
initnpctimer;
end;

OnPCDieEvent:
getmapxy .@maprfyl$,.@xrfyl,.@yrfyl,0;
if ( .@maprfyl$ == "quiz_01") {
sleep2 1;
warp "prontera",156,223;
atcommand "@alive "+ strcharinfo(0);
dispbottom "You have lost...";
}
sleep2 1000;
if ( .@maprfyl$ == "quiz_01" && getmapusers("quiz_01") == 1 ) {
killmonsterall "quiz_01";
mapannounce "quiz_01","You have won, please approach to Prize NPC.",0;
enablenpc "Prize";
set $@RFYLCounter,0;
stopnpctimer;
end;
}
end;
}

quiz_01,42,369,3	script	Prize	72,{
announce "Hey "+strcharinfo(0)+" has won in Run For Your Life Event Congrats!",0;
getitem 7227,10;
warp "prontera",156,223;
sleep2 250;
disablenpc "Prize";
end;
}

prontera,156,168,3	script	RFYL Warper	84,{
mes "[^0000FFRFYL Warper^000000]";
mes "Hi "+strcharinfo(0)+"";
mes "^696969Do you wish to participate in the Run For Your Life Event?^000000";
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 "[^0000FFRFYL Warper^000000]";
mes "Brains brainnnss.. brains? Mind.";
mes "^696969It's really fun! Come join us when you change your mind.^000000";
close;
}
OnInit:
disablenpc "RFYL Warper";
disablenpc "Prize";
end;
}

 

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