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

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


                door.openMe();
                door.onOpen();
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
              }
              else {
                activeChar.sendMessage("You failed to open Altar Entrance.");
                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 8275: //Key of Darkness
      if (door.getDoorName().startsWith("Door_of_Darkness")){
              if (openChance > 0 && Rnd.get(100) < openChance) {
View Full Code Here

      }
      break;
    case 8275: //Key of Darkness
      if (door.getDoorName().startsWith("Door_of_Darkness")){
              if (openChance > 0 && Rnd.get(100) < openChance) {
                activeChar.sendMessage("You opened Door of Darkness.");
                door.openMe();
                door.onOpen();
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
              }
              else {
View Full Code Here

                door.openMe();
                door.onOpen();
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
              }
              else {
                activeChar.sendMessage("You failed to open Door of Darkness.");
                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;
    }
  }
View Full Code Here

                    // Requires a Summoning Crystal
                    if (targetChar.getInventory().getItemByItemId(8615) == null)
                    {
                      ((L2PcInstance)activeChar).sendMessage("Your target cannot be summoned while he hasn't got a Summoning Crystal");
                      targetChar.sendMessage("You cannot be summoned while you haven't got a Summoning Crystal");
                      continue;
                    }

                    if (!Util.checkIfInRange(0, activeChar, target, false))
                    {
View Full Code Here

      {
        // No unequipping/equipping while the player is in special conditions
        if (activeChar.isStunned() || activeChar.isSleeping() || activeChar.isParalyzed()
            || activeChar.isAlikeDead())
        {
          activeChar.sendMessage("Your status does not allow you to do that.");
          return;
        }

        int bodyPart = item.getItem().getBodyPart();
                // Prevent player to remove the weapon on special conditions
View Full Code Here

          _baseLvl = s.getBaseLevel();
        }

        if (counts == 0 && !Config.ALT_GAME_SKILL_LEARN)
        {
          player.sendMessage("You are trying to learn skill that u can't..");
          Util.handleIllegalPlayerAction(player, "Player " + player.getName()
              + " tried to learn skill that he can't!!!", IllegalPlayerAction.PUNISH_KICK);
          return;
        }
View Full Code Here

      return false;
    }
    if(expval != 0 || spval != 0)
    {
      //Common character information
      player.sendMessage("Admin is adding you "+expval+" xp and "+spval+" sp.");
      player.addExpAndSp(expval,spval);
      //Admin information
      activeChar.sendMessage("Added "+expval+" xp and "+spval+" sp to "+player.getName()+".");
      if (Config.DEBUG)
        _log.fine("GM: "+activeChar.getName()+"("+activeChar.getObjectId()+") added "+expval+
View Full Code Here

      return false;
    }
    if(expval != 0 || spval != 0)
    {
      //Common character information
      player.sendMessage("Admin is removing you "+expval+" xp and "+spval+" sp.");
      player.removeExpAndSp(expval,spval);
      //Admin information
      activeChar.sendMessage("Removed "+expval+" xp and "+spval+" sp from "+player.getName()+".");
      if (Config.DEBUG)
        _log.fine("GM: "+activeChar.getName()+"("+activeChar.getObjectId()+") removed "+expval+
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.