Examples of altOnMagicUseTimer()


Examples of l2p.gameserver.model.L2Player.altOnMagicUseTimer()

    {
      show(Files.read("data/html/default/13184-3.htm", player), player);
      return;
    }
    player.broadcastPacket(new MagicSkillUse(player, player, 23017, 1, 0, 0));
    player.altOnMagicUseTimer(player, SkillTable.getInstance().getInfo(23017, 1));
    L2Summon pet = player.getPet();
    if(pet != null)
    {
      pet.broadcastPacket(new MagicSkillUse(pet, pet, 23017, 1, 0, 0));
      pet.altOnMagicUseTimer(pet, SkillTable.getInstance().getInfo(23017, 1));
View Full Code Here

Examples of l2p.gameserver.model.L2Summon.altOnMagicUseTimer()

    player.altOnMagicUseTimer(player, SkillTable.getInstance().getInfo(23017, 1));
    L2Summon pet = player.getPet();
    if(pet != null)
    {
      pet.broadcastPacket(new MagicSkillUse(pet, pet, 23017, 1, 0, 0));
      pet.altOnMagicUseTimer(pet, SkillTable.getInstance().getInfo(23017, 1));
    }
  }

  public void locateSnowman()
  {
View Full Code Here

Examples of lineage2.gameserver.model.Player.altOnMagicUseTimer()

    {
      show("default/13184-3.htm", player);
      return;
    }
    player.broadcastPacket(new MagicSkillUse(player, player, 23017, 1, 0, 0));
    player.altOnMagicUseTimer(player, SkillTable.getInstance().getInfo(23017, 1));
    player.setVar("santaEventTime", String.valueOf(System.currentTimeMillis() + SANTA_BUFF_REUSE), -1);
    for (Summon summon : player.getSummonList())
    {
      summon.broadcastPacket(new MagicSkillUse(summon, summon, 23017, 1, 0, 0));
      summon.altOnMagicUseTimer(summon, SkillTable.getInstance().getInfo(23017, 1));
View Full Code Here

Examples of lineage2.gameserver.model.Player.altOnMagicUseTimer()

          htmltext = "jack-notime.htm";
        }
        else
        {
          npc.broadcastPacket(new MagicSkillUse(npc, player, 23179, 1, 0, 0));
          player.altOnMagicUseTimer(player, SkillTable.getInstance().getInfo(23179, 1));
          player.setVar("govEventTime", String.valueOf(System.currentTimeMillis() + (REUSE_HOURS * 60 * 60 * 1000L)), -1);
          player.setVitality(Config.MAX_VITALITY);
          htmltext = "jack-okvitality.htm";
        }
        break;
View Full Code Here

Examples of lineage2.gameserver.model.Player.altOnMagicUseTimer()

          if (!player.isMageClass() || (player.getTemplate().getRace() == Race.orc))
          {
            for (int[] buff : _warrBuff)
            {
              npc.broadcastPacket(new MagicSkillUse(npc, player, buff[0], buff[1], 0, 0));
              player.altOnMagicUseTimer(player, SkillTable.getInstance().getInfo(buff[0], buff[1]));
            }
          }
          else
          {
            for (int[] buff : _mageBuff)
View Full Code Here

Examples of lineage2.gameserver.model.Player.altOnMagicUseTimer()

          else
          {
            for (int[] buff : _mageBuff)
            {
              npc.broadcastPacket(new MagicSkillUse(npc, player, buff[0], buff[1], 0, 0));
              player.altOnMagicUseTimer(player, SkillTable.getInstance().getInfo(buff[0], buff[1]));
            }
          }
          htmltext = "jack-okbuff.htm";
        }
        break;
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.altOnMagicUseTimer()

    NpcInstance npc = getActor();

    Skill skill = SkillTable.getInstance().getInfo(14285, 1); //TODO[K] - Skills lighting Octavis
    for(Creature creature : npc.getAroundCharacters(10000, 100))
      if(Rnd.chance(30))
        npc.altOnMagicUseTimer(creature, skill);

    doTask();
  }

  @Override
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.altOnMagicUseTimer()

      {
        coffinsCount = i;
        coffinsCount = Math.min(coffinsCount, 12);
        if (coffinsCount > 0)
        {
          actor.altOnMagicUseTimer(actor, SkillTable.getInstance().getInfo(5940, coffinsCount));
        }
      }
    }
    return super.thinkActive();
  }
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.altOnMagicUseTimer()

    }
    final double distance = actor.getDistance(target);
    final double chp = actor.getCurrentHpPercents();
    if (_hpStage == 0)
    {
      actor.altOnMagicUseTimer(actor, s_regen1);
      _hpStage = 1;
    }
    else if ((chp < 75) && (_hpStage == 1))
    {
      actor.altOnMagicUseTimer(actor, s_regen2);
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.altOnMagicUseTimer()

      actor.altOnMagicUseTimer(actor, s_regen1);
      _hpStage = 1;
    }
    else if ((chp < 75) && (_hpStage == 1))
    {
      actor.altOnMagicUseTimer(actor, s_regen2);
      _hpStage = 2;
    }
    else if ((chp < 50) && (_hpStage == 2))
    {
      actor.altOnMagicUseTimer(actor, s_regen3);
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.