Package org.moparscape.msc.gs.model.definition.skill

Examples of org.moparscape.msc.gs.model.definition.skill.ItemLogCutDef


  }

  private boolean doLogCut(final Player player, final InvItem knife,
      final InvItem log, int times) {
    final int retries = --times;
    final ItemLogCutDef cutDef = EntityHandler.getItemLogCutDef(log.id);
    if (!Config.members) {
      player.getActionSender().sendMessage(
          "This feature is not avaliable in f2p");
      return true;
    }
    if (cutDef == null) {
      return false;
    }
    Instance.getDelayedEventHandler().add(new MiniEvent(player) {
      public void action() {
        String[] options = new String[] { "Arrow shafts", "Shortbow",
            "Longbow", "Cancel" };
        owner.setMenuHandler(new MenuHandler(options) {
          public void handleReply(final int option, final String reply) {
            InvItem result;
            int reqLvl, exp;
            switch (option) {
            case 0:
              result = new InvItem(280, cutDef.getShaftAmount());
              reqLvl = cutDef.getShaftLvl();
              exp = cutDef.getShaftExp();
              break;
            case 1:
              result = new InvItem(cutDef.getShortbowID(), 1);
              reqLvl = cutDef.getShortbowLvl();
              exp = cutDef.getShortbowExp();
              break;
            case 2:
              result = new InvItem(cutDef.getLongbowID(), 1);
              reqLvl = cutDef.getLongbowLvl();
              exp = cutDef.getLongbowExp();
              break;
            default:
              return;
            }
            if (owner.getCurStat(9) < reqLvl) {
View Full Code Here

TOP

Related Classes of org.moparscape.msc.gs.model.definition.skill.ItemLogCutDef

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.