Jump to content
  • 0

No one can Enter WoE Maps during Normal Time


Ukiram

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

Hi, How can I prevent players from Entering WoE maps if there's no WoE Schedule? Like, I want to prevent them to enter WoE Maps. I want that they can only enter WoE Maps if WoE is enabled.

PS: Sorry for my bad english, but hope you understood what i'm saying. Thank you in advance.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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


-	script	sample	-1,{
	OnInit:
		setarray .@map$, 
			"prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "prtg_cas05",
			"payg_cas01", "payg_cas02", "payg_cas03", "payg_cas04", "payg_cas05",
			"gefg_cas01", "gefg_cas02", "gefg_cas03", "gefg_cas04", "gefg_cas05",
			"aldeg_cas01", "aldeg_cas02", "aldeg_cas03", "aldeg_cas04", "aldeg_cas05",
		.@size = getarraysize(.@map$);
		while (.@i < .@size) {
			setmapflag .@map$[.@i], mf_loadevent;
			.@i++;
		}
		end;
		
	OnPCLoadMapEvent:
		if (getgmlevel() >= 99) end;
		if (getmapflag(strcharinfo(3), mf_gvg_castle)
			&& (agitcheck() || agitcheck2() || agitcheck3())
		) {
			warp "SavePoint",0,0;
		}
		end;
}

 

 

  • Love 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

-	script	qwerty	-1,{
	OnPCLoadMapEvent:
		if (getgmlevel() > 98) end;
		if (agitcheck() || agitcheck2() || agitcheck3()) {
			.@s$ = implode(.m$, ",");
			if (compare(.@s$, strcharinfo(3)))
				warp "SavePoint",0,0;
		}
		end;
	
	OnInit:
		setarray .m$[0], "prtg_cas01", "prtg_cas02", "prtg_cas03";
		.s = getarraysize(.m$);
		.@i = 0;
		while (.@i < .s) {
			setmapflag .m$[.@i], mf_loadevent;
			.@i++;
		}
		end;
}

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

Thank you @Emistry @Patskie You guys are the best! ❤️ 

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