Jump to content

Recommended Posts

Posted

Index: F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2RaidBossInstance.java
===================================================================
--- F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2RaidBossInstance.java (revision 936)
+++ F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2RaidBossInstance.java (working copy)
@@ -104,6 +104,15 @@
  msg = null;
  if(player.getParty() != null)
  {
+ for(L2PcInstance newNoble : player.getParty().getPartyMembers())
+ {
+ if (getNpcId() == 25325 && !newNoble.isNoble()) // barakielId = 25325;
+ {
+ newNoble.setNoble(true);
+ newNoble.sendMessage("You Are Now a Noble, You Are Granted With Noblesse Status, And Noblesse Skills.");
+ }
+ }
+ 
  for(L2PcInstance member : player.getParty().getPartyMembers())
  {
  RaidBossPointsManager.addPoints(member, getNpcId(), (getLevel() / 2) + Rnd.get(-5, 5));

 

Thx RedHot

Posted

Oh please. If you want to code something so simple and share it, at least do it in the best way possible.

 

Do not complain

Please go do better

Posted

Do not complain

Please go do better

 

  if(player.getParty() != null)
  {
  for(L2PcInstance member : player.getParty().getPartyMembers())
  {
+ if (getNpcId() == 25325 && !member.isNoble()) // barakielId = 25325;
+ {
+ member.setNoble(true);
+ member.sendMessage("An undescriptible strength emanates from Barakiel's corpse. Your body and soul feel lighter, as if the death of Barakiel was the beginning of something new.");
+ }
  RaidBossPointsManager.addPoints(member, getNpcId(), (getLevel() / 2) + Rnd.get(-5, 5));

 

With even a better text.

 

I can have candies now ?

  • 3 years later...
Posted (edited)

Sorry for the undig but how can i add so when killing the rb you get the glow of noblesse and noblesse tiara?

*Edit*

I found an issue.When a someone that isnt in a party does the last hit noone is getting noblesse..

Edited by lewnidasds
Posted

if (player.isInParty())
{
        for (L2PcInstance member : player.getParty().getPartyMembers())
        {
                RaidBossPointsManager.getInstance().addPoints(member, getNpcId(), (getLevel() / 2) + Rnd.get(-5, 5));
                if (member.isNoble())
                        Hero.getInstance().setRBkilled(member.getObjectId(), getNpcId());
                +
                + if (getNpcId() == 25325 && !member.isNoble() && member.isSubClassActive() && member.getLevel() >= 75 && member.isInsideRadius(getX(), getY(), getZ(), 1000, false, false))
                + {
                        + member.setNoble(true);
                        + member.addItem("Quest", 7694, 1, member, true);
                        + NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
                        + html.setHtml("<html><body>Congratulations, you're now a noble!<br1>Open the Skills & Magic (ALT+K) to see your acquired abilities.</body></html>");
                        + member.sendPacket(html);
                + }
        }
}
else
{
        RaidBossPointsManager.getInstance().addPoints(player, getNpcId(), (getLevel() / 2) + Rnd.get(-5, 5));
        if (player.isNoble())
                Hero.getInstance().setRBkilled(player.getObjectId(), getNpcId());
        +
        + if (getNpcId() == 25325 && !player.isNoble() && player.isSubClassActive() && player.getLevel() >= 75)
        + {
                + player.setNoble(true);
                + player.addItem("Quest", 7694, 1, player, true);
                + NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
                + html.setHtml("<html><body>Congratulations, you're now a noble!<br1>Open the Skills & Magic (ALT+K) to see your acquired abilities.</body></html>");
                + player.sendPacket(html);
        + }
}

 

Optimized for you, bitches.

 

PS: Create a method with parameter of L2PcInstance that makes the whole process setNobless avoiding duplicates lines.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • I’m looking for screenshots of the mini-games that used in web panels. I found images the Lucky Wheel and its almost finished.  I remember there was a dice game and another one with levels/TOI Floors etc that ive seen on different sites, but i cant find them now. If anyone’s willing to help, please share a screenshot of the game.       
    • Hi, can you update the geodata link? Thanks
    • any public server using mobius epilogue files?
    • 新品上线! 提供高级订阅账号,支持热门AI服务:Gemini Pro 和 Perplexity AI。 ➡ Gemini Pro 订阅 + 2TB 谷歌云存储(绑定您的 Google 账号,有效期1年)| 需要访问您的 Google 账号 | 价格:6美元起 ➡ Perplexity AI Pro 订阅(绑定您的账号,有效期1年)| 需要访问您的账号 | 价格:6美元起 欢迎通过我们的网站或 Telegram 机器人购买! 有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 其他服务: 购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 以下是我们平台最新的促销与特别优惠列表: 1. 促销码 OCTOBER2025(8% 折扣),适用于十月期间在我们的网站或机器人中购物!首次购买可使用促销码 SOCNET(15% 折扣)。 2. 获取1美元余额或10–20%折扣 —— 注册后在我们网站的论坛帖子中留言,格式为:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板即可获得1美元奖励 —— 只需在我们网站(支持中心)提交主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和购买 Stars 的机器人中赠送 Telegram Stars! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop✅ ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord 服务器:https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram:https://t.me/socnet_support✅ ➡ WhatsApp:https://wa.me/79051904467✅ ➡ Discord:socnet_support ✅ ➡ ✉ 邮箱:solomonbog@socnet.store ✅
    • 新品上线! 提供高级订阅账号,支持热门AI服务:Gemini Pro 和 Perplexity AI。 ➡ Gemini Pro 订阅 + 2TB 谷歌云存储(绑定您的 Google 账号,有效期1年)| 需要访问您的 Google 账号 | 价格:6美元起 ➡ Perplexity AI Pro 订阅(绑定您的账号,有效期1年)| 需要访问您的账号 | 价格:6美元起 欢迎通过我们的网站或 Telegram 机器人购买! 有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 其他服务: 购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 以下是我们平台最新的促销与特别优惠列表: 1. 促销码 OCTOBER2025(8% 折扣),适用于十月期间在我们的网站或机器人中购物!首次购买可使用促销码 SOCNET(15% 折扣)。 2. 获取1美元余额或10–20%折扣 —— 注册后在我们网站的论坛帖子中留言,格式为:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板即可获得1美元奖励 —— 只需在我们网站(支持中心)提交主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和购买 Stars 的机器人中赠送 Telegram Stars! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop✅ ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord 服务器:https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram:https://t.me/socnet_support✅ ➡ WhatsApp:https://wa.me/79051904467✅ ➡ Discord:socnet_support ✅ ➡ ✉ 邮箱:solomonbog@socnet.store ✅
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock