Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.SystemMessage.addSkillName()


    if (isSkillDisabled(skill.getId()))
    {
      if (this instanceof L2PcInstance)
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_PREPARED_FOR_REUSE);
        sm.addSkillName(skill.getId(), skill.getLevel());
        sendPacket(sm);
      }
     
      return;
    }
View Full Code Here


   
    // Send a system message USE_S1 to the L2Character
    if ((this instanceof L2PcInstance) && (magicId != 1312))
    {
      SystemMessage sm = new SystemMessage(SystemMessageId.USE_S1);
      sm.addSkillName(magicId, skill.getLevel());
      sendPacket(sm);
    }
   
    // Skill reuse check
    if (reuseDelay > 30000)
View Full Code Here

                  if (target.reflectSkill(skill))
                  {
                    activeChar.stopSkillEffects(skill.getId());
              skill.getEffects(null, activeChar);
              SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
            sm.addSkillName(skill.getId());
            activeChar.sendPacket(sm);
                  }
                  else
                  {
                    // activate attacked effects, if any
View Full Code Here

                            skill.getEffects(activeChar, target);
                        else
                        {
                            SystemMessage sm = new SystemMessage(SystemMessageId.S1_WAS_UNAFFECTED_BY_S2);
                            sm.addString(target.getName());
                            sm.addSkillName(skill.getDisplayId());
                            activeChar.sendPacket(sm);
                        }
                  }
                }
View Full Code Here

      L2Skill skill = SkillTable.getInstance().getInfo(id,level);
      if (skill != null)
      {
        String skillname = skill.getName();
        SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_SKILL_S1_ADDED);
        sm.addSkillName(id);
        player.sendPacket(sm);
        player.getClan().broadcastToOnlineMembers(sm);
        player.getClan().addNewSkill(skill);
        activeChar.sendMessage("You gave the Clan Skill: "+skillname+" to the clan "+player.getClan().getName()+".");
       
View Full Code Here

        }
        else
        {
          SystemMessage sm = new SystemMessage(SystemMessageId.S1_WAS_UNAFFECTED_BY_S2);
          sm.addString(target.getName());
          sm.addSkillName(skill.getDisplayId());
          activeChar.sendPacket(sm);
        }       
        target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
      }
    }
View Full Code Here

            SystemMessage cr = new SystemMessage(SystemMessageId.S1_DEDUCTED_FROM_CLAN_REP);
            cr.addNumber(repCost);
            player.sendPacket(cr);
            SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_SKILL_S1_ADDED);
            sm.addSkillName(_id);
            player.sendPacket(sm);
            sm = null;
           
            player.getClan().broadcastToOnlineMembers(new PledgeSkillList(player.getClan()));
           
View Full Code Here

        SystemMessage sp = new SystemMessage(SystemMessageId.SP_DECREASED_S1);
        sp.addNumber(_requiredSp);
        sendPacket(sp);

    SystemMessage sm = new SystemMessage(SystemMessageId.LEARNED_SKILL_S1);
    sm.addSkillName(_id);
    player.sendPacket(sm);
    sm = null;
   
    // update all the shortcuts to this skill
    if (_level > 1)
View Full Code Here

        }
        else
        {
          SystemMessage sm = new SystemMessage(SystemMessageId.S1_WAS_UNAFFECTED_BY_S2);
          sm.addString(target.getName());
          sm.addSkillName(skill.getId());
          attacker.sendPacket(sm);

          damage = 1;
        }
      }
View Full Code Here

      L2PcInstance player = (L2PcInstance)activeChar;
      EffectCharge e = (EffectCharge)player.getFirstEffect(chargeSkillId);
      if(e == null || e.numCharges < getNumCharges())
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED);
        sm.addSkillName(getId());
        activeChar.sendPacket(sm);
        return false;
      }
    }
    return super.checkCondition(activeChar, target, itemOrWeapon);
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.