HowToAddMapsServerStendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Chad3f
imported>Chad3f
Line 31: Line 31:
import games.stendhal.server.maps.ZoneConfigurator;
import games.stendhal.server.maps.ZoneConfigurator;


public class IL0_MyNPC implements ZoneConfigurator
public class IL0_MyEntity implements ZoneConfigurator
{
{
/**
/**
Line 45: Line 45:
</pre>
</pre>


To enable a zone in the server, edit the file "data/conf/zones.xml" and add an entry (in the appropriete top-down/left-right/level order), giving it the zone name and converted map filename to use:
To enable a zone in the server, edit the file '''data/conf/zones.xml''' and add an entry (in the appropriete top-down/left-right/level order), giving it the zone name and converted map filename to use:


<pre>
<pre>
Line 55: Line 55:
<pre>
<pre>
<zone name="int_myarea_mylocation" file="int_myarea_mylocation.xstend">
<zone name="int_myarea_mylocation" file="int_myarea_mylocation.xstend">
<configurator class-name="games.stendhal.server.maps.myarea.mylocation.IL0_MyNPC"/>
<configurator class-name="games.stendhal.server.maps.myarea.mylocation.IL0_MyEntity"/>
</zone>
</zone>
</pre>
</pre>