Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Character.sendPacket()


    for(int id : CursedWeaponsManager.getInstance().getCursedWeaponsIds())
    {
      list.add(id);
    }

    activeChar.sendPacket(new ExCursedWeaponList(list));
  }

  @Override
  public String getType()
  {
View Full Code Here


    if(pet == null)
      return;

    if(pet.getName() != null)
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.NAMING_YOU_CANNOT_SET_NAME_OF_THE_PET));
      return;
    }
    else if(PetNameTable.getInstance().doesPetNameExist(_name, pet.getTemplate().npcId))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.NAMING_ALREADY_IN_USE_BY_ANOTHER_PET));
View Full Code Here

      activeChar.sendPacket(new SystemMessage(SystemMessageId.NAMING_YOU_CANNOT_SET_NAME_OF_THE_PET));
      return;
    }
    else if(PetNameTable.getInstance().doesPetNameExist(_name, pet.getTemplate().npcId))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.NAMING_ALREADY_IN_USE_BY_ANOTHER_PET));
      return;
    }
    else if(_name.length() < 3 || _name.length() > 16)
    {
      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
View Full Code Here

    else if(_name.length() < 3 || _name.length() > 16)
    {
      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("Your pet's name can be up to 16 characters.");
      // SystemMessage sm = new SystemMessage(SystemMessage.NAMING_PETNAME_UP_TO_8CHARS);
      activeChar.sendPacket(sm);
      sm = null;

      return;
    }
    else if(!PetNameTable.getInstance().isValidPetName(_name))
View Full Code Here

      return;
    }
    else if(!PetNameTable.getInstance().isValidPetName(_name))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.NAMING_PETNAME_CONTAINS_INVALID_CHARS));
      return;
    }

    pet.setName(_name);
    pet.broadcastPacket(new NpcInfo(pet, activeChar));
View Full Code Here

      return;
    }

    pet.setName(_name);
    pet.broadcastPacket(new NpcInfo(pet, activeChar));
    activeChar.sendPacket(new PetInfo(pet));
    // The PetInfo packet wipes the PartySpelled (list of active spells' icons).  Re-add them
    pet.updateEffectIcons(true);

    // set the flag on the control item to say that the pet has a name
    if(pet instanceof L2PetInstance)
View Full Code Here

      {
        controlItem.setCustomType2(1);
        controlItem.updateDatabase();
        InventoryUpdate iu = new InventoryUpdate();
        iu.addModifiedItem(controlItem);
        activeChar.sendPacket(iu);
      }
    }
  }

  @Override
View Full Code Here

        if(obj == null || !(obj instanceof L2Character))
        {
          continue;
        }
        L2Character chara = (L2Character) obj;
        chara.sendPacket(cs);
      }
      return;
    }
   
    CreatureSay cs = new CreatureSay(activeChar.getObjectId(), _type, activeChar.getName(), _text);
View Full Code Here

      }
    }

    if(!list.isEmpty())
    {
      activeChar.sendPacket(new ExCursedWeaponLocation(list));
    }
  }

  @Override
  public String getType()
View Full Code Here

     
      target.setCurrentHp(hp + target.getCurrentHp());
      target.setLastHealAmount((int) hp);
      StatusUpdate su = new StatusUpdate(target.getObjectId());
      su.addAttribute(StatusUpdate.CUR_HP, (int) target.getCurrentHp());
      target.sendPacket(su);
      su = null;
     
      if (target instanceof L2PcInstance)
      {
        if (skill.getId() == 4051)
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.