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

    • Sell ready interlude server files, with all popular features and tested, stable source + fully functional premium geodata for free.   Features include: Events: DM CTF TVT LM Dressme system Custom Buffer GM Shop Custom community board Donation manager  Auto Farm   Album: sell c6 — ImgBB   Test Server online: Patch link: https://drive.google.com/file/d/1mvEbv9XESsvfWwc638xFyyzyESeE2U95/view?usp=drive_link Auto acc create and auto admin   Price: 300$. Discord: l2retro
    • Faltan demasiados archivos,  y lógicas en clases claves como L2pcInstance, entre otras. si bien muchas cosas están y el flujo es valorable.  Gracias por tu esfuerzo es bastante... pero realmente no esta completo el código, falta que subas todas las modificaciones en clases colaterales... podrías intentar subir un diff de todo el mod  completo de tu pack y bueno ahí si que cada uno adapte... pero faltan muchas cosas, dudo que haya gente que lo haya echo funcionar con esto... 
    • I know people who have fully bypassed and reversed AAC. One day, they might even release the full source code, but for now, they’re still making money off it. I won’t name anyone, but it’s clear that there aren’t any truly solid anticheats for Lineage2. As I’ve said before, kernel level anticheats are the only real solution. Anything that runs as Internal and injects gets flagged, and your account ends up getting kicked or banned. That’s just how most games handle it nowadays. To TL;DR the whole thing cheating will always exist because there are people out there smart enough to bypass any protection and run private cheats. Public cheats are always detected eventually, so I don’t see any point in buying AAC, especially when they claim it blocks adr, which simply isn’t true.
    • 🌐 Website: https://l2adonis.com 📅 GRAND OPENING: July 18, 2025 – 20:00 (UTC+2) 💬 Discord: https://discord.com/invite/tZBj8JxAwx 🚫 No auto-farm • No auto-macro • No pay-to-win • No custom   Some Basic Info's (More detalied info's on website)  EXP/SP: x25  Adena: x15  Drop: x15  Spoil: x15  Seal Stones: x15  Raid Boss Drop: x10  Epic Boss Drop: x1  Manor: x10  Safe Enchant: +4  Max Enchant: +16  Normal Scroll Chance: 50%  Blessed Scroll Chance: 66% (If enchant fail item remain +4)  Buff Slots (30+4 extra with Divine Inspiration)  Dances/Songs Slots 14  Auto-learn skills  ⚔️ Real PvP • Real Progression • Retail-like experience JOIN NOW and relive the real L2 experience!
    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market Auto Buy Store  : https://utchihamkt.mysellauth.com/ Not sure if we’re legit? Check Our server — real reviews, real buyers https://discord.gg/uthciha-servicess  | https://campsite.bio/utchihaamkt
  • Topics

×
×
  • Create New...

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