R> Block Class Script

bachir

New member
Messages
19
Points
0
Age
31
Location
Algeria
Emulator
Hi guys  i want a script block kagerou & Oboro Class from Woe maps please
default_blush.png


 
which map ?

btw if it is prontera castle

change

prt_gld,240,124,0  warp  prtg-2_prtg-2  1,1,prtg_cas02,43,229into
Code:
function	script	block_kagerou_oboro	{	if ( Class == Job_Kagerou || Class == Job_Oboro ) {		mes "you can't join woe";		close;	}	warp getarg(0), getarg(1), getarg(2);	end;}prt_gld,240,124,0	script	prtg-2_prtg-2	WARPNPC,1,1,{ callfunc "block_kagerou_oboro", "prtg_cas02",43,229; }
so if you used 30 castles, you have to add this callfunc 30+ timesas there are some geffen castles has 2 or more entrance

 
Last edited by a moderator:
As large as of a strain it is on server, I'd advice to use loadmapevent better here, just to avoid recall thing. If you don't care for recall Annie's suggestion is way better.

Code:
-	script	deter_kagero_oboro	-1,{end;OnInit:	setarray .@WoEmaps[0],"prtg_cas01","aldeg_cas01";	.comp = ";" + implode(.@WoEmaps,";") + ";";end;OnPCLoadMapEvent:	if( !compare(.comp,";" + strcharinfo(PC_MAP) + ";") )		end;	if( Class == Job_Kagerou || Class == Job_Oboro ) {		dispbottom "You can't join woe on Kagerou/Oboro.";		warp "SavePoint",0,0;		close;	}	end;}
 
Last edited by a moderator:
OnPCLoadMapEvent is better if you want to block it from woe since they can recall the guild member using skill which bypass the woe portal.

@@Garr

your script will caused error when loaded since no char is attached to call the strcharinfo() script command.

beside it need loadevent mapflag to make it work.

 
Last edited by a moderator:
Right, forgot to end after OnInit >.<

And yeah, loadevent mapflag. I won't add it inside script, since I don't really know what maps OP wants, but thanks for mentioning
default_biggrin.png


 
Back
Top