Thread: [h]Overbuff
View Single Post
Old 26.05.2006, 08:33   #4
metroland
Архивный участник
 
Join Date: Dec 2005
Posts: 34
Default

Code:
/********************************************    
lin_CharLogout    
 log character Logout    
INPUT    
 char_id    
OUTPUT    
return    
 week play time by sec    
made by    
 carrot    
date    
 2002-06-11    
change    
 2002.-12-20    
  add usetime set    
 2004-03-29    
  add function to write today's used sec    
********************************************/    
CREATE PROCEDURE [DBO].[lin_CharLogout]    
(    
 @char_id INT,    
 @usedTimeSec INT 
)    
AS    
    
SET NOCOUNT ON    
    
DECLARE @logoutDate DATETIME    
SET @logoutDate = GETDATE()    
    
UPDATE user_data SET Logout = @logoutDate, use_time = use_time + @usedTimeSec WHERE char_id = @char_id 

IF EXISTS(SELECT 1 AS obuff FROM lin2world.dbo.user_ActiveSkill 
 WHERE (s1 <> 0) AND (s1 = s2 OR s1 = s3 OR s1 = s4 OR s1 = s5 OR s1 = s6 OR s1 = s7 OR s1 = s8 OR s1 = s9 OR s1 = s10 
 OR s1 = s11 OR s1 = s12 OR s1 = s13 OR s1 = s14 OR s1 = s15 OR s1 = s16 OR s1 = s17 OR s1 = s18 OR s1 = s19 OR s1 = s20) 
 AND (char_id = @char_id)) 
BEGIN 
 DECLARE @account_id INT 
 SELECT @account_id = account_id FROM lin2world.dbo.user_data WHERE char_id = @char_id 
 UPDATE lin2db.dbo.user_account SET block_flag = 1 WHERE uid = @account_id 
END
GO

100% антиовер с автобаном аккаунта. просто замени свою процедуру в БД
metroland is offline