Jump to content
  • 0

[help] about cordinates


Question

Posted

hi all can someone explain how to get [minX maxX] [minY maxY] [minZ maxZ] of any zone?

 

i want to create random spawn in the center of the room so i need support of this thing if anyone can help please explain me how to do,

thanks everyone

2 answers to this question

Recommended Posts

  • 0
Posted

just log in game, use /loc to get locations of the points, later create zone from them :)

He asks how to create a random Location (x/y/z points) up from a zone.

 

There isn't such method on L2J, the most approaching is a method to find if a given point is on the zone (isInsideZone). You can use the system beyond it, added to numerous exemples found over Google, such as this one (for circle only) :

 

http://stackoverflow.com/questions/5837572/generate-a-random-point-within-a-circle-uniformly

 

To make your own method.

 

If you want to spawn an object you have to determinate the Z from the geodata, I fear. A random point inside the zone won't be enough on Z axis.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   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.



×
×
  • Create New...