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