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.
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
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"); }Edited by ton324 answers to this question
Recommended Posts