07.05.2007, 20:32
|
#8
|
|
Архивный участник
Join Date: Mar 2007
Posts: 118
|
Quote:
Originally Posted by predatorx
Hi.
How to edit my C4 server for enabled Acumulative Subclass System[Acumulative Skills]??
I review the ai.obj class guild_master_lv2, and see 2 acctions
func[DeleteItem1] -> maybe delete quess item
func[ClassChange] -> maybe delete all skills and change class.
I think that I cannot modify it here...
And the SP in DB??? that SP can modify?? so that does not erase skills..
THX
|
Quote:
Originally Posted by Kenjiro
Try to alter two procedures:
Code:
ALTER PROCEDURE [dbo].[lin_GetAquireSkill]
(
@char_id INT,
@subjob_id INT
)
AS
SET NOCOUNT ON
SELECT TOP 1 skill_id, skill_lev, to_end_time
FROM user_skill
WHERE char_id = @char_id ORDER BY 1, 2 DESC
and
Code:
ALTER PROCEDURE [dbo].[lin_SetAquireSkill]
(
@char_id INT,
@subjob_id INT,
@skill_id INT,
@skill_level TINYINT
)
AS
SET NOCOUNT ON
IF EXISTS(SELECT skill_lev FROM user_skill WHERE char_id = @char_id AND skill_id = @skill_id )
UPDATE user_skill SET skill_lev = @skill_level WHERE char_id = @char_id AND skill_id = @skill_id
ELSE
INSERT INTO user_skill (char_id, subjob_id, skill_id, skill_lev) VALUES (@char_id, 0, @skill_id, @skill_level)
But before using this you should delete all duplicating skills (if you have subclass chars)... at this moment i do not have idea to do this clean and simple...
Adding temporary hack to above procedures... should work...
|
This way is tested and work fine? Because i want too the "Acumulative Subclass System"
- Regrats
|
|
|