Package l2p.gameserver.skills.funcs

Examples of l2p.gameserver.skills.funcs.FuncMul


  private void reapplyFunc(L2NpcInstance actor, int minionCount)
  {
    actor.removeStatsOwner(this);
    if(minionCount > 0)
    {
      actor.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, minionCount));
      actor.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, minionCount));
    }
  }
View Full Code Here


              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, this, 5));
              actor.addStatFunc(new FuncMul(Stats.MAGIC_DAMAGE, 0x40, this, 10));
              actor.addStatFunc(new FuncMul(Stats.PHYSICAL_DAMAGE, 0x40, this, 10));
              actor.addStatFunc(new FuncMul(Stats.RUN_SPEED, 0x40, this, 3));
              actor.addSkill(SkillTable.getInstance().getInfo(1467, 1));
              actor.broadcastUserInfo(true);
              step_stage2 = 4;
              return true;
            case 4:
View Full Code Here

      }
    }
    if(spawn_captain && Rnd.chance(50))
    {
      L2NpcInstance 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)
    {
      L2Party party = player.getParty();
View Full Code Here

      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

    if(npcId == mSoI.idMonsterTumorOfDeath)
    {
      inst.countMob++;
      for(L2NpcInstance monster : player.getAroundNpc(1000, 500))
      {
        monster.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, 0.7));
        monster.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 0.7));
      }
      if(inst.countMob == 5)
      {
        inst.monsterYehanKlodekus = addSpawnToInstance(mSoI.idMonsterYehanKlodekus, mSoI.KlodekusLoc, 0, refId);
        inst.monsterYehanKlanikus = addSpawnToInstance(mSoI.idMonsterYehanKlanikus, mSoI.KlanikusLoc, 0, refId);
View Full Code Here

    //
    if(npcId == mSoI.idMonsterTumorOfDeath)
    {
      for(L2NpcInstance monster : inst.instance.getMonsters())
      {
        monster.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, 0.7));
        monster.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 0.7));
      }
    }
    else if(isQMob(npcId))
    {
      inst.countMob++;
View Full Code Here

        L2NpcInstance newNpc = addSpawnToInstance(SC, new Location(x, y, -6115, 16215), 0, world.instanceId);
        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

TOP

Related Classes of l2p.gameserver.skills.funcs.FuncMul

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.