Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 18:22

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

Advertisement



Online status script

Discussion on Online status script within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2012
Posts: 152
Received Thanks: 15
Online status script

hi ^^
Ich habe mir den Online status script auf meinen hauptverzeichnis drauf geladen in xammp nur wenn ich es im webserver öffne steht da das keiner online ist obwohl jemand im server da ist. Weiß jemand vllt was ich falsch gemacht habe? Den script habe ich von da her. Mfg Lordritter
Lordritter is offline  
Old 12/16/2012, 16:01   #2
 
Sh1nra's Avatar
 
elite*gold: 5
Join Date: Mar 2012
Posts: 1,007
Received Thanks: 498
1:
PHP Code:
USE PS_GameData
IF NOT EXISTS(SELECT FROM sys.columns WHERE Name 'LoginStatus' AND object_id OBJECT_ID('Chars'))
BEGIN
    ALTER TABLE Chars
        ADD LoginStatus bit
    
PRINT 'Column successfully added!'
END
ELSE
BEGIN
    
PRINT 'Column already exists!'
END 
2:
- dbo.usp_Read_Chars_Detail2_R öffnen und das eingeben:

Code:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO


ALTER Proc [dbo].[usp_Read_Chars_Detail2_R] 

@CharID int

AS

SET NOCOUNT ON

DECLARE @UserUID int
DECLARE @Money bigint
DECLARE @GuildID int
DECLARE @GuildLevel tinyint
DECLARE @UID varchar (18)

-- 2005-12-30 스탯,스킬 이벤트관련...
DECLARE @Event1 tinyint
DECLARE @Event2 tinyint
--

SET @Money = 0
SET @UserUID = (SELECT UserUID FROM Chars WHERE CharID = @CharID)
SET @GuildID = (SELECT GuildID FROM GuildChars WHERE CharID = @CharID AND Del = 0)

IF(@UserUID IS NOT NULL)
BEGIN
	SET @Money = (SELECT ISNULL([Money], 0) FROM UserStoredMoney WHERE UserUID = @UserUID)
END
ELSE
BEGIN
	SET @Money = 0
END

IF(@GuildID IS NOT NULL)
BEGIN
	SET @GuildLevel = (SELECT GuildLevel FROM GuildChars WHERE CharID = @CharID AND Del = 0)
END
ELSE
BEGIN
	SET @GuildID = 0
	SET @GuildLevel = 0
END

-- 2005-12-30 스탯,스킬 이벤트관련...
SELECT @Event1=Event1, @Event2=Event2 FROM CharEvents WHERE CharID=@CharID
--

SELECT UserUID, CharID, CharName, Slot, Family, Grow, Hair, Face, [Size], Job, Sex, [Level], 
StatPoint AS DistPoint, SkillPoint, [Str], Dex, Rec, [Int], Luc, Wis, HP, MP, SP, Map, Dir, [Exp], [Money], 
PosX, PosY, PosZ, Hg, Vg, Cg, Og, Ig, Del, K1, K2, K3, K4, @Money AS StoredMoney, @GuildID AS GuildID, @GuildLevel AS GuildLevel,

-- 전투공로관 보상레벨
KillLevel, DeadLevel,
--

-- 스탯,스킬 이벤트관련...
@Event1, @Event2,
--

DATEPART(yyyy, LeaveDate) AS LeaveDate_YYYY, 
DATEPART(mm, LeaveDate) AS LeaveDate_MM, 
DATEPART(dd, LeaveDate) AS LeaveDate_DD, 
DATEPART(hh, LeaveDate) AS LeaveDate_HH, 
DATEPART(mi, LeaveDate) AS LeaveDate_MI, 
DATEPART(ss, LeaveDate) AS LeaveDate_SS

--

FROM Chars WHERE CharID = @CharID

-- 접속시간 기록
UPDATE Chars SET JoinDate=GETDATE(), LoginStatus = 1 WHERE CharID=@CharID
SELECT @UID=UserID FROM CHARS WHERE CharID=@CharID
UPDATE Chars SET LoginStatus = 0 WHERE (CharID<>@CharID) AND (UserID=@UID)
--

SET NOCOUNT OFF
SET QUOTED_IDENTIFIER OFF 
SET ANSI_NULLS OFF
- Execute

3:
- usp_Save_Char_LeaveDate_R öffnen und das eingeben:

Code:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO


ALTER Proc [dbo].[usp_Save_Char_LeaveDate_R] 

@CharID int

AS

SET NOCOUNT ON

-- 종료시간 기록
UPDATE Chars SET LeaveDate=GETDATE(), LoginStatus=0 WHERE CharID=@CharID

SET NOCOUNT OFF

SET QUOTED_IDENTIFIER OFF 

SET ANSI_NULLS OFF
- Execute



Sehr schwer ich weiß...
Sh1nra is offline  
Thanks
3 Users
Old 12/16/2012, 16:21   #3
 
elite*gold: 0
Join Date: Aug 2012
Posts: 152
Received Thanks: 15
dbo.usp_Read_Chars_Detail2_R ich suche immer noch das xD

so habe es gefunden und auf ändern geklikt danach habe ich es ersetzt + auf execute. Jetzt teste ich mal ^^

ja danke hat geklappt ! Vielen dank shinra ^^
Lordritter is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[release] Online Status Script Pro Version
02/12/2015 - EO PServer Guides & Releases - 7 Replies
Hey all as i saw the poll , just every one like to have the script so i desided to release that part but as usual , i do not allow it to be edited :D a demo can be found at http://powerchaos.info/demo/online.php screenshot Power o.O http://premium.boosterking.com/i/00013/yi2txhsm0u 5n.png
online status script
01/27/2012 - EO PServer Hosting - 4 Replies
This script is realesed as requested http://www.elitepvpers.com/forum/eo-pserver-guide s-releases/1682749-release-online-status-script-pr o-version.html#post14996024 hi guys i was wondering who love to see a release of a online status script like this screenshot http://premium.boosterking.com/i/00013/yi2txhsm0u 5n.png this version is database related and shows more stats then the version that is released
update status script
11/19/2011 - EO PServer Hosting - 6 Replies
hi all at this moment i am even more expanding the uptime status website at the current moment it is still in beta and here is a alpha revieuw http://81.83.162.88:8080/servercode.php please note that page can change at any time as it is not a livepage yet ( just on my computer to test and i got dynamic ip :D ) i just like to know what need to be changed or what you like to have added
C# script to check server status online/offline
04/27/2011 - CO2 Private Server - 6 Replies
I am coding my own auto patch and and i wanna display server status in win form any one haw simple code how cheek server status like Online Offline?
status of script to play online?
05/01/2009 - EO PServer Hosting - 22 Replies
anyone have? tank you



All times are GMT +1. The time now is 18:23.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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