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

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


    if (!activeChar.isGM() && activeChar.getSiegeState() < 2 && activeChar.isInsideZone(L2Character.ZONE_SIEGE))
    {
            // Attacker or spectator logging in to a siege zone. Actually should be checked for inside castle only?
      activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town);
            activeChar.sendMessage("You have been teleported to the nearest town due to you being in siege zone");
    }

    RegionBBSManager.getInstance().changeCommunityBoard();

        /*if(Config.GAMEGUARD_ENFORCE) - disabled by KenM will be reenabled later
View Full Code Here


            L2PcInstance partner;
            partner = (L2PcInstance)L2World.getInstance().findObject(cha.getPartnerId());

            if (partner != null)
            {
                partner.sendMessage("Your Partner has logged in");
            }

            partner = null;
        }
    }
View Full Code Here

    else
    {
      L2ChestInstance chest = (L2ChestInstance) target;
      if (chest.isDead() || chest.isInteracted())
      {
        activeChar.sendMessage("The chest Is empty.");
        activeChar.sendPacket(new ActionFailed());
        return;
      }
      activeChar.useMagic(skill,false,false);
    }
View Full Code Here

        }

        if (storePlayer.getAdena() < _price)
    {
      sendPacket(new ActionFailed());
          storePlayer.sendMessage("You have not enough adena, canceling PrivateBuy.");
      storePlayer.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
      storePlayer.broadcastUserInfo();
      return;
    }
View Full Code Here

                spawn.setLocx(activeChar.getX());
                spawn.setLocy(activeChar.getY());
                spawn.setLocz(activeChar.getZ());
                L2World.getInstance().storeObject(spawn.spawnOne());
                activeChar.destroyItem("Summon", item.getObjectId(), 1, null, false);
                activeChar.sendMessage("Created " + npcTemplate.name + " at x: " + spawn.getLocx() + " y: " + spawn.getLocy() + " z: " + spawn.getLocz());
            }
            catch (Exception e)
            {
                activeChar.sendMessage("Target is not ingame.");
            }
View Full Code Here

                activeChar.destroyItem("Summon", item.getObjectId(), 1, null, false);
                activeChar.sendMessage("Created " + npcTemplate.name + " at x: " + spawn.getLocx() + " y: " + spawn.getLocy() + " z: " + spawn.getLocz());
            }
            catch (Exception e)
            {
                activeChar.sendMessage("Target is not ingame.");
            }

          break;
        case 1: // pet summons
          L2PetInstance petSummon = L2PetInstance.spawnPet(npcTemplate, activeChar, item);
View Full Code Here

    if (activeChar.isChatBanned())
    {
      if (_type == ALL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE)
      {
        activeChar.sendMessage("You may not chat while a chat ban is in effect.");
        return;
      }
    }

        if (activeChar.isInJail() && Config.JAIL_DISABLE_CHAT)
View Full Code Here

        if (activeChar.isInJail() && Config.JAIL_DISABLE_CHAT)
        {
            if (_type == TELL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE)
            {
                activeChar.sendMessage("You can not chat with players outside of the jail.");
                return;
            }
        }

    if (_type == PETITION_PLAYER && activeChar.isGM())
View Full Code Here

    if (_data == null)
    {
      CrestCache.getInstance().removePledgeCrestLarge(clan.getCrestId());

            clan.setHasCrestLarge(false);
            activeChar.sendMessage("The insignia has been removed.");

            for (L2PcInstance member : clan.getOnlineMembers(""))
                member.broadcastUserInfo();

            return;
View Full Code Here

            return;
    }

    if (_size > 2176)
        {
          activeChar.sendMessage("The insignia file size is greater than 2176 bytes.");
          return;
        }

    if ((activeChar.getClanPrivileges() & L2Clan.CP_CL_REGISTER_CREST) == L2Clan.CP_CL_REGISTER_CREST)
    {
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.