Jump to content
  • 0

how to fix this RFYL script


secondL

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   1
  • Joined:  02/03/13
  • Last Seen:  

i have a script of RFYL its has no error in server but when the time for rfyl it also announce but the problem is they announce to go @go event im warping only at the center of prontera but the countdown still continue, im waiting also if there's a warp to enter the event but there's no warp come

 

here is my script:

 

-	script	announce_nvz	-1,{
OnClock0010:
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 ( 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

i hope someone can fix this problem...thank you

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

for

 

 

if (sex == 1) {
announce "In 'Novice Vs. Zombie', " + strcharinfo (0) + " has won! Let's congratulate him!",0;
}
else {
announce "In 'Novice Vs. Zombie'" + strcharinfo (0) + " has won! Let's congratulate her!",0;
};
 
 

 

 

 

why not use

 

 

announce "In 'Novice Vs. Zombie'" + strcharinfo (0) + " has won! Let's congratulate "+((sex == 1)?"him":"her")+"!",0;
 
Edited by Stolao
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Try this;

-	script	announce_nvz	-1,{

OnMinute05:
if(agitcheck() == 1) end;


announce "The Novice Vs. Zombie Event will begin in 3 minutes.",0;
killmonsterall "quiz_01";
sleep 5000;
announce "The NPC 'Novice vs. Zombie' has appeared in Prontera!",0;
enablenpc "Novice vs. Zombie";
sleep 55000;
announce "Event: Novice Vs. Zombie will begin in 2 minutes. You better get ready!",0;
sleep 60000;
announce "Event: Novice Vs. Zombie will begin in 1 minute!",0;
sleep 30000;
mapannounce "quiz_01","In 30 seconds the monster will appear!",0;
sleep 25000;
announce "Event: Novice Vs. Zombie 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: 'Novice Vs. Zombie' has begun!!",0,0x00FF00;
monster "quiz_01",42,369,"Zombie",1036,4;
disablenpc "Novice vs. Zombie";
sleep 10000;
monster "quiz_01",42,369,"Zombie-2",1036,10;
sleep 10000;
monster "quiz_01",42,369,"Zombie-3",1036,10;
sleep 10000;
monster "quiz_01",42,369,"Zombie-4",1036,10;
initnpctimer;
end;

OnTimer5000:
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01";
announce "'Novice Vs. Zombie' has ended. All of the Zombies are gone.",0;
disablenpc "Prize";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
if ($@NvZCounter >= 5){
    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 $@NvZCounter,$@NvZCounter+1;
initnpctimer;
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 have lost...";
}
sleep2 1000;
if ( .@mapnvz$ == "quiz_01" && getmapusers("quiz_01") == 1 ) {
killmonsterall "quiz_01";
mapannounce "quiz_01","You have won, please approach to Prize NPC.",0;
enablenpc "Prize";
set $@NvZCounter,0;
stopnpctimer;
end;
}
end;
}

quiz_01,42,369,3	script	Prize	72,{
if (sex == 1) {
announce "In 'Novice Vs. Zombie', " + strcharinfo (0) + " has won! Let's congratulate him!",0;
}
else {
announce "In 'Novice Vs. Zombie'" + strcharinfo (0) + " has won! Let's congratulate her!",0;
};
getitem 675,1;
warp "prontera",156,223;
sleep2 250;
disablenpc "Prize";
end;
}

prontera,155,170,3	script	Novice vs. Zombie	1015,{
if (BaseLevel > 1) goto L_No;
if (class == 0) goto L_event;
if (class > 0) goto L_No;
L_event:
sc_end SC_ALL;
sc_start SC_DECREASEAGI,300000,10;
percentheal 100,100;
atcommand "@storeall";
warp "quiz_01",42,369;
close;

L_No:
mes "[^0000FFNovice Vs. Zombie^000000]";
mes "Brains!!!!!!! D=<";
mes "^696969You are not a level 1 novice! Cheater!^000000";
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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   1
  • Joined:  02/03/13
  • Last Seen:  

Try this;

-	script	announce_nvz	-1,{

OnMinute05:
if(agitcheck() == 1) end;


announce "The Novice Vs. Zombie Event will begin in 3 minutes.",0;
killmonsterall "quiz_01";
sleep 5000;
announce "The NPC 'Novice vs. Zombie' has appeared in Prontera!",0;
enablenpc "Novice vs. Zombie";
sleep 55000;
announce "Event: Novice Vs. Zombie will begin in 2 minutes. You better get ready!",0;
sleep 60000;
announce "Event: Novice Vs. Zombie will begin in 1 minute!",0;
sleep 30000;
mapannounce "quiz_01","In 30 seconds the monster will appear!",0;
sleep 25000;
announce "Event: Novice Vs. Zombie 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: 'Novice Vs. Zombie' has begun!!",0,0x00FF00;
monster "quiz_01",42,369,"Zombie",1036,4;
disablenpc "Novice vs. Zombie";
sleep 10000;
monster "quiz_01",42,369,"Zombie-2",1036,10;
sleep 10000;
monster "quiz_01",42,369,"Zombie-3",1036,10;
sleep 10000;
monster "quiz_01",42,369,"Zombie-4",1036,10;
initnpctimer;
end;

OnTimer5000:
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01";
announce "'Novice Vs. Zombie' has ended. All of the Zombies are gone.",0;
disablenpc "Prize";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
if ($@NvZCounter >= 5){
    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 $@NvZCounter,$@NvZCounter+1;
initnpctimer;
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 have lost...";
}
sleep2 1000;
if ( .@mapnvz$ == "quiz_01" && getmapusers("quiz_01") == 1 ) {
killmonsterall "quiz_01";
mapannounce "quiz_01","You have won, please approach to Prize NPC.",0;
enablenpc "Prize";
set $@NvZCounter,0;
stopnpctimer;
end;
}
end;
}

quiz_01,42,369,3	script	Prize	72,{
if (sex == 1) {
announce "In 'Novice Vs. Zombie', " + strcharinfo (0) + " has won! Let's congratulate him!",0;
}
else {
announce "In 'Novice Vs. Zombie'" + strcharinfo (0) + " has won! Let's congratulate her!",0;
};
getitem 675,1;
warp "prontera",156,223;
sleep2 250;
disablenpc "Prize";
end;
}

prontera,155,170,3	script	Novice vs. Zombie	1015,{
if (BaseLevel > 1) goto L_No;
if (class == 0) goto L_event;
if (class > 0) goto L_No;
L_event:
sc_end SC_ALL;
sc_start SC_DECREASEAGI,300000,10;
percentheal 100,100;
atcommand "@storeall";
warp "quiz_01",42,369;
close;

L_No:
mes "[^0000FFNovice Vs. Zombie^000000]";
mes "Brains!!!!!!! D=<";
mes "^696969You are not a level 1 novice! Cheater!^000000";
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

ok i will try this dude

its works but to play this game you must only a level 1...can be play this with high level also i mean without any restrict level?

Edited by secondL
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   1
  • Joined:  02/03/13
  • Last Seen:  

for

 

 

if (sex == 1) {
announce "In 'Novice Vs. Zombie', " + strcharinfo (0) + " has won! Let's congratulate him!",0;
}
else {
announce "In 'Novice Vs. Zombie'" + strcharinfo (0) + " has won! Let's congratulate her!",0;
};
 
 

 

 

 

why not use

 

 

announce "In 'Novice Vs. Zombie'" + strcharinfo (0) + " has won! Let's congratulate "+((sex == 1)?"him":"her")+"!",0;
 

i dont know to be honest its new for me this RFYL game anyway i will try to change that part thank you

1 more thing i played this game with 1 player only nothing has joined...but it still continued multiplying the zombie until i died and no prize was given to me...but if you play this with other players it works great

Edited by secondL
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   1
  • Joined:  02/03/13
  • Last Seen:  

SOLVED

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