Trade Zone

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Zireaelrus
Posts: 1
Joined: Sun Dec 06, 2009 4:17 pm

Trade Zone

Post by Zireaelrus »

Help please create a region in which it is forbidden to use the commands / sell and / buy.

Use file zone.xml and zone_vertices.sql
Original code

Code: Select all

<zone id="11020" type="Town" shape="NPoly" minZ="-3800" maxZ="-3300"><stat name="name" val="Giran Castle Town"/><stat name="townId" val="9"/><stat name="redirectTownId" val="11"/><stat name="taxById" val="3"/><stat name="spawnX" val="81236"/><stat name="spawnY" val="148638"/><stat name="spawnZ" val="-3469"/></zone>
Changed to

Code: Select all

<zone id="11020" type="Town" shape="NPoly" minZ="-3800" maxZ="-3300"> <settings PrivateStore="false" /> <stat name="name" val="Giran Castle Town"/><stat name="townId" val="9"/><stat name="redirectTownId" val="11"/><stat name="taxById" val="3"/><stat name="PrivateStore" val="false"/><stat name="spawnX" val="81236"/><stat name="spawnY" val="148638"/><stat name="spawnZ" val="-3469"/></zone><zone id="11019" type="PeaceZone" shape="NPoly" minZ="-3800" maxZ="-3300"><settings PrivateStore="true" /> <stat name="name" val="Store Giran "/><stat name="PrivateStore" val="true"/></zone>

Code: Select all

<settings PrivateStore="false" /> <stat name="PrivateStore" val="false"/>
How to write a ban on trade do not know why he wrote the two options.
as described in the file zone_vertices.sql coordinates of the zone id = "11019.
sorry for my English
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Trade Zone

Post by janiii »

does it really belong here? client development?

if not, then answer is: a no store zone already exists. you have to just define it in zone.xml and set the type to "NoStoreZone" and set the coords in zone_vertices table.

//moved to support
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Trade Zone

Post by _DS_ »

Search old forum, you will find samples of no-store zones.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply