Jump to content
  • 0
Sign in to follow this  
Aegiskore

Job Class Restrictions during WoE

Question

HI guys,

 

I got this script from Emistry and it worked very fine. restricting trans job in WoE Castle.

 

However, can we do like Trans class cannot enter the castle During WoE times only and during NoN woe they can enter the castle.

 

Appreciate your help on this, thanks!!

-	script	trans_restrict	-1,{OnPCLoadMapEvent:	if(strcharinfo(3)!="prtg_cas01") end;	if(Class>=4001 && Class<=4049 ){	mes "[ ^0000FF Castle Guardian's^000000  ]";	mes "Hello "+strcharinfo(0)+", ";	mes "You are not Allowed to Join this WOE.";	close2;	warp "Save",0,0;	}	end;}prtg_cas01	mapflag	loadevent 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hello.

 

You've got a script command that works just for that purpose: agitcheck()

 

*agitcheck()
*agitcheck2()
 
These function will let you check whether the server is currently in WoE
mode (or WoE SE mode if the second function is called) and will return 1
if War of Emperium is on and 0 if it isn't.

 

 

You've got to edit only 1 line to add it. Try yourself.

Share this post


Link to post
Share on other sites
  • 0

thanks.. i will try it.   :)

 

EDIT:

 

make it like this.. works fine, thanks

 

 

-	script	trans_restrict	-1,{OnPCLoadMapEvent:	if(strcharinfo(3)!="prtg_cas01") end;	if(Class>=4001 && Class<=4049 ) && ( agitcheck() || agitcheck2() ) {	mes "[ ^0000FF Castle Guardian's^000000  ]";	mes "Hello "+strcharinfo(0)+", ";	mes "You are now Allow to Join this WOE.";	close2;	warp "Save",0,0;	}	end;}prtg_cas01	mapflag	loadevent 

 

Edited by Freezer

Share this post


Link to post
Share on other sites
  • 0

You did great! However your comparison to get the status of WOE 2.0 (agitcheck2) since it checks for Yuno and Rachel castles, and you are restricting trans jobs from a WOE 1.0 castle.

 

I usually tend to encourage people do it themselves when it's a simple edit, glad you could do it!

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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