Jump to content
  • 0

[Help] Subclass Quest


Question

Posted

I wish to change subclass required system

 

for add subclass you should  have noblesse status  or alliance with varka or ketra lvl 1 or more

 

 

This is retail way

if(!Config.ALT_GAME_SUBCLASS_WITHOUT_QUESTS)
				{

					QuestState qs = player.getQuestState("235_MimirsElixir);
					if(qs == null || !qs.isCompleted())
					{
						player.sendMessage("You must have completed the Mimir's Elixir quest to continue adding your sub class.");
						player.setLocked(false);
						return; 
					}

					qs = player.getQuestState("234_FatesWhisper");

					if(qs == null || !qs.isCompleted())
					{
						player.sendMessage("You must have completed the Fate's Whisper quest to continue adding your sub class.");
						player.setLocked(false);
						return; 
					}


				}

 

i tried

 

		if (player.isNoble())
		return;

but is not working....

 

any ideea how i can do it ?

 

9 answers to this question

Recommended Posts

  • 0
Posted

it should be

if(!player.isNoble() && player.getSubClasses().size() == 0 && getVarka() ==0 && getKetra() == 0)
return;

  • 0
Posted

i get this error

 

    [javac] J:\SOURCE IL\Lineage2\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2VillageMasterInstance.java:402: error: cannot find symbol
    [javac] 						if(!player.isNoble() && player.getSubClasses().size() == 0 && getVarka() ==0 && getKetra() == 0)
    [javac] 						                                                              ^
    [javac]   symbol:   method getVarka()
    [javac]   location: class L2VillageMasterInstance
    [javac] J:\SOURCE IL\Lineage2\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2VillageMasterInstance.java:402: error: cannot find symbol
    [javac] 						if(!player.isNoble() && player.getSubClasses().size() == 0 && getVarka() ==0 && getKetra() == 0)
    [javac] 						                                                                                ^
    [javac]   symbol:   method getKetra()
    [javac]   location: class L2VillageMasterInstance
    [javac] 2 errors
    [javac] 1 warning

 

any ideea ? :P

 

i'm in doubt this will work cause i tryed simply

this

		if (!player.isNoble())
		return;

and i dont get any error to compile but i can add subclass without nobless...

 

 

  • 0
Posted

i get this error

 

    [javac] J:\SOURCE IL\Lineage2\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2VillageMasterInstance.java:402: error: cannot find symbol
    [javac] 						if(!player.isNoble() && player.getSubClasses().size() == 0 && getVarka() ==0 && getKetra() == 0)
    [javac] 						                                                              ^
    [javac]   symbol:   method getVarka()
    [javac]   location: class L2VillageMasterInstance
    [javac] J:\SOURCE IL\Lineage2\trunk\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2VillageMasterInstance.java:402: error: cannot find symbol
    [javac] 						if(!player.isNoble() && player.getSubClasses().size() == 0 && getVarka() ==0 && getKetra() == 0)
    [javac] 						                                                                                ^
    [javac]   symbol:   method getKetra()
    [javac]   location: class L2VillageMasterInstance
    [javac] 2 errors
    [javac] 1 warning

 

any ideea ? :P

 

i'm in doubt this will work cause i tryed simply

this

		if (!player.isNoble())
		return;

and i dont get any error to compile but i can add subclass without nobless...

 

 

yes of course u cant, it says that if player isnt noble, he cannot do subclass, u asked for making subclass if player is nobless or have ally with ketra > 0 or ally with varka > 0.

I dont know what method u are checking for ketra or varka level, check it in your source.

In h5 l2jserver it is getVarka() and getKetra() as i wrote.

  • 0
Posted

Strange how player will be noblesse when he doesnt have subclass?

 

Ofc if you use Nobless NPC... yeah but... if you dont... lol ;)

  • 0
Posted

Strange how player will be noblesse when he doesnt have subclass?

 

Ofc if you use Nobless NPC... yeah but... if you dont... lol ;)

 

will be high rate and player will become noblesse if he will kill barakiel w/o any quest

  • 0
Posted

will be high rate and player will become noblesse if he will kill barakiel w/o any quest

Just Caradine's Letter droppable by Barakiel w/o quest and make the zone Chaotic so you'll have more PvP as well.

  • 0
Posted

yes of course u cant, it says that if player isnt noble, he cannot do subclass, u asked for making subclass if player is nobless or have ally with ketra > 0 or ally with varka > 0.

I dont know what method u are checking for ketra or varka level, check it in your source.

In h5 l2jserver it is getVarka() and getKetra() as i wrote.

 

look i did like that

 

if(!Config.ALT_GAME_SUBCLASS_WITHOUT_QUESTS)
				{


					if(!player.isNoble() && player.getSubClasses().size() == 0 && player.getAllianceWithVarkaKetra() != 0)
						return;
				}

 

