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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..