Jump to content
  • 0

RFYL Event


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

when the novice will enter his/her equiped items will be removed then there will be @storeall command..

 

-	script	announce_nvz	-1,{

// beginning Time

OnClock0130:
OnClock0830:
OnClock1330:
OnClock1730:
OnClock1930:
OnClock2230:


announce "Zombie Vs. Novice event Will begin in 3 minutes Please Make A Level 1 Novice Inorder To Join The Event",0;
killmonsterall "quiz_01";
sleep 5000;
announce "In Zhakastia has appeared npc ' Novice vs. Zombie '!",0;
enablenpc "Novice vs. Zombie";
sleep 55000;
announce "Event Zombie Vs. Novice will begin in 2 minutes Please Make A Level 1 Novice Inorder To Join The Event",0;
sleep 60000;
announce "Event Zombie Vs. Novice will begin in 1 minute Please Make A Level 1 Novice Inorder To Join The Event",0;
sleep 30000;
mapannounce "quiz_01","In 30 seconds the monster will be started!",0;
sleep 25000;
announce "Event Zombie Vs. Novice will begin through ~5~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin through ~4~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin through ~3~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin through ~2~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin through ~1~",0;
sleep 1000;
announce "Event 'Zombie Vs. Novice' has begun!!",0,0x00FF00;
monster "quiz_01",42,369,"Zombie",1015,1;
disablenpc "Novice vs. Zombie";
sleep 10000;
monster "quiz_01",42,369,"Zombie-2",1015,1;
sleep 10000;
monster "quiz_01",42,369,"Zombie-3",1015,1;
sleep 10000;
monster "quiz_01",42,369,"Zombie-4",1015,1;
initnpctimer;
end;

OnTimer5000: 
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01";
announce "'Zombie Vs. Novice' has ended with Event, as all have died",0;
disablenpc "Prize";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
mapannounce "quiz_01",getmapusers("quiz_01") +"the player still survive on Event.",0,0x00FF00;;
initnpctimer;
end;
}
initnpctimer;
end;

OnPCDieEvent:
getmapxy .@mapnvz$,.@xnvz,.@ynvz,0;
if ( .@mapnvz$ == "quiz_01") {
sleep2 1;
warp "zhakastia",97,58;
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, approach please to npc Prize.",0;
enablenpc "Prize";
stopnpctimer;
end;
}
end;
}

quiz_01,42,369,3	script	Prize	72,{
if (sex == 1) {
announce "In ' Zombie Vs. Novice ' has won" + strcharinfo (0) + "! We congratulate him!",0;
} 
else {
announce "In ' Zombie Vs. Novice ' has won" + strcharinfo (0) + "! We congratulate her!",0; 
};
getitem 671,10;
warp "zhakastia",97,58;
sleep2 250;
disablenpc "Prize";
end;
}

zhakastia,97,47,3	script	Novice vs. Zombie	1015,{
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 Event Zombie Vs. Novice?";
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 "It is good, come, when want.";
close;
break;
NO:
mes "[^0000FFZombie Vs. Novice^000000]";
mes "You not novice 1 level";
close;
}
OnInit:
disablenpc "Novice vs. Zombie";
disablenpc "Prize";
end;
}

 

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

nude;
atcommand "@storeall";
 

not really a suggestion for using @storeall since player can bypass it when their storage is full.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

Just add this command, it de-equips everything you have on you.

 

nude;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

nude;
atcommand "@storeall";
 

not really a suggestion for using @storeall since player can bypass it when their storage is full.

what is your other suggestion besides using @storeall

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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:  

 

nude;
atcommand "@storeall";
 

not really a suggestion for using @storeall since player can bypass it when their storage is full.

what is your other suggestion besides using @storeall

 

@storeall

mapflag nocommand

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

 

nude;
atcommand "@storeall";
 

not really a suggestion for using @storeall since player can bypass it when their storage is full.

what is your other suggestion besides using @storeall

ask them store the item themselve...

 

example..

add this to your warper.

getinventorylist;
if( @inventorylist_count ){
	mes "Please store all ur items.";
	close;
}	
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/01/13
  • Last Seen:  

when the novice will enter his/her equiped items will be removed then there will be @storeall command..

 

-	script	announce_nvz	-1,{

// beginning Time

OnClock0130:
OnClock0830:
OnClock1330:
OnClock1730:
OnClock1930:
OnClock2230:


announce "Zombie Vs. Novice event Will begin in 3 minutes Please Make A Level 1 Novice Inorder To Join The Event",0;
killmonsterall "quiz_01";
sleep 5000;
announce "In Zhakastia has appeared npc ' Novice vs. Zombie '!",0;
enablenpc "Novice vs. Zombie";
sleep 55000;
announce "Event Zombie Vs. Novice will begin in 2 minutes Please Make A Level 1 Novice Inorder To Join The Event",0;
sleep 60000;
announce "Event Zombie Vs. Novice will begin in 1 minute Please Make A Level 1 Novice Inorder To Join The Event",0;
sleep 30000;
mapannounce "quiz_01","In 30 seconds the monster will be started!",0;
sleep 25000;
announce "Event Zombie Vs. Novice will begin through ~5~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin through ~4~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin through ~3~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin through ~2~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin through ~1~",0;
sleep 1000;
announce "Event 'Zombie Vs. Novice' has begun!!",0,0x00FF00;
monster "quiz_01",42,369,"Zombie",1015,1;
disablenpc "Novice vs. Zombie";
sleep 10000;
monster "quiz_01",42,369,"Zombie-2",1015,1;
sleep 10000;
monster "quiz_01",42,369,"Zombie-3",1015,1;
sleep 10000;
monster "quiz_01",42,369,"Zombie-4",1015,1;
initnpctimer;
end;

OnTimer5000: 
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01";
announce "'Zombie Vs. Novice' has ended with Event, as all have died",0;
disablenpc "Prize";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
mapannounce "quiz_01",getmapusers("quiz_01") +"the player still survive on Event.",0,0x00FF00;;
initnpctimer;
end;
}
initnpctimer;
end;

OnPCDieEvent:
getmapxy .@mapnvz$,.@xnvz,.@ynvz,0;
if ( .@mapnvz$ == "quiz_01") {
sleep2 1;
warp "zhakastia",97,58;
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, approach please to npc Prize.",0;
enablenpc "Prize";
stopnpctimer;
end;
}
end;
}

quiz_01,42,369,3	script	Prize	72,{
if (sex == 1) {
announce "In ' Zombie Vs. Novice ' has won" + strcharinfo (0) + "! We congratulate him!",0;
} 
else {
announce "In ' Zombie Vs. Novice ' has won" + strcharinfo (0) + "! We congratulate her!",0; 
};
getitem 671,10;
warp "zhakastia",97,58;
sleep2 250;
disablenpc "Prize";
end;
}

zhakastia,97,47,3	script	Novice vs. Zombie	1015,{
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 Event Zombie Vs. Novice?";
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 "It is good, come, when want.";
close;
break;
NO:
mes "[^0000FFZombie Vs. Novice^000000]";
mes "You not novice 1 level";
close;
}
OnInit:
disablenpc "Novice vs. Zombie";
disablenpc "Prize";
end;
}

Hi glemor is that the full script can i copy it? =)

Thanks advance

bump is this a full working script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Hi glemor is that the full script can i copy it? =)

Thanks advance

bump is this a full working script?

 

I've fix some typos and use Emistry method in this script.

 

You just need to change the map, event starting time and prize.

 

nvz.txt

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