Jump to content
  • 0

opened pvp party only on night


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

hello guys

here my pvp script

http://pastebin.com/eDhxFF9r

 

its posibble to make opened pvp party only around 8 PM - 11 PM

thats mean pvp solo and 1 vs 1 will closed if 8 PM - 11PM

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   27
  • Joined:  12/05/13
  • Last Seen:  

its posibble to make opened pvp party only around 8 PM - 11 PM

thats mean pvp solo and 1 vs 1 will closed if 8 PM - 11PM

 

Use the OnClock<time>, label and then set an npc-only variable to disable access to the said rooms.

 

Sample:

OnClock2000:
	set .partyonly,1;
	announce "1v1 and No Party PvP rooms have been closed.",bc_all;
	end; 
OnClock2300:
	set .partyonly,0;
	announce "1v1 and No-Party PvP rooms are now open.",bc_all;
	end;

Then, add an if statement:

switch( select( "PVP No Party ["+getmapusers("guild_vs3")+"]",
								"PVP Normal ["+getmapusers("Party_PvP")+"]",
								"PVP 1 vs 1 ["+getmapusers("1vs1_PvP")+"]" ) ){
		Case 1:
				if(.partyonly) { mes "This PvP room is currently closed. Please comeback later."; close; }
				warp "guild_vs3",0,0;
				break;
		Case 2:
				warp "Party_PvP",0,0;
				break;
		Case 3:
				if(.partyonly) { mes "This PvP room is currently closed. Please comeback later."; close; }
				if( getmapusers("1vs1_PvP") > 1 ){
						mes "Room Full";
				}else{
						warp "1vs1_PvP",40,34;
				}
				break;
		}
close;

You can also disable the rooms by making the menu as a variable instead, then change its value with the OnClock label. I haven't tested that yet though. :)

  • Upvote 1
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...