Package net.sf.l2j.gameserver.model.actor.instance

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.sendMessage()


                else activeChar.sendPacket(SystemMessage.sendString(skill.getName() + " failed."));
            }
        }
        catch (Exception e)
        {
            player.sendMessage("Error using siege assault:" + e);
        }
    }

    @Override
  public SkillType[] getSkillIds()
View Full Code Here


      sm = SystemMessage.sendString(target.getParty().getPartyMembers().get(0).getName()
          + "'s party was dismissed from the CommandChannel.");
    }
    else
    {
        activeChar.sendMessage("Incorrect Target");
    }
  }

  /* (non-Javadoc)
   * @see net.sf.l2j.gameserver.BasePacket#getType()
View Full Code Here

    if (activeChar == null)
        return;

        if (activeChar.getPrivateStoreType() != 0)
        {
            activeChar.sendMessage("Cannot make items while trading");
            return;
        }

        if (activeChar.isInCraftMode())
        {
View Full Code Here

            return;
        }

        if (activeChar.isInCraftMode())
        {
            activeChar.sendMessage("Currently in Craft Mode");
            return;
        }

    RecipeController.getInstance().requestMakeItem(activeChar, _id);
  }
View Full Code Here

    }
    L2DoorInstance door = (L2DoorInstance)target;

    if (!(activeChar.isInsideRadius(door, INTERACTION_DISTANCE, false, false)))
    {
      activeChar.sendMessage("Too far.");
      activeChar.sendPacket(new ActionFailed());
      return;
    }
    if (activeChar.getAbnormalEffect() > 0 || activeChar.isInCombat())
    {
View Full Code Here

      activeChar.sendPacket(new ActionFailed());
      return;
    }
    if (activeChar.getAbnormalEffect() > 0 || activeChar.isInCombat())
    {
      activeChar.sendMessage("You cannot use the key now.");
      activeChar.sendPacket(new ActionFailed());
      return;
    }

    int openChance = 35;
View Full Code Here

    switch (itemId){
    case 8273: //AnteroomKey
        if (door.getDoorName().startsWith("Anteroom")){
                  if (openChance > 0 && Rnd.get(100) < openChance) {
                    activeChar.sendMessage("You opened Anterooms Door.");
                    door.openMe();
                    door.onOpen(); // Closes the door after 60sec
                    activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
                  }
                  else {
View Full Code Here

                    door.onOpen(); // Closes the door after 60sec
                    activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
                  }
                  else {
                    //test with: activeChar.sendPacket(new SystemMessage(SystemMessage.FAILED_TO_UNLOCK_DOOR));
                    activeChar.sendMessage("You failed to open Anterooms Door.");
                    activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 13));
                PlaySound playSound = new PlaySound("interfacesound.system_close_01");
                activeChar.sendPacket(playSound);
                  }
        }
View Full Code Here

                PlaySound playSound = new PlaySound("interfacesound.system_close_01");
                activeChar.sendPacket(playSound);
                  }
        }
        else{
          activeChar.sendMessage("Incorrect Door.");
        }
        break;
    case 8274: //Chapelkey, Capel Door has a Gatekeeper?? I use this key for Altar Entrance
      if (door.getDoorName().startsWith("Altar_Entrance")){
              if (openChance > 0 && Rnd.get(100) < openChance) {
View Full Code Here

        }
        break;
    case 8274: //Chapelkey, Capel Door has a Gatekeeper?? I use this key for Altar Entrance
      if (door.getDoorName().startsWith("Altar_Entrance")){
              if (openChance > 0 && Rnd.get(100) < openChance) {
                activeChar.sendMessage("You opened Altar Entrance.");
                door.openMe();
                door.onOpen();
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
              }
              else {
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.