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

    • what do u mean i want to change the normal weapons some weapons are working perftect some not getting th effect and the arcana has the effect above the weapons as u see ... i dont what is the probkenm
    • Stop paying for files that are already public and free. Here you can download a fully working Interlude server with C4-like gameplay, including source code so you can compile it yourself and verify everything. People will try to convince you that free releases are “broken”, “full of backdoors”, etc. That’s exactly why I’m also providing the SVN with the full source – so you can: Review the code yourself Remove / modify whatever you don’t like Compile your own binaries What’s included GX-EXT Interlude server (C4-style gameplay) – L2Off Client Interlude tweaked for C4 gameplay Public SVN with source code Downloads: Server GX-EXT: https://www.mediafire.com/file/q5ipkjd36tnhfxv/L2OFF_C4_C4_ACU_GXEXT.rar/file Client Interlude C4 Gameplay: https://www.mediafire.com/file/rdkfc8wwau042oh/Cliente_Interlude_Jugabilidad_C4.rar/file SVN (source code, delayed a couple of months to avoid reselling fresh work): https://svn.l2servers.com.ar/!/#GX-EXT_INTERLUDE User: gx Pass: gx How to compile To compile the source you will need: Visual Studio 2005 (x64 toolset) (Classic L2Off toolchain – yes, it’s old, but that’s what the original server uses.) Use this as you want: learn, test, open your own server, or just audit the code. But please, stop buying the same leaked/resold files over and over when you can get them here for free, with source, and actually know what you’re running.  
    • @GX-Ext Please reupload the pack+web+client because all the links inside that post or in the https://l2servers.com.ar/ are dead
    • Weapon dat is not the same for all, since you have custom things for sure no. You can contact @NevesOma
    • hello guys im facing a problem with the weapons .. i want to add hero glow on s weapons arcana ,dragonic bow etc.. some weapons are work peftect .. some not for example i add the line  LineageEffect.e_u092_h for fists and didnt work didnt even get the hero glow.. and the arcana the glow is on the top of weapon not down side like hero zeus mace any ideas?.. or does anybody has the weapongrp.dat file ready ?
  • 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