Jump to content
  • 0

Auto Kick GM When WoE Time


Green

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  04/28/13
  • Last Seen:  

anyone has a script Auto Kick GM When WoE Time ..compatible w/ eathena

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  04/28/13
  • Last Seen:  

BuDots  your Script is not Working

Link to comment
Share on other sites


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

BuDots  your Script is not Working

Any error?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  04/28/13
  • Last Seen:  

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
Link to comment
Share on other sites


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

if ( getgmlevel() && ( agitcheck() || agitcheck2() ) ) {

to :

if ( getgmlevel() >= 60 && ( agitcheck() || agitcheck2() ) ) {
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  04/28/13
  • Last Seen:  

my lvl 99 GM account Still kick

i already set the GM lvl 40

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

Edited by Green
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  04/28/13
  • Last Seen:  

yes ..thx it works ...thx Annie and Patskie ... 

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