just can try add something like
if exp>max_exp then exp=max_exp
but using SQL language =)
here:
Stored Procedure dbo.lin_ModChar
Stored Procedure dbo.lin_ModChar2
Stored Procedure dbo.lin_ModChar3 <== here i think
Code:
CREATE PROCEDURE [DBO].[lin_ModChar3]
(
@sp int,
@exp int,
@align int,
@pk int,
@pkpardon int,
@duel int,
@char_id int
)
AS
SET NOCOUNT ON
update user_data set
sp = sp + @sp,
exp = exp + @exp,
align = align + @align,
pk = pk + @pk,
pkpardon = pkpardon + @pkpardon,
duel = duel + @duel
where char_id = @char_id
of course not tested =) but i think here must be some condition checkups before adding values