Jump to content
  • 0

No one can Enter WoE Maps during Normal Time


Question

Posted

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.

3 answers to this question

Recommended Posts

  • 0
Posted

-	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
  • 1
Posted
-	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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...