Examples of addStatFunc()


Examples of l2p.gameserver.model.instances.L2NpcInstance.addStatFunc()

        newNpc.setAI(new L2CharacterAI(newNpc));
        if(templist[yy][xx] == 0)
        {
          newNpc.setBusy(true); // Используется здесь для определения "ненастощих" статуй.
          newNpc.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 1000));
          newNpc.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, 1000));
        }
        world.ForthRoom.npclist2.add(new long[] {newNpc.getStoredId(), templist[yy][xx], yy});
        yy += 1;
      }
      xx += 1;
View Full Code Here

Examples of l2p.gameserver.model.instances.L2SiegeHeadquarterInstance.addStatFunc()

      return;
    }
    L2SiegeHeadquarterInstance flag = new L2SiegeHeadquarterInstance(player, IdFactory.getInstance().getNextId(), NpcTable.getTemplate(35062));
    if(_advanced)
    {
      flag.addStatFunc(new FuncMul(Stats.MAX_HP, 0x50, flag, _advancedMult));
    }
    flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp(), true);
    flag.setHeading(player.getHeading());
    // Ставим флаг перед чаром
    int x = (int) (player.getX() + 100 * Math.cos(player.headingToRadians(player.getHeading() - 32768)));
View Full Code Here

Examples of l2p.gameserver.model.instances.L2SummonInstance.addStatFunc()

        {
          summon.altUseSkill(SkillTable.getInstance().getInfo(4140, summon.getSkillLevel(4140)), activeChar);
        }
        if(summon.getName().equalsIgnoreCase("Shadow"))
        {
          summon.addStatFunc(new FuncAdd(Stats.ABSORB_DAMAGE_PERCENT, 0x40, this, 15));
        }
        summon.setFollowStatus(true, true);
        break;
      case DECOY:
        if(activeChar.getPet() != null || activeChar.isMounted())
View Full Code Here

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

      return;
    }
    if (residence.isFunctionActive(ResidenceFunction.RESTORE_HP))
    {
      double value = 1. + (residence.getFunction(ResidenceFunction.RESTORE_HP).getLevel() / 100.);
      player.addStatFunc(new FuncMul(Stats.REGENERATE_HP_RATE, 0x30, residence, value));
    }
    if (residence.isFunctionActive(ResidenceFunction.RESTORE_MP))
    {
      double value = 1. + (residence.getFunction(ResidenceFunction.RESTORE_MP).getLevel() / 100.);
      player.addStatFunc(new FuncMul(Stats.REGENERATE_MP_RATE, 0x30, residence, value));
View Full Code Here

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

      player.addStatFunc(new FuncMul(Stats.REGENERATE_HP_RATE, 0x30, residence, value));
    }
    if (residence.isFunctionActive(ResidenceFunction.RESTORE_MP))
    {
      double value = 1. + (residence.getFunction(ResidenceFunction.RESTORE_MP).getLevel() / 100.);
      player.addStatFunc(new FuncMul(Stats.REGENERATE_MP_RATE, 0x30, residence, value));
    }
  }
 
  /**
   * Method onZoneLeave.
View Full Code Here

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

      }
    }
    if (spawn_captain && Rnd.chance(50))
    {
      NpcInstance captain = addSpawnToInstance(KechisCaptain3, new Location(npc.getX() - 60, npc.getY(), npc.getZ(), 32116), 0, world.instanceId);
      captain.addStatFunc(new FuncMul(Stats.POWER_ATTACK, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.MAGIC_ATTACK, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 5));
      captain.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, player, Rnd.get(1, 100));
    }
View Full Code Here

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

    }
    if (spawn_captain && Rnd.chance(50))
    {
      NpcInstance captain = addSpawnToInstance(KechisCaptain3, new Location(npc.getX() - 60, npc.getY(), npc.getZ(), 32116), 0, world.instanceId);
      captain.addStatFunc(new FuncMul(Stats.POWER_ATTACK, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.MAGIC_ATTACK, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 5));
      captain.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, player, Rnd.get(1, 100));
    }
    if (teleto != null)
View Full Code Here

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

    if (spawn_captain && Rnd.chance(50))
    {
      NpcInstance captain = addSpawnToInstance(KechisCaptain3, new Location(npc.getX() - 60, npc.getY(), npc.getZ(), 32116), 0, world.instanceId);
      captain.addStatFunc(new FuncMul(Stats.POWER_ATTACK, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.MAGIC_ATTACK, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 5));
      captain.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, player, Rnd.get(1, 100));
    }
    if (teleto != null)
    {
View Full Code Here

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

    {
      NpcInstance captain = addSpawnToInstance(KechisCaptain3, new Location(npc.getX() - 60, npc.getY(), npc.getZ(), 32116), 0, world.instanceId);
      captain.addStatFunc(new FuncMul(Stats.POWER_ATTACK, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.MAGIC_ATTACK, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, 5));
      captain.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 5));
      captain.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, player, Rnd.get(1, 100));
    }
    if (teleto != null)
    {
      Party party = player.getParty();
View Full Code Here

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

              actor.stopMove();
              actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 454, 1, 3000, 0));
              step_stage2 = 3;
              return true;
            case 3:
              actor.addStatFunc(new FuncMul(Stats.MAGIC_ATTACK_SPEED, 0x40, actor, 5));
              actor.addStatFunc(new FuncMul(Stats.MAGIC_DAMAGE, 0x40, actor, 10));
              actor.addStatFunc(new FuncMul(Stats.PHYSICAL_DAMAGE, 0x40, actor, 10));
              actor.addStatFunc(new FuncMul(Stats.RUN_SPEED, 0x40, actor, 3));
              actor.addSkill(SkillTable.getInstance().getInfo(1467, 1));
              actor.sendChanges();
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.