Examples of GhostNPCBase


Examples of games.stendhal.server.entity.npc.GhostNPCBase

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildNPC(zone, attributes);
  }
 
  private void buildNPC(final StendhalRPZone zone, final Map<String, String> attributes) {
    final SpeakerNPC ghost = new GhostNPCBase("Mary") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(65, 74));
        nodes.add(new Node(43, 74));
        nodes.add(new Node(43, 69));
        nodes.add(new Node(37, 69));
        nodes.add(new Node(37, 65));
        nodes.add(new Node(34, 65));
        nodes.add(new Node(34, 58));
        nodes.add(new Node(31, 58));
        nodes.add(new Node(31, 52));
        nodes.add(new Node(28, 52));
        nodes.add(new Node(28, 46));
        nodes.add(new Node(26, 46));
        nodes.add(new Node(26, 41));
        nodes.add(new Node(25, 41));
        nodes.add(new Node(25, 38));
        nodes.add(new Node(36, 38));
        nodes.add(new Node(36, 43));
        nodes.add(new Node(45, 43));
        nodes.add(new Node(45, 46));
        nodes.add(new Node(61, 46));
        nodes.add(new Node(61, 54));
        nodes.add(new Node(63, 54));
        nodes.add(new Node(63, 58));
        nodes.add(new Node(64, 58));
        nodes.add(new Node(64, 66));
        nodes.add(new Node(65, 66));
        setPath(new FixedPath(nodes, true));
      }
    };
 
    ghost.setDescription("You see a ghostly figure of a woman.");
    ghost.setResistance(0);
    ghost.setEntityClass("woman_005_npc");
    // she is a ghost so she is see through
    ghost.setVisibility(50);
    ghost.setPosition(65, 74);
    // she has low HP
    ghost.initHP(30);
    ghost.setBaseHP(100);
    zone.add(ghost);
  }
View Full Code Here

Examples of games.stendhal.server.entity.npc.GhostNPCBase

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildNPC(zone, attributes);
  }

  private void buildNPC(final StendhalRPZone zone, final Map<String, String> attributes) {
    final SpeakerNPC ghost = new GhostNPCBase("Goran") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(216, 127));
        nodes.add(new Node(200, 127));
        nodes.add(new Node(200, 120));
        nodes.add(new Node(216, 120));
        nodes.add(new Node(216, 122));
        nodes.add(new Node(200, 122));
        nodes.add(new Node(200, 124));
        nodes.add(new Node(216, 124));
        setPath(new FixedPath(nodes, true));
      }
    };

    ghost.setDescription("You see a ghostly figure of a man. He appears to have died in battle.");
    ghost.setResistance(0);
    ghost.setEntityClass("deadmannpc");
    // he is a ghost so he is see through
    ghost.setVisibility(70);
    ghost.setPosition(216, 127);
    // he has low HP
    ghost.initHP(30);
    ghost.setBaseHP(100);
    zone.add(ghost);
  }
View Full Code Here

Examples of games.stendhal.server.entity.npc.GhostNPCBase

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildNPC(zone, attributes);
  }

  private void buildNPC(final StendhalRPZone zone, final Map<String, String> attributes) {
    final SpeakerNPC ghost = new GhostNPCBase("Zak") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(3, 4));
        nodes.add(new Node(10, 4));
        nodes.add(new Node(10, 9));
        nodes.add(new Node(8, 9));
        nodes.add(new Node(8, 7));
        nodes.add(new Node(6, 7));
        nodes.add(new Node(6, 5));
        nodes.add(new Node(3, 5));
        setPath(new FixedPath(nodes, true));
      }
    };

    ghost.setDescription("You see a ghostly figure of a man. You have no idea how he died.");
    ghost.setResistance(0);
    ghost.setEntityClass("man_000_npc");
    // he is a ghost so he is see through
    ghost.setVisibility(50);
    ghost.setPosition(3, 4);
    // he has low HP
    ghost.initHP(30);
    ghost.setBaseHP(100);
    zone.add(ghost);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.