Hi all, I added this code to my project and even if player is lvl 1 and without sub he is getting nobless status. Could anyone help me? I want to give nobless status only for players who have active subclass and is level 75+ and send a message to let them know if they are under lvl 75 and dont have sub. Any help is welcome.
Edit: this code is inside l2raidbossinstance
if (player.isInParty())
{
if (getNpcId() == 25325) // barakielId = 25325;
{
for(L2PcInstance newNoble : player.getParty().getPartyMembers())
{
if (!player.isSubClassActive() || player.getLevel() >= 75 || player.isNoble())
{
newNoble.setNoble(true, true);
newNoble.sendMessage("You Are Now a Noble, You Are Granted With Noblesse Status, And Noblesse Skills.");
}
}
}
else
{
if (!player.isSubClassActive() || player.getLevel() < 75);
player.sendMessage("You don't have subclass level 75 or you are already nobless");
}
For wholesale clients
We understand that favorable terms are especially important when dealing with large volumes.
That’s why we offer a flexible system for wholesale clients we can discuss pricing and provide personalized solutions tailored to your needs.
With us, you get not only a reliable service but also support focused on long-term cooperation.
We value partners who operate at scale and do everything possible to make it convenient and profitable for you to grow together with Vibe SMS.
Website link — https://vibe-sms.net/
Our Telegram channel — https://t.me/vibe_sms
We ready to post first part of Patchnotes!
To avoid delaying the patch notes, we’ve decided to split them into two parts.
Right now, we’re publishing the patch notes focused on balance changes (skill changes).
In the second part, we’ll share details about gameplay updates, world changes, activities, and more.
- Patchnotes (last post on topic)
https://forum.lineage2dex.com/threads/16724/#post-72291
Question
ton3
Hi all, I added this code to my project and even if player is lvl 1 and without sub he is getting nobless status. Could anyone help me? I want to give nobless status only for players who have active subclass and is level 75+ and send a message to let them know if they are under lvl 75 and dont have sub. Any help is welcome.
Edit: this code is inside l2raidbossinstance
Edited by ton324 answers to this question
Recommended Posts