Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.GameObject.sendPacket()


    }
    else if (_skillId >= 10000)
    {
      if (Functions.getItemCount(activeChar, SkillTreeTable.NEW_SAFE_ENCHANT_BOOK) == 0)
      {
        activeChar.sendPacket(Msg.ITEMS_REQUIRED_FOR_SKILL_ENCHANT_ARE_INSUFFICIENT);
        return;
      }
      Functions.removeItem(activeChar, SkillTreeTable.NEW_SAFE_ENCHANT_BOOK, 1);
    }
    if (Rnd.chance(rate))
View Full Code Here


    if (Rnd.chance(rate))
    {
      activeChar.addSkill(skill, true);
      activeChar.addExpAndSp(0, -1 * requiredSp);
      Functions.removeItem(activeChar, 57, requiredAdena);
      activeChar.sendPacket(new SystemMessage(SystemMessage.SP_HAS_DECREASED_BY_S1).addNumber(requiredSp), new SystemMessage(SystemMessage.SUCCEEDED_IN_ENCHANTING_SKILL_S1).addSkillName(_skillId, _skillLvl), new ExEnchantSkillResult(1));
      activeChar.sendSkillList();
      RequestExEnchantSkill.updateSkillShortcuts(activeChar, _skillId, _skillLvl);
      Log.add(activeChar.getName() + "|Successfully safe enchanted|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
    }
    else
View Full Code Here

      RequestExEnchantSkill.updateSkillShortcuts(activeChar, _skillId, _skillLvl);
      Log.add(activeChar.getName() + "|Successfully safe enchanted|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
    }
    else
    {
      activeChar.sendPacket(new SystemMessage(SystemMessage.Skill_enchant_failed_Current_level_of_enchant_skill_S1_will_remain_unchanged).addSkillName(_skillId, _skillLvl), new ExEnchantSkillResult(0));
      Log.add(activeChar.getName() + "|Failed to safe enchant|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
    }
    activeChar.sendPacket(new ExEnchantSkillInfo(_skillId, activeChar.getSkillDisplayLevel(_skillId)));
  }
}
View Full Code Here

        handler.onBypassCommand(activeChar, Config.BBS_DEFAULT);
      }
    }
    else
    {
      activeChar.sendPacket(new SystemMessage2(SystemMsg.THE_COMMUNITY_SERVER_IS_CURRENTLY_OFFLINE));
    }
  }
}
View Full Code Here

    if (nextWay == null)
    {
      activeChar.onJumpingBreak();
      return;
    }
    activeChar.sendPacket(new ExFlyMove(activeChar.getObjectId(), nextWay.getPoints(), track.getId()));
    activeChar.setCurrentJumpWay(nextWay);
  }
}
View Full Code Here

    }
    else if (event.equalsIgnoreCase("colin_q194_3a.htm"))
    {
      if ((player.getTransformation() != 0) || player.isMounted())
      {
        player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
        return null;
      }
      negateSpeedBuffs(player);
      SkillTable.getInstance().getInfo(6201, 1).getEffects(npc, player, false, false);
    }
View Full Code Here

      player.sendActionFailed();
      return;
    }
    if (player.isInStoreMode())
    {
      player.sendPacket(SystemMsg.WHILE_OPERATING_A_PRIVATE_STORE_OR_WORKSHOP_YOU_CANNOT_DISCARD_DESTROY_OR_TRADE_AN_ITEM);
      return;
    }
    if (player.isInTrade())
    {
      player.sendActionFailed();
View Full Code Here

    }
    else if (event.equalsIgnoreCase("colin_q194_6.htm"))
    {
      if ((player.getTransformation() != 0) || player.isMounted())
      {
        player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
        return null;
      }
      st.setCond(7);
      st.playSound(SOUND_MIDDLE);
      negateSpeedBuffs(player);
View Full Code Here

    }
    else if (event.equalsIgnoreCase("colin_q194_9.htm"))
    {
      if ((player.getTransformation() != 0) || player.isMounted())
      {
        player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
        return null;
      }
      st.setCond(10);
      st.playSound(SOUND_MIDDLE);
      negateSpeedBuffs(player);
View Full Code Here

        }
        items++;
      }
      if (slotsleft <= 0)
      {
        player.sendPacket(SystemMsg.YOU_HAVE_EXCEEDED_THE_QUANTITY_THAT_CAN_BE_INPUTTED);
      }
      if (items == 0)
      {
        player.sendPacket(SystemMsg.INCORRECT_ITEM_COUNT);
        return;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.