-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New NPC Elias Breland (WIP) for An Old Man's Wish quest
- Loading branch information
1 parent
4c47d44
commit 174cc76
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/games/stendhal/server/maps/deniran/cityinterior/brelandhouse/OldManNPC.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/*************************************************************************** | ||
* Copyright © 2003-2022 - Arianne * | ||
*************************************************************************** | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
package games.stendhal.server.maps.deniran.cityinterior.brelandhouse; | ||
|
||
import java.util.Map; | ||
|
||
import games.stendhal.common.Direction; | ||
import games.stendhal.server.core.config.ZoneConfigurator; | ||
import games.stendhal.server.core.engine.StendhalRPZone; | ||
import games.stendhal.server.entity.npc.SpeakerNPC; | ||
|
||
|
||
public class OldManNPC implements ZoneConfigurator { | ||
|
||
@Override | ||
public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) { | ||
buildNPC(zone); | ||
} | ||
|
||
private void buildNPC(final StendhalRPZone zone) { | ||
final SpeakerNPC elias = new SpeakerNPC("Elias Breland"); | ||
|
||
elias.setPosition(8, 15); | ||
elias.setIdleDirection(Direction.DOWN); | ||
elias.setOutfit("body=986,head=996,eyes=999"); | ||
|
||
zone.add(elias); | ||
} | ||
} |