Job Class Restrictions during WoE

Aegiskore

New member
Messages
12
Points
0
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!!

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

 
thanks.. i will try it.  
default_smile.png


EDIT:

make it like this.. works fine, thanks

Code:
-	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 
 
Last edited by a moderator:
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!

 
Back
Top