Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 15.04.2006, 17:59   #7
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

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
humordwarf is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:05.