Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2WorldRegion


     */
    public void updateWorldRegion()
    {
        if (!getActiveObject().isVisible()) return;

        L2WorldRegion newRegion = L2World.getInstance().getRegion(getWorldPosition());
        if (newRegion != getWorldRegion())
        {
            getWorldRegion().removeVisibleObject(getActiveObject());

            setWorldRegion(newRegion);
View Full Code Here


  public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets) {

      if (!(activeChar instanceof L2PcInstance))
            return;

        L2WorldRegion region = activeChar.getWorldRegion();
        L2DynamicZone zone = new L2DynamicZone(region, activeChar, skill);
    zone.setZone(new ZoneCylinder(activeChar.getX(),activeChar.getY(), activeChar.getZ()-200,
        activeChar.getZ()+200, skill.getSkillRadius()));

        region.addZone(zone);
        for(L2Character c : activeChar.getKnownList().getKnownCharacters())
          zone.revalidateInZone(c);
        zone.revalidateInZone(activeChar);
    }
View Full Code Here

    super.onSpawn();
    // Notify Leader that Minion has Spawned
    getLeader().notifyMinionSpawned(this);

    // check the region where this mob is, do not activate the AI if region is inactive.
    L2WorldRegion region = L2World.getInstance().getRegion(getX(),getY());
    if ((region !=null) && (!region.isActive()))
      ((L2AttackableAI) getAI()).stopAITask();
  }
View Full Code Here

    if (Config.DEBUG)
      _log.finer(getObjectId()+": Home location set to"+" X:" + _homeX + " Y:" + _homeY + " Z:" + _homeZ);

        // check the region where this mob is, do not activate the AI if region is inactive.
        L2WorldRegion region = L2World.getInstance().getRegion(getX(),getY());
        if ((region !=null) && (!region.isActive()))
            ((L2AttackableAI) getAI()).stopAITask();
  }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.model.L2WorldRegion

Copyright © 2018 www.massapicom. 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.