Jump to content
  • 0
Ukiram

No one can Enter WoE Maps during Normal Time

Question

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

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

 

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.