Skip to content

Commit

Permalink
New NPC Elias Breland (WIP) for An Old Man's Wish quest
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Nov 1, 2022
1 parent 4c47d44 commit 174cc76
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/conf/zones/deniran.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,9 @@ Entrance fee is 10 money</attribute>
<attribute name="move.continuous"/>
</portal>

<!-- NPCs -->
<configurator class-name="games.stendhal.server.maps.deniran.cityinterior.brelandhouse.OldManNPC"/>

</zone>

<zone name="int_atlantis_potions_shop" file="interiors/atlantis/potions_shop.tmx">
Expand Down
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);
}
}

0 comments on commit 174cc76

Please sign in to comment.