public void getReward(Player player) { for (int[] rewards : reward) { player.getInventory().addItem(new Item(rewards[0], rewards[1])); } for (int[] expRewards : expReward) { player.getSkill().addExp(expRewards[0], (expRewards[1])); } player.addQuestPoints(questPointReward); player.getActionSender().QPEdit(player.getQuestPoints()); }
public void completeQuest(Player player) { getReward(player); player.getActionSender().sendInterface(12140); player.getActionSender().sendString("You have completed: " + getQuestName(), 12144); player.getActionSender().sendString("You are rewarded: ", 12146); player.getActionSender().sendString("1 Quest Point,", 12150); player .getActionSender() .sendString((int) (expReward[0][1] * Constants.EXP_RATE) + " Crafting XP,", 12151); player .getActionSender() .sendString((int) (expReward[0][1] * Constants.EXP_RATE) + " Smithing XP,", 12152); player.getActionSender().sendString("The ability to make", 12153); player.getActionSender().sendString("Elemental Shields.", 12154); player.getActionSender().sendString("Quest points: " + player.getQuestPoints(), 12146); player.getActionSender().sendString(" ", 12147); player.setQuestStage(getQuestID(), QUEST_COMPLETE); player.getActionSender().sendString("@gre@" + getQuestName(), 7459); }