Examples of addExpAndSp()

  • com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.addExpAndSp()
  • com.l2jfrozen.gameserver.model.actor.instance.L2PetInstance.addExpAndSp()
  • l2p.gameserver.model.L2Character.addExpAndSp()
  • l2p.gameserver.model.L2Player.addExpAndSp()
    Добавляет чару опыт и/или сп с учетом личного бонуса
  • lineage2.gameserver.model.Playable.addExpAndSp()
    Method addExpAndSp. @param exp long @param sp long
  • lineage2.gameserver.model.Player.addExpAndSp()
    Method addExpAndSp. @param exp long @param sp long
  • lineage2.gameserver.model.quest.QuestState.addExpAndSp()
    Method addExpAndSp. @param exp long @param sp long
  • net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.addExpAndSp()
  • net.sf.l2j.gameserver.model.actor.instance.L2PetInstance.addExpAndSp()

  • Examples of lineage2.gameserver.model.Player.addExpAndSp()

          Functions.removeItem(activeChar, SkillTreeTable.NEW_SAFE_ENCHANT_BOOK, 1);
        }
        if (Rnd.chance(rate))
        {
          activeChar.addSkill(skill, true);
          activeChar.addExpAndSp(0, -1 * requiredSp);
          Functions.removeItem(activeChar, 57, requiredAdena);
          activeChar.sendPacket(new SystemMessage(SystemMessage.SP_HAS_DECREASED_BY_S1).addNumber(requiredSp), new SystemMessage(SystemMessage.SUCCEEDED_IN_ENCHANTING_SKILL_S1).addSkillName(_skillId, _skillLvl), new ExEnchantSkillResult(1));
          activeChar.sendSkillList();
          RequestExEnchantSkill.updateSkillShortcuts(activeChar, _skillId, _skillLvl);
          Log.add(activeChar.getName() + "|Successfully safe enchanted|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
    View Full Code Here

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

            {
              Functions.addItem(player, 13067, count);
             
              int exp = count * 2880;
              int sp = count * 288;
              player.addExpAndSp(exp, sp);
            }
          }
         
          player.removeEvent(this);
         
    View Full Code Here

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

          }
          Functions.removeItem(activeChar, SkillTreeTable.NEW_ENCHANT_BOOK, 1);
        }
        if (Rnd.chance(rate))
        {
          activeChar.addExpAndSp(0, -1 * requiredSp);
          Functions.removeItem(activeChar, 57, requiredAdena);
          activeChar.sendPacket(new SystemMessage(SystemMessage.SP_HAS_DECREASED_BY_S1).addNumber(requiredSp), new SystemMessage(SystemMessage.SUCCEEDED_IN_ENCHANTING_SKILL_S1).addSkillName(_skillId, _skillLvl), new ExEnchantSkillResult(1));
          Log.add(activeChar.getName() + "|Successfully enchanted|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
        }
        else
    View Full Code Here

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

        {
          return;
        }
        if (exp > 0)
        {
          player.addExpAndSp((long) (exp * getRateQuestsReward()), 0);
        }
        if (sp > 0)
        {
          player.addExpAndSp(0, (long) (sp * getRateQuestsReward()));
        }
     
    View Full Code Here

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

        {
          player.addExpAndSp((long) (exp * getRateQuestsReward()), 0);
        }
        if (sp > 0)
        {
          player.addExpAndSp(0, (long) (sp * getRateQuestsReward()));
        }
      }
     
      /**
       * Method addNotifyOfDeath.
    View Full Code Here

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

            return;
          }
          Functions.removeItem(activeChar, SkillTreeTable.NEW_CHANGE_ENCHANT_BOOK, 1);
        }
        Functions.removeItem(activeChar, 57, requiredAdena);
        activeChar.addExpAndSp(0, -1 * requiredSp);
        int levelPenalty = Rnd.get(Math.min(4, _skillLvl % 100));
        _skillLvl -= levelPenalty;
        if ((_skillLvl % 100) == 0)
        {
          _skillLvl = sl.getBaseLevel();
    View Full Code Here

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

            activeChar.sendPacket(Msg.ITEMS_REQUIRED_FOR_SKILL_ENCHANT_ARE_INSUFFICIENT);
            return;
          }
          Functions.removeItem(activeChar, SkillTreeTable.UNTRAIN_NEW_ENCHANT_BOOK, 1);
        }
        activeChar.addExpAndSp(0, sl.getCost()[1] * sl.getCostMult());
        activeChar.addSkill(newSkill, true);
        if (_skillLvl > 100)
        {
          SystemMessage sm = new SystemMessage(SystemMessage.Untrain_of_enchant_skill_was_successful_Current_level_of_enchant_skill_S1_has_been_decreased_by_1);
          sm.addSkillName(_skillId, _skillLvl);
    View Full Code Here

    Examples of lineage2.gameserver.model.quest.QuestState.addExpAndSp()

              htmltext = "33358-05.htm";
            }
            else if (st.getCond() == 3)
            {
              htmltext = "33358-07.htm";
              st.addExpAndSp(3000000, 2500000);
              player.getInventory().getItemByItemId(CON4);
              st.exitCurrentQuest(false);
            }
          }
          else if (st.isCompleted())
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.addExpAndSp()

        }
        if(expval != 0 || spval != 0)
        {
          //Common character information
          player.sendMessage("Admin is adding you "+expval+" xp and "+spval+" sp.");
          player.addExpAndSp(expval,spval);
          //Admin information
          activeChar.sendMessage("Added "+expval+" xp and "+spval+" sp to "+player.getName()+".");
          if (Config.DEBUG)
            _log.fine("GM: "+activeChar.getName()+"("+activeChar.getObjectId()+") added "+expval+
                " xp and "+spval+" sp to "+player.getObjectId()+".");
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.addExpAndSp()

                    if (pXp > tXp)
                    {
                      targetPlayer.removeExpAndSp(pXp - tXp, 0);
                    } else if (pXp < tXp)
                    {
                      targetPlayer.addExpAndSp(tXp - pXp, 0);
                    }
                  }
                  else
                  {
                        activeChar.sendMessage("You must specify level between 1 and "+ Experience.MAX_LEVEL+".");
    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.