![]() |
[HELP]Subclass Skill Problem
There seems to be a problem with subclass skills, like if you subclass a necromancer. You level to say 52, learn all ur skills etc. Then if u switch back to ur main class then back to your necromancer. Alot of the skills are reset and u have to relearn them.
This seems to happen all the time, i even set_skill_all on myself at level 80, switched back. Alot of skills had to relearn. Btw this isnt just for one class its a problem for all off them. Necromancer was just an example :) Wondering if anyone else has same problem, or found a fix for it. I hadnt noticed this till a player mentioned it. Thanks... |
Quote:
Same skills in both class - removed. |
No you have a complety different problem to me, next time read your own post and read mine. Your players keep skills from the class they changed MINE dont. Read again....
Its nothing to do with say a Abyss walker having necro skills, its about the subclass having to relearn there skills everytime. Read Please. Also this is from RETAIL servers, urs look like a modded server... |
pay attention to what your CacheD says at the time when you relearn skill - it says that cannot insert duplicate identity field in user_skill table couse it is already present, same happends with shortcuts and macro.
think trouble is in primary keys settings of db tables |
ok - haven't tested yet but think solving the problem is
open user_skill for modify remove old primary key settings mark fields char_id,skill_id, subjob_id and make them PRIMARY KEY - save the table do the same with shortcut_info table. |
have you tested it yet, you know if it works? Ill get onto it later. Test it myself its been a real pain in the ass, espically with no saving macro's/shortbars.
Also was it a permanent fix or u have to do it everytime? |
xerogen u migrated from c1 mod to c4?
|
Quote:
FYI, in MS-SQL 2005 you do not have to remove previous Primary Key settings, you simply have to Crtl+click the three rows, right click and hit Primary Key. Also, the shortcut_info only needed subjob_id added as a primary key - do not remove any of the previous Primary Key values. Quote:
|
some piece of theory
primary key mark means that combination of selected fields can have only unique value in whole table e.g. char_id = 82736 skill_id = 765 subjob_id = 1 there can be only one row in table in with such values now imagine what happened if you have no subjob_id column as primary key it means that main class learns skill 765 creates row 82736 765 0 then he switch to subjob 1 and try to learn this skill but DB can not insert row with 82736 765 combined couse there already is such row - result - skill is not saved - CacheD have that info but DB does not conclusion - this fix is permanent =) |
| All times are GMT. The time now is 21:51. |