Aegiskore 0 Posted May 28, 2014 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 Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted May 28, 2014 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. Quote Share this post Link to post Share on other sites
0 Aegiskore 0 Posted May 29, 2014 (edited) 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 May 29, 2014 by Freezer Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted May 29, 2014 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! Quote Share this post Link to post Share on other sites
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!!
Share this post
Link to post
Share on other sites