HowToAddMapsServerStendhal: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Chad3f |
imported>Chad3f |
||
| Line 62: | Line 62: | ||
= Populating zones = |
= Populating zones = |
||
Now open again the Mapname.java file and let's start adding code. |
Now open again the Mapname.java file and let's start adding code to '''configureZone()''', or a method called by it. Most usual things we are going to add to a zone are NPC, and special items. |
||
First step is to get the zone we are going to work with: |
|||
StendhalRPZone zone=(StendhalRPZone)world.getRPZone(new IRPZone.ID("map_name")); |
|||
Once we add the zone we can start adding things. Most usual things we are going to add to a zone are NPC, Portals and items. |
|||
== Adding Items == |
== Adding Items == |
||