Package l2p.gameserver.model

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


              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

            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

      }
      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

      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

      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

      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

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.