From: Katie <ky...@us...> - 2007-05-02 19:14:37
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/maps/nalwor/tunnel In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv26293/src/games/stendhal/server/maps/nalwor/tunnel Added Files: ThingCreature.java Log Message: Elf mayor gives quest to kill dark elves and thing. Reach tunnel from secret room in royal. Reward: ring that reduces your penalty on death by five times. --- NEW FILE: ThingCreature.java --- package games.stendhal.server.maps.nalwor.tunnel; import games.stendhal.server.StendhalRPWorld; import games.stendhal.server.StendhalRPZone; import games.stendhal.server.entity.creature.Creature; import games.stendhal.server.entity.creature.ItemGuardCreature; import games.stendhal.server.entity.spawner.CreatureRespawnPoint; import games.stendhal.server.maps.ZoneConfigurator; import games.stendhal.server.rule.defaultruleset.DefaultEntityManager; import java.util.Map; /** * Configure Drow Tunnel -1 to include a Thing Creature who carries an amulet. * Then it should give an amulet that is bound to the player. */ public class ThingCreature implements ZoneConfigurator { DefaultEntityManager manager = (DefaultEntityManager) StendhalRPWorld.get().getRuleManager().getEntityManager(); /** * Configure a zone. * * @param zone The zone to be configured. * @param attributes Configuration attributes. */ public void configureZone(StendhalRPZone zone, Map<String, String> attributes) { buildDrowTunnelArea(zone, attributes); } private void buildDrowTunnelArea(StendhalRPZone zone, Map<String, String> attributes) { Creature creature = new ItemGuardCreature(manager.getCreature("thing"), "amulet"); CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 32, 5, creature, 1); zone.addRespawnPoint(point); } } |