Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 07.05.2007, 04:15   #1
predatorx
Архивный участник
 
Join Date: Aug 2006
Posts: 5
Default [Question]Acumulative Subclass System

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
predatorx is offline  
Old 07.05.2007, 07:52   #2
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

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...
Kenjiro is offline  
Old 07.05.2007, 11:42   #3
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

That have no sense at all..., lvl 40 chars with lvl 78 skills... ?
FidoW is offline  
Old 07.05.2007, 12:43   #4
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

Do not know, just answering
Better should be adding skills from one class to subclass when leveling... or maybe mixing skills only when subclass lv >= main class... there is many options to do this on db level... but if it works correctly, do not know...
Kenjiro is offline  
Old 07.05.2007, 16:59   #5
l2serverfull
Архивный участник
 
Join Date: Sep 2006
Posts: 64
Default

hi + Acumulative Subclass 1 + 2 + 3+ 4 ?
l2serverfull is offline  
Old 07.05.2007, 17:10   #6
l2serverfull
Архивный участник
 
Join Date: Sep 2006
Posts: 64
Default

dragon-network have one system good Acumulative Subclass i need
l2serverfull is offline  
Old 07.05.2007, 20:18   #7
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

Then ask them
m4rk is offline  
Old 07.05.2007, 20:32   #8
Fot@r@s
Архивный участник
 
Join Date: Mar 2007
Posts: 118
Default

Quote:
Originally Posted by predatorx View Post
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 View Post
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
Fot@r@s is offline  
Old 08.05.2007, 06:20   #9
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

Not tested. Test it, and if it do not works (or worse - make bugs) write here, i help if i can .

P.S. If You explain me in details what You mean as 'accumulative subclass', i try to define it (if i can).
Kenjiro is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 15:29.