Spawn within a radius

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
L2Imprada
Posts: 42
Joined: Tue Nov 03, 2009 9:54 am

Spawn within a radius

Post by L2Imprada »

Dear ppl,

is it possible to get the spawn within a radius of * by putting just a radius after the coords.

For example, this is my spawn point:

Code: Select all

<position owner="All" x="16323" y="213139" z="-9354" radius="1200" />
Will that make people spawn within a radius of 1200 or does it need any modifications inside?

Thanks,
L2Imprada
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Spawn within a radius

Post by jurchiks »

You can't just add a random attribute to the XML and expect the code to know what it means and what it should do.
Where is this position element located in the first place?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
dEvilKinG
Posts: 15
Joined: Wed Oct 12, 2011 2:37 pm

Re: Spawn within a radius

Post by dEvilKinG »

It needs to be coded in core, make it recognize obstacles,walls,rocks min max Z. It's not that simple to do.

Hint: use pathfinding to make it work.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Spawn within a radius

Post by Zoey76 »

Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Post Reply