I have to make a server with subclass accumulative (principal + 3 subs)
of any class and race.
and that skilles se accumulate between of a subclass and another.
I do it with this SP:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[lin_SetAquireSkill]
(
@char_id INT,
@subjob_id INT,
@skill_id INT,
@skill_level TINYINT
)
AS
DECLARE @subjob_acu INT
SET NOCOUNT ON
set @subjob_acu = 0
WHILE (@subjob_acu < 3)
BEGIN
SET @subjob_acu = @subjob_acu + 1
IF EXISTS(SELECT skill_lev FROM user_skill WHERE char_id = @char_id AND skill_id = @skill_id AND subjob_id = @subjob_acu)
UPDATE user_skill SET skill_lev = @skill_level WHERE char_id = @char_id AND skill_id = @skill_id AND subjob_id <= @subjob_acu
ELSE
INSERT INTO user_skill (char_id, subjob_id, skill_id, skill_lev) VALUES (@char_id, @subjob_acu, @skill_id, @skill_level);
IF NOT EXISTS(SELECT skill_id FROM user_skill WHERE char_id = @char_id AND skill_id = @skill_id AND skill_lev = @skill_level AND subjob_id = 0)
INSERT INTO user_skill (char_id, subjob_id, skill_id, skill_lev) VALUES (@char_id, 0, @skill_id, @skill_level);
END
But only accumulate when "switch subclass".
When you subclass, the skilles of previous class is cleared and starts loading the skilles of the new class, I need you to stay all skilles of all subclass.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Based on all your comments, I realized that you are a complete beginner who doesn't understand anything about programming or even the basic concepts of the Java language.
Go study, gain some basic knowledge about the subject, and after you've studied and acquired at least a minimal understanding, you can come back here and ask for clarifications, and I’ll help you with all your questions. 🤣🤣🤣🤣
@Möbius
You should start a comedy show on television, you're very funny, and for those who know your face as well as I do, I can say you'd make a great clown.
The more you try to explain yourself and claim you're the god of L2j, actually, I believe you think of yourself as this god of L2j, but you forget that in this world, there are many programmers better than you who don't engage in fraudulent scams against people.
just like you are doing
Question
WaLas
15 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.