Register for your free account! | Forgot your password?

Go Back   elitepvpers › Popular Games › Silkroad Online › SRO Private Server
You last visited: Today at 06:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



need procedures reg last login with some info

Discussion on need procedures reg last login with some info within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2017
Posts: 56
Received Thanks: 7
need procedures reg last login with some info

Hello i will create table with this values ( username . log in time . IP )
but i need procedures when any account log in game this info register at this table every time and not delete
like when i enter with account then log off
then log in again register again and the last not delete
ahmedzizoa1 is offline  
Old   #2
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,488
Quote:
Originally Posted by ahmedzizoa1 View Post
Hello i will create table with this values ( username . log in time . IP )
but i need procedures when any account log in game this info register at this table every time and not delete
like when i enter with account then log off
then log in again register again and the last not delete
its only an example you have to edit by your own work


IF @D = 6 or @D = 9)
BEGIN
DECLARE @JID int @ varchar(max) @IP varchar(max)
select @JID = UserJID from SRO_VT_SHARD.dbo._User where CharID = @D
Set @ = (select AccountID from SRO_VT_SHARD.dbo._AccountJID where JID = @JID)
SELECT @IP = [reg_ip] FROM SRO_VT_ACCOUNT.dbo.TB_User WHERE StrUserID = @
DELETE FROM SRO_VT_SHARDLOG.dbo._Userlog Where Username = @
IF NOT EXISTS (SELECT * FROM SRO_VT_SHARDLOG.dbo._Userlog WHERE [Username] = @ or [IP] = @IP)
BEGIN
INSERT INTO [SRO_VT_SHARDLOG].[dbo].[_Userlog] ([UserName],[Ip],[Date]) VALUES @ @IP,GETDATE())
END
END
NorseGodTyr is offline  
Old   #3
 
elite*gold: 0
Join Date: Jan 2017
Posts: 56
Received Thanks: 7
ok thx i will test it and will till you again if it was right
ahmedzizoa1 is offline  
Reply


Similar Threads Similar Threads
Need a procedures to make auto silk for Unique Killers
01/30/2016 - SRO Coding Corner - 5 Replies
Hey. I checked the forum and i found some threads like Eslam Galul, but i just want only a working procedure to give silk reward to Unique Killers, i dont used to it to using .exe programs, no offense ofc. Big thanks!
Procedures For Selling Accs
08/08/2009 - Silkroad Online - 29 Replies
Hi, If I Have An Acc To Sell, How Would I Sell For Cash? I Need Information Step By Step, Thanks.
Hotswap procedures pano???
08/23/2008 - RF Online - 2 Replies
Hotswap procedures panu ba un gawin?!... with connection d2 RSK/ASK to accesories., pls share panu e hotswap. tagalogin nyo ha. para madali ko maintindihan.ty



All times are GMT +1. The time now is 06:19.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.