Jump to content
  • 0
Sign in to follow this  
Zssa

Area NoWarp

Question

Hello,

 

I would like to know if there's a way to attach a nowarp/nowarpto flag to a specific area of a map (eg. a 5x5 area you can't warp into, but can get there by NPC means), or a workaround that has a similar function. Essentially, I'm trying to create a 5x5 area with a 2-cell nowalk border around it. Setting up the area and border is easy, but the no-warp check within the 5x5 area is where I'm stumped on. I've read about the setcell command, but I'm not too sure if it's possible to attach any flag other than cell_* to it (can't check in my local server atm). My end solution is creating a small map (or assigning an existing one) with the nowarp flag, but I don't want to resort to it yet.

 

Cheers,

Zssa

Edited by Zssa

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

the simplest way for doing this is just modify the (warp) command

ACMD(mapmove) {...	if( sd->bl.m == m && sd->bl.x => 100 && sd->bl.x =< 150 && sd->bl.y => 100 && sd->bl.y =< 150 ) {		clif->message(fd, "You can't warp from this area");		return false;	}	if( !strcmp(map_name,"prontera") && x => 100 && x =< 150 && y => 100 && y =< 150 ) {		clif->message(fd, "You can't warp to this area");		return false;	}
didn't test Edited by AnnieRuru

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.