コード例 #1
0
 @Override
 public void start() {
   this.gem = (Gem) parameters[0];
   SkillsDialogue.sendSkillsDialogue(
       player,
       SkillsDialogue.CUT,
       "Choose how many you wish to cut,<br>then click on the item to begin.",
       player.getInventory().getItems().getNumberOf(gem.getUncut()),
       new int[] {gem.getUncut()},
       null);
 }
コード例 #2
0
 @Override
 public void run(int interfaceId, int componentId) {
   player.getActionManager().setSkill(new GemCutting(gem, SkillsDialogue.getQuantity(player)));
   end();
 }