Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2ShortCut


        {
          for(L2ShortCut sc : activeChar.getAllShortCuts())
          {
            if(sc.id == _id && sc.type == L2ShortCut.TYPE_SKILL)
            {
              L2ShortCut newsc = new L2ShortCut(sc.slot, sc.page, sc.type, sc.id, _level);
              activeChar.sendPacket(new ShortCutRegister(newsc));
              activeChar.registerShortCut(newsc);
            }
          }
        }
View Full Code Here


    {
      for(L2ShortCut sc : player.getAllShortCuts())
      {
        if(sc.id == _id && sc.type == L2ShortCut.TYPE_SKILL)
        {
          L2ShortCut newsc = new L2ShortCut(sc.slot, sc.page, sc.type, sc.id, _level);
          player.sendPacket(new ShortCutRegister(newsc));
          player.registerShortCut(newsc);
        }
      }
    }
View Full Code Here

    // update all the shortcuts to this skill
    for(L2ShortCut sc : player.getAllShortCuts())
    {
      if(sc.id == _skillId && sc.type == L2ShortCut.TYPE_SKILL)
      {
        L2ShortCut newsc = new L2ShortCut(sc.slot, sc.page, sc.type, sc.id, _skillLvl);
        player.sendPacket(new ShortCutRegister(newsc));
        player.registerShortCut(newsc);
      }
    }
  }
View Full Code Here

    {
      L2ItemInstance item = itemTable.createItem(i.getItemId());
      newChar.getInventory().addItem(item);
      if(item.getItemId() == 5588) // tutorial book
      {
        newChar.registerShortCut(new L2ShortCut(11, 0, L2ShortCut.TYPE_ITEM, item.getObjectId(), -1));
      }
      if(item.isEquipable() && (newChar.getActiveWeaponItem() == null || item.getItem().getType2() != L2Item.TYPE2_WEAPON))
      {
        newChar.getInventory().equipItem(item, false);
      }
    }
    // Scroll of Escape: Kamael Village
    L2ItemInstance item = itemTable.createItem(9716);
    item.setCount(5);
    newChar.getInventory().addItem(item);
    // Adventurer's Scroll of Escape
    item = itemTable.createItem(10650);
    item.setCount(10);
    newChar.getInventory().addItem(item);
    for(L2SkillLearn skill : SkillTreeTable.getInstance().getAvailableSkills(newChar, newChar.getClassId()))
    {
      newChar.addSkill(SkillTable.getInstance().getInfo(skill.id, skill.skillLevel), true);
    }
    if(newChar.getSkillLevel(1001) > 0) // Soul Cry
    {
      newChar.registerShortCut(new L2ShortCut(1, 0, L2ShortCut.TYPE_SKILL, 1001, 1));
    }
    if(newChar.getSkillLevel(1177) > 0) // Wind Strike
    {
      newChar.registerShortCut(new L2ShortCut(1, 0, L2ShortCut.TYPE_SKILL, 1177, 1));
    }
    if(newChar.getSkillLevel(1216) > 0) // Self Heal
    {
      newChar.registerShortCut(new L2ShortCut(2, 0, L2ShortCut.TYPE_SKILL, 1216, 1));
    }
    // add attack, take, sit shortcut
    newChar.registerShortCut(new L2ShortCut(0, 0, L2ShortCut.TYPE_ACTION, 2, -1));
    newChar.registerShortCut(new L2ShortCut(3, 0, L2ShortCut.TYPE_ACTION, 5, -1));
    newChar.registerShortCut(new L2ShortCut(10, 0, L2ShortCut.TYPE_ACTION, 0, -1));
    startTutorialQuest(newChar);
    newChar.setCurrentHpMp(newChar.getMaxHp(), newChar.getMaxMp());
    //
    Long exp_add = Experience.LEVEL[Config.StartLevelNewPlayer] - newChar.getExp();
    newChar.addExpAndSp(exp_add, 0, false, false);
View Full Code Here

    // update all the shortcuts to this skill
    for(L2ShortCut sc : player.getAllShortCuts())
    {
      if(sc.id == _skillId && sc.type == L2ShortCut.TYPE_SKILL)
      {
        L2ShortCut newsc = new L2ShortCut(sc.slot, sc.page, sc.type, sc.id, _skillLvl);
        player.sendPacket(new ShortCutRegister(newsc));
        player.registerShortCut(newsc);
      }
    }
  }
View Full Code Here

    // update all the shortcuts to this skill
    for(L2ShortCut sc : player.getAllShortCuts())
    {
      if(sc.id == _skillId && sc.type == L2ShortCut.TYPE_SKILL)
      {
        L2ShortCut newsc = new L2ShortCut(sc.slot, sc.page, sc.type, sc.id, _skillLvl);
        player.sendPacket(new ShortCutRegister(newsc));
        player.registerShortCut(newsc);
      }
    }
  }
View Full Code Here

      case 0x01: // item
      case 0x03: // action
      case 0x04: // macro
      case 0x05: // recipe
      {
        L2ShortCut sc = new L2ShortCut(_slot, _page, _type, _id, -1);
        sendPacket(new ShortCutRegister(sc));
        activeChar.registerShortCut(sc);
        break;
      }
      case 0x02: // skill
      {
        int level = activeChar.getSkillDisplayLevel(_id);
        if(level > 0)
        {
          L2ShortCut sc = new L2ShortCut(_slot, _page, _type, _id, level);
          sendPacket(new ShortCutRegister(sc));
          activeChar.registerShortCut(sc);
        }
        break;
      }
View Full Code Here

    // update all the shortcuts to this skill
    for(L2ShortCut sc : player.getAllShortCuts())
    {
      if(sc.id == _skillId && sc.type == L2ShortCut.TYPE_SKILL)
      {
        L2ShortCut newsc = new L2ShortCut(sc.slot, sc.page, sc.type, sc.id, _skillLvl);
        player.sendPacket(new ShortCutRegister(newsc));
        player.registerShortCut(newsc);
      }
    }
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.L2ShortCut

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.