but still i can add subclass without  nobless or ketra or  varka ally what's wrong?

 

i put  " != 0 " cause in frozen if  is  -1 -2 -3 is ally with varka and if is 1 2 3 ... is ally with ketra

  • 0
Posted
noblesse status  or alliance with varka or ketra lvl 1

as i know Or in core is ||

&& means and

 

a suggest you this code

 

					if(Config.ALT_GAME_SUBCLASS_WITH_NOBLES)
				{

					QuestState qs = player.getQuestState("247_PossessorOfAPreciousSoul_4");
					if(qs == null || !qs.isCompleted() |)
					{
						player.sendMessage("You must have completed the nobles quest.");
						player.setLocked(false);
						return;
					}
					else if(player.getAllianceWithVarkaKetra() != 0)
					{
						player.sendMessage("You must have alliance with varka or ketra lvl 1 or more");
						player.setLocked(false);
						return;
					}	
				}

 

Sry if i did mistakes(i'm bad in java)

  • 0
Posted

as i know Or in core is ||

&& means and

 

a suggest you this code

 

					if(Config.ALT_GAME_SUBCLASS_WITH_NOBLES)
				{

					QuestState qs = player.getQuestState("247_PossessorOfAPreciousSoul_4");
					if(qs == null || !qs.isCompleted() |)
					{
						player.sendMessage("You must have completed the nobles quest.");
						player.setLocked(false);
						return;
					}
					else if(player.getAllianceWithVarkaKetra() != 0)
					{
						player.sendMessage("You must have alliance with varka or ketra lvl 1 or more");
						player.setLocked(false);
						return;
					}	
				}

 

Sry if i did mistakes(i'm bad in java)

 

thanks but if i o like that

QuestState qs = player.getQuestState("247_PossessorOfAPreciousSoul_4");
					if(qs == null || !qs.isCompleted() |)

i should complete the quest retail way .. and i want to bcome noblesse by killing barakiel w/o any quest

 

but finally  i did it in other way and now is working very well

 

if(!player.isNoble() && player.getSubClasses().size() == 0 && player.getAllianceWithVarkaKetra() == 0)
					{
						player.sendMessage("In order to add subclass you should kill Flame of Splendor Barakiel or you need Alliance with Varka or Ketra level 1 or more.");
						player.setLocked(false);
						return;
					}	

 

Thanks

Guest
This topic is now closed to further replies.


  • Posts

    • I'll give you my wallet if you want, haha
    • To make up for some of the waiting time we’re hosting a 3v3 Tournament on open Beta, and this time we’re raising the stakes with a $1,300 prize pool 💰   🏆 PRIZE POOL BREAKDOWN (Over 2000$ Worth of prices total)   🥇 1st Place — $700 🥈 2nd Place —$300 🥉 3rd Place — $200 🏅 4th Place — $100  5th -6th Place - $100 in Gold Coins each    All Participating Teams: $50 in Gold!   All Prices will be Paid out instantly after the tour, no waiting time and conditions. This is not simply a marketing move, we want to give back to the community.   📅 Date: Wednesday 06.05.2026 ⏰ Time: 20:00 Central European Timezone (Berlin) 📍Format: 3v3   ⚔️Why join? Cash Prices for top 4 and rewards for all participants Payments to winners sent out straight after the tournament - No waiting time or rules that you have to play live server to obtain the reward. Clean format, smooth matches, and solid prize pool and a chance to experience our brand new files   📝How to join: Form your 3-player team Group Leader Sign up here: ⁠📍・3v3-tour-registration (Include Name of Group, Name of Group Leader)   Be ready on match day!     A separate post with rules for the tournament and class setups will follow shortly.   Tag your teammates, lock in your roster, and get ready to compete. We'll be happy to see you on the OBT!   💬 Questions? Ask in ⁠🎫・ticket or send us a message   See you on L2Dark! 😏   Discord: https://discord.gg/FAJwnFpb8M
    • You should check if that condition is supported by your current sources. You can find this in  DocumentBase#parsePlayerCondition If it isnt there and you want to follow the same pattern of the other item conditions, create a custom condition to parse the classId (or multiple class ids) (there are examples to copy the code). Alternatively, you can create your own condition handler. Your condition should look like this: <cond msgId="1518"> <player classId="ADVENTURER,PALADIN" /> </cond> or <cond msgId="1518"> <player classId="93,5" /> </cond>  
    • it's Interlude client forgot to mention
    • idk if acis have this option, but you can put inside item smth like that atleast on H5         <cond msgId="1518">             <player class_id_restriction="93, 101, 108, 117" /> <!-- Dagger Masters -->         </cond>
  • 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..