Noble Skill question

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Callisto
Posts: 39
Joined: Sun Sep 09, 2007 11:13 am
Location: Romania
Contact:

Noble Skill question

Post by Callisto »

Hello. I searched on the forum and didn't got nothing, maybe I didn't used the right keywords, dunno. I have a question for the skilled users and dev's . I looked into the files of the noblesse quest and I was wondering, from where do you get the skills? From the NobleSkillTable.java ? If so, how does it add the skills? I don't see no addSkill or something similar to that.

Thank you for your time :)
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: Noble Skill question

Post by Pere »

They are never added into the db, they are added on login/untransform/otherevents if you are noble
Bones tardes amics meus tots!
User avatar
Callisto
Posts: 39
Joined: Sun Sep 09, 2007 11:13 am
Location: Romania
Contact:

Re: Noble Skill question

Post by Callisto »

Yes i know that, noble skills are just deleted temporary from db and they re-given to the pc on enterworld .... but I am asking how is it giving the skills when you finish the noblesse quest. Right after you finish, you get the Tiara and the Skills, the tiara is easy to give, but the skills?!
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Noble Skill question

Post by janiii »

just check where NobleSkillTable is used.. L2PcInstance.setNoble().
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
Callisto
Posts: 39
Joined: Sun Sep 09, 2007 11:13 am
Location: Romania
Contact:

Re: Noble Skill question

Post by Callisto »

I have done that already, I was just wondering if there is another place I missed. I made a ( e.g : setNoble2, Noble2SkillTable, and everything.), so if I make a new quest, how do I give the player the noble2 skills? Put in the quest setNoble2 ?
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Noble Skill question

Post by janiii »

the NobleSkillTable is loaded on gameserver startup. only these two occurences of the NobleSkillTable (GameServer and L2PcInstance).
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
Callisto
Posts: 39
Joined: Sun Sep 09, 2007 11:13 am
Location: Romania
Contact:

Re: Noble Skill question

Post by Callisto »

Got it .... I think .... on GS load, it loads the Gameserver.java + NobleSkillTable.java (in my case), so when the PC enters the world those skills are give back to him temporary until he logs out, the the skills are "deleted" again. I already know that. Ok thank you janiii, I got it now, and checked the __init__.py of the last part of the noblese quest, and seen the "st.getPlayer().setNoble(True)". So from that setNoble = skills given from NobleSkillTable.java and the icon from L2PcInstance.java .... ok got it now ^_^ .... Thank you for the help :)

Correct me if I am wrong please :P
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Noble Skill question

Post by janiii »

the noble skills are not deleted or re-added. they are just added in the quest, that's all. when gameserver starts up, it loads the NobleSkillTable class.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
Callisto
Posts: 39
Joined: Sun Sep 09, 2007 11:13 am
Location: Romania
Contact:

Re: Noble Skill question

Post by Callisto »

So basically the quest never ends...so instead of st.exitQuest(true) at the end, you get st.exitQuest(false) and the skills are added to you when you enter the game because you did not finished the quest.

Sorry for the dumb questions, but I wanna get it right and expand my knowledge :P
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato
Post Reply