Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 01.04.2007, 08:00   #1
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default [SHARE] Secure User Accounts

Well, I'm around here.. and the ppl who know me know that i'm on antibot dev, but this time come here with a nice mod. For example I'm a simple user that I play on your server, I log on and my player is clean. When I logged in, I re-writed last_ip login, so will be more difficult find a responsable.
This mod what it did is save the last login before me.

+ Add column last_ip_old to user_account
+ Modify Procedure from lin2db called ap_SLog

Code:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go




ALTER PROCEDURE [dbo].[ap_SLog] 
@uid int, 
@lastlogin datetime, 
@lastlogout datetime, 
@LastGame int, 
@LastWorld tinyint, 
@LastIP varchar(15)
AS

Declare @LastAddr varchar(15)

SELECT @LastAddr=last_ip FROM user_account WHERE uid=@uid

UPDATE user_account SET last_login = @lastlogin, last_logout=@lastlogout, last_world=@lastWorld, last_game=@lastGame, last_ip=@lastIP,last_ip_old=@LastAddr WHERE uid=@uid
Hope to be usefull. GL

Pd: if u need help (maybe someone yes) take messenger.
RipperX is offline  
 


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 22:20.