Jump to content
  • 0

a script during WOE


jobbyray25

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/15/13
  • Last Seen:  

can i request a script that a GM will automatically disconnect during WOE time, or they cannot login because im not on my server every WOE time and i saw that some of my GM uses there GM powers during WOE, please help me with this

 

i saw it at the CPANEL

Link to comment
Share on other sites

22 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

-	script	WOE_BLOCK	-1,{

OnPCLoginEvent:

// When a GM logs in during WOE, kick them.

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

atcommand "@kick "+strcharinfo(0);

end;

OnAgitStart:

OnAgitStart2:

// When WOE starts, kick all GMs.

addrid(0);

if (getgmlevel())

atcommand "@kick "+strcharinfo(0);

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/15/13
  • Last Seen:  

wow thank you so much EUPHY this is what i need, ill try this later when i got home

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

Where do u set the level of the gms?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

or you could try to use the script that prevents GM entering the castle when WOE.

i forgot the script name, its something like job resctriction, 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  270
  • Reputation:   20
  • Joined:  12/10/11
  • Last Seen:  

Where do u set the level of the gms?

 

Edit this line with 

 

if (getgmlevel())
 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

Where do u set the level of the gms?

 

Edit this line with 

 

if (getgmlevel())
 

How ? example

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   5
  • Joined:  05/30/12
  • Last Seen:  

 

Where do u set the level of the gms?

 

Edit this line with 

 

if (getgmlevel())

 

How ? example

 

 

 

-	script	WOE_BLOCK	-1,{
OnPCLoginEvent:
	// When a GM logs in during WOE, kick them.
	if ((agitcheck() || agitcheck2()) && getgmlevel())
		atcommand "@kick "+strcharinfo(0);
	end;
OnAgitStart:
OnAgitStart2:
	// When WOE starts, kick all GMs.
	addrid(0);
	if (getgmlevel(60))
		atcommand "@kick "+strcharinfo(0);
	end;
}
Edited by Myth
Link to comment
Share on other sites


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

if( getgmlevel() >= 60 )

affect GM with level 60 or above..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

What does >60 mean, gm below 60

 

 

 

Where do u set the level of the gms?

 

Edit this line with 

 

if (getgmlevel())
 

How ? example

 

 

 

-	script	WOE_BLOCK	-1,{
OnPCLoginEvent:
	// When a GM logs in during WOE, kick them.
	if ((agitcheck() || agitcheck2()) && getgmlevel())
		atcommand "@kick "+strcharinfo(0);
	end;
OnAgitStart:
OnAgitStart2:
	// When WOE starts, kick all GMs.
	addrid(0);
	if (getgmlevel(60))
		atcommand "@kick "+strcharinfo(0);
	end;
}

 

 

if( getgmlevel() >= 60 )

affect GM with level 60 or above..

What does >60 mean is it, all the GM below lvl 60 will get disconnected?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

@Myth

if (getgmlevel(60))

Wrong syntax, getgmlevel doesn't support any arguments for now

 

 

What does >60 mean is it, all the GM below lvl 60 will get disconnected?

No, all gm lvl above 60 will be kicked.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/15/13
  • Last Seen:  

or just a script that any GM cannot enter any agit

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Yeah

-	script	WOE_BLOCK	-1,{
OnAgitStart:
OnAgitStart2:
	// When WOE starts, kick all GMs.
	addrid(0);

OnPCLoadMapEvent:
	if ( getgmlevel() > 60 && ( agitcheck() || agitcheck2() ) && compare( strcharinfo(3),"g_cas0" ) ) {
		dispbottom "You can't warp in a castle during woe.";
		warp "prontera",0,0;
	}
	end;
}
aldeg_cas01	mapflag	loadevent
aldeg_cas02	mapflag	loadevent
aldeg_cas03	mapflag	loadevent
// etc... add your castle map

warp the gm above 60 to prontera of they try to enter in a castle

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/15/13
  • Last Seen:  

@capuche is that all GM?? even lv99 or 100 gm cnt enter either

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

It warp all GM with a level above 60.

 

In the last script, don't forget to add the mapflag for your castle map

aldeg_cas03	mapflag	loadevent
// etc... add your castle map
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/15/13
  • Last Seen:  

i want all gm lvl's cant enter the castle because in my server we are 2 lvl 99 gm and lv 80 and 2 police 2 event gm so please as much as possible all gm's cant enter

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

i want all gm lvl's cant enter the castle because in my server we are 2 lvl 99 gm and lv 80 and 2 police 2 event gm so please as much as possible all gm's cant enter

Replace the line

if ( getgmlevel() > 60 && ( agitcheck() || agitcheck2() ) && compare( strcharinfo(3),"g_cas0" ) ) {

by

if ( getgmlevel() > 0 && ( agitcheck() || agitcheck2() ) && compare( strcharinfo(3),"g_cas0" ) ) {
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/15/13
  • Last Seen:  

tnx capuche
 

y the script its not working still i can enter the castle

-    script    WOE_BLOCK    -1,{
OnAgitStart:
OnAgitStart2:
    // When WOE starts, kick all GMs.
    addrid(0);
OnPCLoadMapEvent:
    if ( getgmlevel() > 0 && ( agitcheck() || agitcheck2() ) && compare( strcharinfo(3),"g_cas0" ) ) {
        dispbottom "You can't warp in a castle during woe.";
        warp "prontera",0,0;
    }
    end;
}
aldeg_cas01    mapflag    loadevent
aldeg_cas02    mapflag    loadevent
aldeg_cas03    mapflag    loadevent
aldeg_cas04    mapflag    loadevent
aldeg_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
gefg_cas01    mapflag    loadevent
gefg_cas02    mapflag    loadevent
gefg_cas03    mapflag    loadevent
gefg_cas04    mapflag    loadevent
gefg_cas05    mapflag    loadevent
Edited by Capuche
Thanks to use BBCode
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/15/13
  • Last Seen:  

Reply anyone its not working

 

-	script	WOE_BLOCK	-1,{
OnAgitStart:
OnAgitStart2:
	// When WOE starts, kick all GMs.
	addrid(0);

OnPCLoadMapEvent:
	if ( getgmlevel() > 0 && ( agitcheck() || agitcheck2() ) && compare( strcharinfo(3),"g_cas0" ) ) {
		dispbottom "You can't warp in a castle during woe.";
		warp "prontera",0,0;
	}
	end;
)

aldeg_cas01    mapflag    loadevent
aldeg_cas02    mapflag    loadevent
aldeg_cas03    mapflag    loadevent
aldeg_cas04    mapflag    loadevent
aldeg_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
gefg_cas01    mapflag    loadevent
gefg_cas02    mapflag    loadevent
gefg_cas03    mapflag    loadevent
gefg_cas04    mapflag    loadevent
gefg_cas05    mapflag    loadevent
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

In your last reply there is a typo

OnPCLoadMapEvent:
	if ( getgmlevel() > 0 && ( agitcheck() || agitcheck2() ) && compare( strcharinfo(3),"g_cas0" ) ) {
		dispbottom "You can't warp in a castle during woe.";
		warp "prontera",0,0;
	}
	end;
)// <------- must be }

 

This script is working on my test server. What is your emulator? the version? do you have any errors on your console?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/15/13
  • Last Seen:  

In your last reply there is a typo

OnPCLoadMapEvent:
	if ( getgmlevel() > 0 && ( agitcheck() || agitcheck2() ) && compare( strcharinfo(3),"g_cas0" ) ) {
		dispbottom "You can't warp in a castle during woe.";
		warp "prontera",0,0;
	}
	end;
)// <------- must be }

 

This script is working on my test server. What is your emulator? the version? do you have any errors on your console?

its telling error in line 3

i fix the error now in line 3 its showing 

 

Missing 1 right curlys at file " ,,,,,,, " in line 34

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


- script WOE_BLOCK -1,{

OnAgitStart:

OnAgitStart2:

// When WOE starts, kick all GMs.

addrid(0);

OnPCLoadMapEvent:

if ( getgmlevel() > 60 && ( agitcheck() || agitcheck2() ) && compare( strcharinfo(3),"g_cas0" ) ) {

dispbottom "You can't warp in a castle during woe.";

warp "prontera",0,0;

}

end;

}

aldeg_cas01 mapflag loadevent

aldeg_cas02 mapflag loadevent

aldeg_cas03 mapflag loadevent

aldeg_cas04 mapflag loadevent

aldeg_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

gefg_cas01 mapflag loadevent

gefg_cas02 mapflag loadevent

gefg_cas03 mapflag loadevent

gefg_cas04 mapflag loadevent

gefg_cas05 mapflag loadevent

  1. Try this version

Post a screenshot of your mapserv error (if you have one)

Tell us what is your emulator (rathena?) and the version. For example addrid is a new command in rathena, other emu and old version doesn't support this script.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/15/13
  • Last Seen:  

i will try this later when i got home, because now im at work

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