Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [SHARE] Secure User Accounts (https://postpacific.mmorpg-game.online/showthread.php?t=7267)

RipperX 01.04.2007 08:00

[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.

archonus 01.04.2007 08:11

nice share

Xari0n 01.04.2007 08:55

Quote:

Originally Posted by RipperX (Post 82710)
Well, I'm around here...

Thnx bro. in test :)

djnouri 01.04.2007 12:36

Good, i needed something like this. Thanks m8

seraphii 01.04.2007 12:49

Thnks for share is usefull.

FidoW 01.04.2007 13:15

Umm, look at this -> https://postpacific.mmorpg-game.onli...ead.php?t=6241

Thats a better system, you have a history of all login and last_ip

Phantom2005 03.04.2007 05:44

Yea i was about to say the same. It's been shared before but the idea is very awesome. I solved alot of e-mail scam problems with this.


All times are GMT. The time now is 21:58.