L2JMobius

Prelude of War Stack Sub - Multi Skill

Sqhizein · 3 · 2723

Offline Sqhizein

  • Vassal
  • *
    • Posts: 1
hello i have edited the SkillTrees.xml's and i have added all the 2rd skills to 3rd class xmls. so i can see all old 2rd skills in 3rd class in that way. i will delete all the Awaekening class thing from my server. I am trying to convert this project to H5 version as much as possible.
let me get into the subject without further ado......

i want to make a ( stuck sub - multi skill server  ) but i couldn't find the Stacksub options.
so I was trying to do it myself
i tried to change the related code for Subclass and Skill that in PlayerInstance.java

When i delete the line under:  "setActiveClass"

// Update the character's change in class status.
// 1. Remove any active cubics from the player.
// 2. Renovate the characters table in the database with the new class info, storing also buff/effect data.
// 3. Remove all existing skills.


Deleted Line
-------------------------------------------------------------------
      for (Skill oldSkill : getAllSkills())
         {
         removeSkill(oldSkill, false, true);
         }
-------------------------------------------------------------------

When i delete that line everything works fine. after adding Subclass to my main class the skills shows in the both of class. this is what i want to. okay. but when i relogin to my account and enter to my character the other classe's skills doestn't show. everything seems to related with "classIndex" to me.

i have figured that problem may come from that line.
--------------------------------------------------------------------------------------------
   private void restoreSkills()
   {
      try (Connection con = DatabaseFactory.getConnection();
         PreparedStatement statement = con.prepareStatement(RESTORE_SKILLS_FOR_CHAR))
      {
         // Retrieve all skills of this PlayerInstance from the database
         statement.setInt(1, getObjectId());
         statement.setInt(2, _classIndex);
         try (ResultSet rset = statement.executeQuery())
         {
            while (rset.next())
            {
               final int id = rset.getInt("skill_id");
               final int level = rset.getInt("skill_level");
               final int subLevel = rset.getInt("skill_sub_level");

--------------------------------------------------------------------------------------------
but this time some skill levels reduced to my subclass character level who is 40 level. some of them deleted because my main class has same skill with my subclass. and the server throws some Duplicated skill issues.

is there anyone can help me in this case please?



Online Mobius

  • Distinguished King
  • *****
    • Posts: 16056
The old sub stack system has been removed.
If anything, it will have to be made custom.


Offline Niniel

  • Vassal
  • *
    • Posts: 8
The old sub stack system has been removed.
If anything, it will have to be made custom.




Ty :3