Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   [HELP]Subclass Skill Problem (https://postpacific.mmorpg-game.online/showthread.php?t=5643)

xerogen 04.09.2006 16:43

[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...

HF 04.09.2006 20:00

Quote:

Originally Posted by xerogen (Post 66416)
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...

https://postpacific.mmorpg-game.onli...ead.php?t=5616

Same skills in both class - removed.

xerogen 05.09.2006 07:52

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...

Stazis 06.09.2006 10:41

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

Stazis 06.09.2006 11:27

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.

xerogen 07.09.2006 05:56

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?

Drag 07.09.2006 12:41

xerogen u migrated from c1 mod to c4?

Belazor 07.09.2006 16:30

Quote:

Originally Posted by Stazis (Post 66623)
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.

Cheers, that worked.
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:

Originally Posted by xerogen (Post 66712)
Also was it a permanent fix or u have to do it everytime?

For the record, I don't know this guy XD

Stazis 07.09.2006 16:46

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.