Skip to content

Passive skills are not supported, and login deletes them #2873

Closed

Description

@erwan-joly

Passive skills (Skill.dat TYPE c1 = 0, vnums 20-151: training courses, PvP boosts, Loa tomes, journals...) have no behaviour in NosCore.

What the client data says, checked against the client's own skill info window (right-click a skill in Skill Info > Training):

  • Kind: TYPE c2 (parsed today as CastId) is the passive kind. For example, 19 is PvP damage, 20 is PvP defence and 31 is maximum HP.
  • Amount: For the newer passives (kind 19 and up), DATA c1 is the rank and DATA c2 (parsed today as UpgradeType) is the amount.
    • Bear Loa Tome (113, DATA 1 7000) shows "Increases maximum HP by 7000".
    • [Beginner] PvP Damage Boost (88, DATA 1 1) shows "Increases damage in PvP by 1%".
    • For the older courses (kinds 0-18), the amount is in DATA c1.
  • Champion level requirement: DATA c4 = 999 means the requirement in LEVEL c2 is a champion level. The client's skill info then prints "Champion level: %dLv" (conststring 4187) instead of "Level: %dLv" (129).
    • Skill 88 shows "Champion level: 10Lv".
    • Skill 113 shows "Champion level: 60Lv".
  • Price: COST c2 is the price in gold (500 000 on both).

Missing pieces:

  1. SkillService.ForgetUnlearnableSkillsAsync runs at every login and deletes every CharacterSkill row that is not a class skill. That includes passives, so a passive would be lost at the next login. Passives are not tied to a class and should be kept.
  2. There is no way to learn a passive: no training shop purchase, and no check on level or champion level.
  3. The passive bonuses are not applied to stats or damage.

Fix 1 first. Then the parser should store the passive kind and amount under their own names, instead of under CastId/UpgradeType, and store the "champion level" flag. After that comes the purchase and the stat application.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions