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");
}
Lineage II Classic Einhovant new project is looking for a skilled Java Developer to join our team!
If you're passionate about game development and eager to contribute to this project, we'd love to hear from you.
For more details, feel free to send us a message. Let’s create something amazing together!
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