Jump to content
  • 0

[Help] Subclass Quest


Rapist

Question

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 ?

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

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...

 

 

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0
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)

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...