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.
SELLING AN ANNOUNCER SCRIPT! SIMILAR TO L2OOPS / L2HOP. THE SCRIPT HAS BEEN A LITTLE REDONE, VISUALLY SIMILAR TO THESE ANNOUNCERS, THE PRICE IS VERY GOOD. WE SHOW EVERYTHING HOW TO USE IT, ETC.
DISCORD - adver745645
TELEGRAM - MMOPROMO
WE SELL ADEN, GAME ITEMS AT VERY GOOD PRICES. DISCORD - MMOPROMOOO / TELEGRAM - MMOPROMO
АА
WE SELL ADEN, GAME ITEMS AT VERY GOOD PRICES.
DISCORD - MMOPROMOOO
TELEGRAM - MMOPROMO
I ment interface.u file it self not the code. I can view the file and code inside, but I was unable to edit interface.u file to add the code u shared, could u please share the compiled interface.u file it self?
Sorry my bad, I was compiling incorrectly, I looked up for correct compiler, works nicely! Both, Celestine and your version, works nicely! Ty
Question: what's the reason for disallowing songs/dances to be removed? I'm asking as some1 who has full buff npc buffer, with available option to throw on and off any buffs any time, would this block still makes usage?
// Dance-like skill effect can't be dispelled
if ( skill. isDance ( ) )
{
return ;
}
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.