Examples of updateStats()


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

      }
    }
    if(update)
    {
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }
}
View Full Code Here

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

      player.removeSkill(enchant4Skill, false);
    }
    if(itemSkills != null || enchant4Skill != null)
    {
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }

  public void notifyEquipped(int slot, L2ItemInstance item)
  {
View Full Code Here

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

      player.addSkill(enchant4Skill, false);
    }
    if(itemSkills != null || enchant4Skill != null)
    {
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }
}
View Full Code Here

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

      warehouse.addItem(inventory.dropItem(itemToStore, _items.get(itemToStore.getObjectId()), false), activeChar.getName());
    }
    // Платим налог
    activeChar.reduceAdena(fee, true);
    // Обновляем параметры персонажа
    activeChar.updateStats();
  }
}
View Full Code Here

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

        }
        var += skill.getId();
        activeChar.setVar("TransferSkills" + item_id, var);
      }
      activeChar.addSkill(skill, true);
      activeChar.updateStats();
      activeChar.sendUserInfo(true);
    }
    else
    {
      int _requiredSp = SkillTreeTable.getInstance().getSkillCost(activeChar, skill);
View Full Code Here

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

        activeChar.addSkill(skill, true);
        if(!SkillLearn.common && !SkillLearn.transformation)
        {
          activeChar.setSp(activeChar.getSp() - _requiredSp);
        }
        activeChar.updateStats();
        activeChar.sendUserInfo(true);
        //update all the shortcuts to this skill
        if(_level > 1)
        {
          for(L2ShortCut sc : activeChar.getAllShortCuts())
View Full Code Here

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

      activeChar.sendActionFailed();
      return;
    }
    dropedItem.dropToTheGround(activeChar, _loc);
    Log.LogItem(activeChar, Log.Drop, dropedItem);
    activeChar.updateStats();
  }
}
View Full Code Here

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

      {
        taxRate = castle.getTaxRate();
      }
    }
    activeChar.sendPacket(/*new ExRefundList(activeChar), */new ExBuySellList(TradeController.getInstance().getBuyList(_listId), activeChar, taxRate).done());
    activeChar.updateStats();
  }
}
View Full Code Here

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

      {
        return;
      }
      L2ItemInstance ri = player.getInventory().destroyItem(item, 1, true);
      player.addSkill(skill, true);
      player.updateStats();
      player.sendChanges();
      player.sendPacket(SystemMessage.removeItems(ri.getItemId(), 1), new SkillList(player));
      // Анимация изучения книги над головой чара (на самом деле, для каждой книги своя анимация, но они одинаковые)
      player.broadcastPacket(new MagicSkillUse(player, player, 2790, 1, 1, 0));
    }
View Full Code Here

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

    {
      castle.addToTreasury(tax, true, false);
      Log.add(castle.getName() + "|" + tax + "|BuyItem", "treasury");
    }
    sendPacket(new ExBuySellList(list, activeChar, taxRate).done());
    activeChar.updateStats();
  }

  private static final TradeItem getItemByItemId(int itemId, NpcTradeList list)
  {
    for(TradeItem ti : list.getItems())
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.