Page 1 of 1

Trade Zone

Posted: Sun Dec 06, 2009 4:40 pm
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

Re: Trade Zone

Posted: Sun Dec 06, 2009 4:46 pm
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

Re: Trade Zone

Posted: Sun Dec 06, 2009 9:19 pm
by _DS_
Search old forum, you will find samples of no-store zones.