Package games.stendhal.server.entity.mapstuff.sign

Examples of games.stendhal.server.entity.mapstuff.sign.Sign


    exit.setPosition(17, 20);
    exit.setIdentifier(Integer.valueOf(0));
    exit.setDestination(entranceZoneName, Integer.valueOf(0));
    zone.add(exit);

    final Sign sign = new Sign();
    sign.setPosition(96, 102);
    sign.setText("If the door is closed, you will have to wait a short time until the last player finishes his task.");
    entranceZone.add(sign);
  }
View Full Code Here


  /**
   * creates the hall of fame sign
   */
  private void createHallOfFameSign() {
    sign = new Sign();
    sign.setPosition(94, 110);
    StendhalRPZone zone = SingletonRepository.getRPWorld().getZone("0_semos_mountain_n2");
    zone.add(sign);
    updateQuest();
  }
View Full Code Here

    } catch (final NumberFormatException e) {
      sandbox.privateText(player, "Please specify a number");
      return;
    }

    final Sign sign = storage.get(Integer.valueOf(i));
    if (sign != null) {
      storage.remove(Integer.valueOf(i));
      sandbox.remove(sign);
      final StringBuilder sb = new StringBuilder();
      sb.append("Removed sign ");
View Full Code Here

    final StringBuilder sb = new StringBuilder();
    sb.append("Listing signs:");

    int i = 1;
    while (i <= signcounter) {
      final Sign sign = storage.get(Integer.valueOf(i));
      if (sign != null) {
        sb.append("\r\n");
        sb.append(i);
        sb.append(". ");
        signToString(sb, sign);
View Full Code Here

    npc.setPosition(10, 4);
    npc.initHP(100);
    zone.add(npc);

    // Add a book with the shop offers
    final Sign book = new Sign();
    book.setPosition(12, 3);
    book.setText(" -- Buying -- \n steel boots\t 1000\n golden boots\t 1500\n shadow boots\t 2000\n stone boots\t 2500\n chaos boots\t 4000\n green thing boots\t 6000\n xeno boots\t 8000");
    book.setEntityClass("book_blue");
    book.setResistance(10);
    zone.add(book);

    final Sign book2 = new Sign();
    book2.setPosition(13, 4);
    book2.setText(" -- Buying -- \n golden helmet\t 3000\n shadow helmet\t 4000\n horned golden helmet 5000\n chaos helmet\t 6000\n magic chain helmet\t 8000\n black helmet\t 10000");
    book2.setEntityClass("book_red");
    book2.setResistance(10);
    zone.add(book2);
  }
View Full Code Here

    walkblocker.setPosition(2, 5);
    walkblocker
        .setDescription("You see a wastebin, handily placed for items you wish to dispose of.");
    add(walkblocker);
    // Add a sign explaining about equipped items
    final Sign book = new Sign();
    book.setPosition(2, 2);
    book
        .setText("Items left on the ground will be returned to you when you leave the vault, as it is assumed they were equipped by mistake. There is a wastebin provided below for anything you want to throw away. It will be emptied automatically when you leave the vault.");
    book.setEntityClass("book_blue");
    book.setResistance(0);
    add(book);
    disallowIn();
    this.addMovementListener(new VaultMovementListener());
  }
View Full Code Here

    ricardo.setPrizes(prizes);

    final StendhalRPZone zone = ricardo.getZone();

    Sign blackboard = new Sign();
    blackboard.setPosition(25, 0);
    blackboard.setEntityClass("blackboard");
    StringBuilder prizelistBuffer = new StringBuilder("PRIZES:\n");
    for (int i = 18; i >= 13; i--) {
      prizelistBuffer.append("\n" + i + ": " + prizes.get(i).first());
    }
    blackboard.setText(prizelistBuffer.toString());
    zone.add(blackboard);

    blackboard = new Sign();
    blackboard.setPosition(26, 0);
    blackboard.setEntityClass("blackboard");
    prizelistBuffer = new StringBuilder("PRIZES:\n");
    for (int i = 12; i >= 7; i--) {
      prizelistBuffer.append("\n" + i + ": " + prizes.get(i).first());
    }
    blackboard.setText(prizelistBuffer.toString());
    zone.add(blackboard);

    ricardo.add(ConversationStates.ATTENDING, "play", null,
        ConversationStates.QUESTION_1,
        "In order to play, you have to stake " + STAKE
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.mapstuff.sign.Sign

Copyright © 2018 www.massapicom. 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.