Page 1 of 1

Noble Skill question

Posted: Tue May 11, 2010 5:16 pm
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 :)

Re: Noble Skill question

Posted: Tue May 11, 2010 7:44 pm
by Pere
They are never added into the db, they are added on login/untransform/otherevents if you are noble

Re: Noble Skill question

Posted: Tue May 11, 2010 8:44 pm
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?!

Re: Noble Skill question

Posted: Tue May 11, 2010 8:47 pm
by janiii
just check where NobleSkillTable is used.. L2PcInstance.setNoble().

Re: Noble Skill question

Posted: Tue May 11, 2010 8:51 pm
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 ?

Re: Noble Skill question

Posted: Tue May 11, 2010 8:53 pm
by janiii
the NobleSkillTable is loaded on gameserver startup. only these two occurences of the NobleSkillTable (GameServer and L2PcInstance).

Re: Noble Skill question

Posted: Tue May 11, 2010 9:06 pm
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

Re: Noble Skill question

Posted: Wed May 12, 2010 4:57 am
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.

Re: Noble Skill question

Posted: Thu May 13, 2010 11:13 am
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