Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2EffectPointInstance


  {
    if (caster.isAlikeDead())
      return;
   
    L2NpcTemplate template = NpcTable.getInstance().getTemplate(_effectNpcId);
    L2EffectPointInstance effectPoint = new L2EffectPointInstance(IdFactory.getInstance().getNextId(), template, caster);
    effectPoint.getStatus().setCurrentHp(effectPoint.getMaxHp());
    effectPoint.getStatus().setCurrentMp(effectPoint.getMaxMp());
    L2World.getInstance().storeObject(effectPoint);
   
    int x = caster.getX();
    int y = caster.getY();
    int z = caster.getZ();
   
    if (caster instanceof L2PcInstance && getTargetType() == L2Skill.SkillTargetType.TARGET_GROUND)
    {
      Point3D wordPosition = ((L2PcInstance) caster).getCurrentSkillWorldPosition();
     
      if (wordPosition != null)
      {
        x = wordPosition.getX();
        y = wordPosition.getY();
        z = wordPosition.getZ();
      }
    }
    getEffects(caster, effectPoint, false, false, false);
   
    effectPoint.setIsInvul(true);
    effectPoint.spawnMe(x, y, z);
  }
View Full Code Here


      template = NpcTable.getInstance().getTemplate(((L2SkillSignetCasttime) getSkill())._effectNpcId);
    }
    else
      return;

    L2EffectPointInstance effectPoint = new L2EffectPointInstance(IdFactory.getInstance().getNextId(), template, getEffector());
    effectPoint.getStatus().setCurrentHp(effectPoint.getMaxHp());
    effectPoint.getStatus().setCurrentMp(effectPoint.getMaxMp());
   
    L2World.getInstance().storeObject(effectPoint);

    int x = getEffector().getX();
    int y = getEffector().getY();
    int z = getEffector().getZ();

    if(getEffector() instanceof L2PcInstance && getSkill().getTargetType() == L2Skill.SkillTargetType.TARGET_GROUND)
    {
      Point3D wordPosition = ((L2PcInstance) getEffector()).getCurrentSkillWorldPosition();

      if(wordPosition != null)
      {
        x = wordPosition.getX();
        y = wordPosition.getY();
        z = wordPosition.getZ();
      }
    }
    effectPoint.setIsInvul(true);
    effectPoint.spawnMe(x, y, z);

    _actor = effectPoint;
   
//    skill_task = new SigmetMDAMTask();
  }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.actor.instance.L2EffectPointInstance

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.