Package games.stendhal.server.core.engine.dbcommand

Examples of games.stendhal.server.core.engine.dbcommand.WriteHallOfFamePointsCommand


    // theoretical maximum e * DEFAULT_REWARD_POINTS
    int points = (int) (DEFAULT_REWARD_POINTS * Math.exp(1 - normalized));
    // Give at least one xp for persistent but hopelessly slow players
    points = Math.max(points, 1);

    DBCommandQueue.get().enqueue(new WriteHallOfFamePointsCommand(player.getName(), "M", points, true));
    new SetQuestAction("maze", 0, "done").fire(player, null, null);
    new IncrementQuestAction("maze", 2, 1).fire(player, null, null);
    player.sendPrivateText("You used " + TimeUtil.timeUntil((int) (timediff / 1000), true)
        + " to solve the maze. That was worth " + Grammar.quantityplnoun(points, "point") + ".");
    SingletonRepository.getAchievementNotifier().onFinishQuest(player);
View Full Code Here


   *
   * @param player Player
   */
  private void updatePoints(final Player player) {
    final DeathmatchState deathmatchState = DeathmatchState.createFromQuestString(player.getQuest("deathmatch"));
    DBCommandQueue.get().enqueue(new WriteHallOfFamePointsCommand(player.getName(), "D", deathmatchState.getPoints(), true));
  }
View Full Code Here

    } else {
      orgAge = player.getQuest(questname);
    }

    int diff = player.getAge() - Integer.parseInt(orgAge);
    DBCommandQueue.get().enqueue(new WriteHallOfFamePointsCommand(player.getName(), fametype, diff, false));
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.core.engine.dbcommand.WriteHallOfFamePointsCommand

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.