Examples of altUseSkill()


Examples of l2p.gameserver.model.L2Playable.altUseSkill()

      {
        clientActionFailed();
      }
      else
      {
        actor.altUseSkill(skill, target);
      }
      return;
    }
    // Если не можем кастовать, то использовать скилл позже
    if(actor.isActionsDisabled())
View Full Code Here

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

      // informations
      activeChar.sendMessage("Changed enchantment of " + player.getName() + "'s " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
      player.sendMessage("Admin has changed the enchantment of your " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
      if(activeChar != player && ench >= (itemInstance.getItem().getType2() == L2Item.TYPE2_WEAPON ? 6 : 5))
      {
        player.altUseSkill(SkillTable.getInstance().getInfo(21006, 1), player);
        player.broadcastPacket(new SystemMessage(SystemMessage.C1_HAS_SUCCESSFULY_ENCHANTED_A__S2_S3).addName(player).addNumber(ench).addItemName(itemInstance.getItemId()));
      }
      if(Config.ProtectEnchantGMEnable && ench > Config.ProtectEnchantGMMax)
      {
        mOption.banAcc(activeChar, "ProtectEnchantGM");
View Full Code Here

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

              target = owner.getPet();
            }
            double hpp = target.getCurrentHpPercents();
            if(hpp < 95 && Rnd.chance(hpp > 60 ? 44 : hpp > 30 ? 66 : 100))
            {
              owner.altUseSkill(skill, target);
              return;
            }
          }
        }
        if(targetStoreId != 0)
View Full Code Here

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

            return;
          }
          L2Skill skill = _offensiveSkills.get(Rnd.get(_offensiveSkills.size()));
          if(Rnd.chance(_type.chance) && skill.checkCondition(owner, target, false, false, true))
          {
            owner.altUseSkill(skill, target);
            return;
          }
        }
      }
      catch(final Exception e)
View Full Code Here

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

      }
      try
      {
        if(Rnd.chance(50) && skill.checkCondition(owner, target, false, false, true))
        {
          owner.altUseSkill(skill, target);
          owner.broadcastPacket(new MagicSkillUse(owner, target, skill.getId(), 1, 0, 0));
        }
      }
      catch(final Exception e)
      {
View Full Code Here

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

      addItem(player, Rnd.get(9156, 9157), 1);
    }
    // 14 lvl cry                        0.2%
    else if(chance < 999000)
    {
      player.altUseSkill(SkillTable.getInstance().getInfo(21006, 1), player);
      addItem(player, Rnd.get(9570, 9572), 1);
    }
    // 15 lvl cry                        0.1%
    else if(chance <= 1000000)
    {
View Full Code Here

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

      addItem(player, Rnd.get(9570, 9572), 1);
    }
    // 15 lvl cry                        0.1%
    else if(chance <= 1000000)
    {
      player.altUseSkill(SkillTable.getInstance().getInfo(21006, 1), player);
      addItem(player, Rnd.get(10480, 10482), 1);
    }
  }

  public String DialogAppend_13184(Integer val)
View Full Code Here

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

      Log.add(activeChar.getName() + "|Successfully enchanted|" + itemToEnchant.getItemId() + "|to+" + itemToEnchant.getEnchantLevel() + "|" + chance, "enchants");
      Log.LogItem(activeChar, Log.EnchantItem, itemToEnchant);
      activeChar.sendPacket(EnchantResult.SUCESS);
      if(Config.EnableFireworksEnhant && itemToEnchant.getEnchantLevel() >= (itemType == L2Item.TYPE2_WEAPON ? Config.FireworksEnhantWeapon : Config.FireworksEnhantArmor))
      {
        activeChar.altUseSkill(SkillTable.getInstance().getInfo(21006, 1), activeChar);
        activeChar.broadcastPacket(new SystemMessage(SystemMessage.C1_HAS_SUCCESSFULY_ENCHANTED_A__S2_S3).addName(activeChar).addNumber(itemToEnchant.getEnchantLevel()).addItemName(itemToEnchant.getItemId()));
      }
    }
    else
    {
View Full Code Here

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

    if(isGiftRecivedToday(player))
    {
      show(Files.read(msgAlreadyRecived, player), player, npc);
      return;
    }
    npc.altUseSkill(SkillTable.getInstance().getInfo(BIRTHDAY_CAKE, 1), player);
    addItem(player, HAT, 1);
    show(Files.read("data/html/default/32600-2.htm ", player), player, npc);
    long now = System.currentTimeMillis() / 1000;
    player.setVar("Birthday", String.valueOf(now));
    DecayTaskManager.getInstance().addDecayTask(npc);
View Full Code Here

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

        summon.setRunning();
        activeChar.setPet(summon);
        summon.spawnMe(loc == null ? GeoEngine.findPointToStay(activeChar.getX(), activeChar.getY(), activeChar.getZ(), 100, 150, activeChar.getReflection().getGeoIndex()) : loc);
        if(summon.getSkillLevel(4140) > 0)
        {
          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));
        }
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.