Jump to content
  • 0

Auto Kick GM When WoE Time


Question

9 answers to this question

Recommended Posts

Posted (edited)
if ( getgmlevel() >= 60 && ( agitcheck() || agitcheck2() ) ) {
should be opposite

if ( getgmlevel() >= 60 && getgmlevel() < 99 && ( agitcheck() || agitcheck2() ) ) {

full script

-	script	dkfdshfkjsd	-1,{
OnPCLoadMapEvent:
	if ( getmapflag( strcharinfo(3), mf_gvg_castle ) && getgmlevel() >= 60 && getgmlevel() < 99 && ( agitcheck() || agitcheck2() ) ) {
		message strcharinfo(0),"You are not allowed here";
		sleep2 2000;
		warp "SavePoint",0,0;
	}
	end;
}
aldeg_cas01	mapflag	loadevent
aldeg_cas02	mapflag	loadevent
aldeg_cas03	mapflag	loadevent
aldeg_cas04	mapflag	loadevent
aldeg_cas05	mapflag	loadevent
gefg_cas01	mapflag	loadevent
gefg_cas02	mapflag	loadevent
gefg_cas03	mapflag	loadevent
gefg_cas04	mapflag	loadevent
gefg_cas05	mapflag	loadevent
payg_cas01	mapflag	loadevent
payg_cas02	mapflag	loadevent
payg_cas03	mapflag	loadevent
payg_cas04	mapflag	loadevent
payg_cas05	mapflag	loadevent
prtg_cas01	mapflag	loadevent
prtg_cas02	mapflag	loadevent
prtg_cas03	mapflag	loadevent
prtg_cas04	mapflag	loadevent
prtg_cas05	mapflag	loadevent
schg_cas01	mapflag	loadevent
schg_cas02	mapflag	loadevent
schg_cas03	mapflag	loadevent
schg_cas04	mapflag	loadevent
schg_cas05	mapflag	loadevent
Edited by AnnieRuru
Posted

Try this;

-    script    GM Restriction    -1,{

OnInit:
// GM Level X and below will be Restricted
set .GMLevel,99;
// Map Names
setarray .MapList$[0],"sch_gld"; // Your WOE Map here

for( set .i,0; .i < getarraysize( .MapList$ ); set .i,.i + 1 )
    setmapflag .MapList$[.i],mf_loadevent;
end;

OnPCLoginEvent:
OnPCLoadMapEvent:
for( set .@i,0; .@i < getarraysize( .MapList$ ); set .@i,.@i + 1 )
    if( strcharinfo(3) == .MapList$[.@i] && getgmlevel() && getgmlevel() <= .GMLevel ){
        mes "GM are not allowed to stay here.";
        close2;
        warp "SavePoint",0,0;
        break;
    }
end;
}
Posted (edited)

Thx a Lot Idol Patskie .. may i know where i can edit the GM lvl . so my lvl 99 GM cant kick on castle?

Edited by Green
Translated
Posted (edited)

my lvl 99 GM account Still kick

i already set the GM lvl 40

if ( getgmlevel() >= 40 && ( agitcheck() || agitcheck2() ) ) {

Edited by Green

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