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

    • IAM one of customers of this project. Have anti cheat, have user panel everything is working. Blocking adrenaline trashy plans without any problems.  So just GL for all lin2 project. I get support every time I need it. 
    • Convert package formats from Old to New in one click Create new packages of any format Lineage2Ver121 encryption (included in the package) Safe editing: work in a copy, full undo history (Ctrl+Z / Ctrl+Shift+Z), single "Save" button System integration Open .utx / .ugx files with a single click in Explorer (associations are registered during installation) One example: open a file and add its tab to an existing window Multilingual interface (EN, RU, UK, ES, PT, EL, KO, VI, ZH) — the language is picked up from the system Supported formats Packages: UTX, UGX Textures: RGBA8, DXT1, DXT3, DXT5, G16, P8 Resources: GFX (Scaleform) Requirements Windows. Java is not required—it's included in the build. Installation Run La2Tools-3.0.2.exe—the installer will create shortcuts and register related files. Alternatively, use the portable version. https://la2.tools/files/La2Tools_3.0.3_setup.exe   https://la2.tools/files/La2Tools_3.0.3_portable.zip  - Portable version  
    • WHEN SAYING “YES” IS A MISTAKE Not every project is worth taking on, even if the client is ready to pay. Sometimes refusing isn’t about losing money — it’s about protecting your reputation and time. Over the years, we’ve learned to quickly spot the cases that are almost guaranteed to turn into problems. Here are the most common situations where we turn down work: ▪ The client wants it “like everyone else’s,” but with lots of custom changes and on a minimal budget ▪ There are no proper source materials, yet the deadlines are already burning and everything is needed “yesterday” ▪ Constant changes to requirements after the work has already started ▪ A task with a very low chance of success, but very high expectations ▪ The client isn’t willing to discuss the process and sees us as just an executor - A good result almost always starts when both sides have an honest understanding of the risks and real possibilities of the project. If you’re currently discussing a project and unsure whether to move forward — write to us. We’ll honestly and directly tell you whether it’s worth taking on or if it’s better to look for another solution. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documents #drawing #photoshop #refuse #cases
    • The price reflects the value of the project, not just the source files. This is a complete, production-ready server that has already proven itself over the course of a full year, with a loyal player base and no major issues requiring ongoing development. To put it into perspective, the asking price is approximately what the server generated in one year. You're not buying an unfinished pack that still needs months of work, you're buying a polished, fully tested, revenue-proven project that's ready to go online. Considering that, I believe €35000 is a fair price.
    • How we can explain the amount? Is something special there in?
  • 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..