Jump to content
  • 0

Obtain Noblesse By Killing Barakiel


Question

Posted

this is a code to get noble if u kill barakiel ..and i get 1 error ...i'm using l2jfrozen

 

ther error is on Hero. 

There is an auto-fix to import -->  import com.l2jfrozen.gameserver.model.entity.Hero;

the problem gets fixed....

 

but then there is 1 more problem at

setRBkilled

it says: create method setRBkilled ( int , int)' in type 'Hero' .

 

Could u help me fix it?

 



if (player.isInParty())
{
for (L2PcInstance member : player.getParty().getPartyMembers())
{
RaidBossPointsManager.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.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);
}
}



Recommended Posts

  • 0
Posted (edited)

so  i just delete this part?
 

Hero.getInstance().setRBkilled(member.getObjectId(), getNpcId());

Edited by protoftw
  • 0
Posted

According to this code, you will only get nobless if you kill npc with id 25325, you're not a nobless already, you are currently in a subclass and your level is 75 or above. :lol:

  • 0
Posted (edited)

i may not know how to read a code but i have to say thank you ..

 

but still doesnt work :P

Edited by protoftw
  • 0
Posted

 

int _barakielId = 25325;
if (getNpcId() == _barakielId  && player.getParty() != null)
{
for (final L2PcInstance member : player.getParty().getPartyMembers())
{
if (member.isSubClassActive() && member.getLevel() >= 75 && !member.isNoble())
  {
   member.setNoble(true);
member.broadcastPacket(new SocialAction( player.getObjectId(), 15));
member.sendMessage("You have received nobless status by killing Flame of Splendor Barakiel!");
  }
else 
if (!member.isSubClassActive() && member.getLevel() <= 75)
   {
member.sendMessage("You don't meet the required criteria. Your level is too low, you aren't on an active subclass or you are already nobless."); 
}
}
}
if (player.getParty() != null)
{
for (final L2PcInstance member : player.getParty().getPartyMembers())
{
RaidBossPointsManager.addPoints(member, getNpcId(), (getLevel() / 2) + Rnd.get(-5, 5));
}
}
else...................
  • 0
Posted (edited)

Da fak, this one is also wrong. You are not helping sharing wrong code.

Edited by SweeTs
  • 0
Posted

Da fak, this one is also wrong. You are not helping sharing wrong code.

how it works on my L2Athena and any other server i sold my files? >.< woot?

  • 0
Posted (edited)

how it works on my L2Athena and any other server i sold my files? >.< woot?

Sure thing, it's working fine (only for party btw), but could be done a lil bit better, If you don't see it.. Well, not my problem  :P

 

Damn this code formatting bugs.. That's why I said it's wrong :lol:

 

 

there are some optimizations you can do.  :lol:

Hell yeah, which should be done there.. But you know, frozen sources, so he must keep the standard of shiet code  :lol:

Edited by SweeTs

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

    • L2Virus the one who buyed those files from me.
    • Hi ️ Are you a supplier or do you have your own modem and are looking for a place to sell numbers?  SMS.PRO - The best option for selling your numbers  You choose the selling price yourself  Sale option: public (to everyone) or private (you choose who you want to sell to)  Everything works automatically  The simplest possible connection  Visit the website SMS.PRO and start selling your numbers.  Support @alismsorg_bot
    • Good luck to anyone playing on this server . Kamael items are bugged ( stats are insane ) Commands not working properly ( .getreward for example  ... gives u free reward without voting ). When i had those files , i fixed most of the stuff .   Every 2-3 years , he closes the server because players report bugs to him about items , he dont know how to fix then he repeating the process again https://ibb.co/Fkv7y9hJ https://ibb.co/fdYP2bVQ https://ibb.co/sp1f8C61 https://ibb.co/CKZnCgL7 https://ibb.co/Z6GktJgP  
    • Hello and welcome Server started 2026-01-05 Web site: https://l2dragonlands.eu Discrod: https://discord.gg/ngQUY8FB8G Rates >Xp x500 >Sp x500 >Drop x25 >Spoil x25 Enchant rates: Safe/max enchant +500  Blessed and simple scrolls max enchant (+200)  Enchant maneger to make +500.  In server items are progresed in tiers. Weapons: Starter > Vesper > Vorpal > Elegia > Ferrum. Armors: Starter > Moirai > Vesper > Vesper Noble > Vorpal > Elegia > Scarlet. Jewels: Starter > Vesper > Vorpal > Elegia > Ferrum. Cloaks: Pearl White > Pitch Black > Frintezza > Class Cloka > Hero > Scarlet. Acessories: Goblin Circlet 1/2lvl > Half Mask Mage 1/2lvl > Half Mask Fighter 1/2lvl > Flame of valakas > Gem Mask > Ferrum Helmet. Belt: Mithril Belt > Vitality Belt. Badges: For fighter and mage from 1lvl to 6lvl upgraded in order. Bracelets: Mithril > Shiny Fighter/Mage > 1/2lvl custom talismans in bracelest. Agathion: 7 tiers upgrade in order eatch one. Clan item shop/ New weapon Spadona upgradeble from 1lvl till 85lvl. Farm zones in order: >Giran Harbor > WasteLand > Gateway > Valley of Saints > Chromatic > Ruins of Despair > Soul Harbor > Dragon Valley. >LvL up zone >PvP zone Custom instance zone. Custom buff maneger it will grand big boost in stats. Lotery maneger to gamble. Extra features ALT+B: >Events  >Rankings  >Clan  >RB Status  >Updates and other Auto Event system: >Team VS Team event - Auto event  >Capture The Flag - Auto event Olympiad: >Retail olympiad game  >Competition period [2] week  >Olympiad start time [18:00] end [00:00]  >Maximum enchant in the Olympiad is +10, not custom items in olympiada only normal ones from shop.
    • L2 VOID - ADVERTISING BANNER   L2 FURY - ANIMATED BANNER   L2 HEROIC - ANIMATED BANNER   L2 WEED - ANIMATED BANNER   L2 REFORGE - ANIMATED LOGO   L2 WARZONE - ANIMATED LOGO   L2 ACME - SPLASH SCREEN   L2 DRUGS - ANIMATED BANNER   L2 GOLD - ADVERTISING BANNER   L2 AARON - ADVERTISING BANNER  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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