Jump to content
  • 0
Sign in to follow this  
bachir

R> Block Class Script

Question

4 answers to this question

Recommended Posts

  • 0

which map ?

 

btw if it is prontera castle

change

 

prt_gld,240,124,0    warp    prtg-2_prtg-2    1,1,prtg_cas02,43,229
into

 

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+ times

as there are some geffen castles has 2 or more entrance

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

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.

 

-	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;}
Edited by Garr

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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 :D

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.