Jump to content
Sign in to follow this  

help Dimension Door limited range to teleport

Recommended Posts

Hi Community,

Newbie here trying to play around my offline server

I'm trying to change Dimension door to randomly teleport players to any available cell to lets say 15x15 range only

the idea is to get players to try to cross nearby walls or any obstruction within the area, monsters are ok to be warped map wide

			if( tsd && !map[bl->m].flag.noteleport )
			else if( bl->type == BL_MOB && battle_config.mob_warp&8 )

if i understood, pc_randomwarp(sd,clrtype) is the function for teleport so I need to change it into pc_setpos(sd,mapindex,x,y,clrtype)

The problem is im stuck setting the x y coordinates for random cell within a range, I tried scavenging for similar functions of other skills but still no luck on making it work 😞

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.