|
You last visited: Today at 20:31
Advertisement
[RELEASE] Script - Number of Players Online
Discussion on [RELEASE] Script - Number of Players Online within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.
07/20/2010, 23:18
|
#16
|
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 647
|
I don't remember why I made the Select statement to chose LoginStatus field. Just remove it and leave Family only.
|
|
|
07/20/2010, 23:59
|
#17
|
elite*gold: 0
Join Date: Jan 2010
Posts: 115
Received Thanks: 64
|
i had it in the root directory but never could ge it to work. same problem everytime with the print statement.
I finally wrote my own that shows ToonName Level Mode and Class
|
|
|
07/25/2010, 06:05
|
#18
|
elite*gold: 0
Join Date: May 2009
Posts: 32
Received Thanks: 39
|
LoginStatus was ment to tell who's online :P would be just great have it working,
still... cant read that column with the php code, its there but look like its been missing a sort of "commit" or make it readable, i dunno im too noob with SQL to tell
|
|
|
07/25/2010, 17:37
|
#19
|
elite*gold: 0
Join Date: Jul 2010
Posts: 124
Received Thanks: 99
|
Worked without problems thx alot,ProfNerwosol
|
|
|
07/25/2010, 18:10
|
#20
|
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 647
|
Quote:
Originally Posted by il.mane
LoginStatus was ment to tell who's online :P would be just great have it working,
still... cant read that column with the php code, its there but look like its been missing a sort of "commit" or make it readable, i dunno im too noob with SQL to tell
|
Actually no. The statement filters everyone who has LoginStatus=1. What I forgot is why in the world I select something that is after WHERE clause.
|
|
|
08/11/2010, 13:10
|
#21
|
elite*gold: 0
Join Date: May 2009
Posts: 24
Received Thanks: 11
|
In online.php, first line says <?
should say <?PHP
This is where I had the problem. For other people that are new to this, like myself.
|
|
|
03/02/2011, 19:53
|
#22
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
problem ...
Quote:
|
Players online: ".$online." Human: ".$human." Elf: ".$elf." Vail: ".$vail." DeathEater: ".$nordein." "; @mssql_close($link); ?>
|
|
|
|
03/15/2011, 00:20
|
#23
|
elite*gold: 0
Join Date: Dec 2010
Posts: 69
Received Thanks: 49
|
Hi! First of all thanks for the script, Prof. Really good idea =)
However, I have to say that after using it for some days I have noticed that some characters show online when in fact they are not. After further researching I found out that this happens when a player goes to character selection screen instead of closing the game window. So I think that usp_Save_Char_LeaveDate_R is not called unless you close the window so the LoginStatus remains 1.
I have found another SP that also alters "LeaveDate" which is usp_Save_Char_Info_E. However making this SP set LoginStatus to 0 causes to eventually show all players offline.
So...Im clueless, does this happen to you also guys?
Thanks in advance =)
|
|
|
03/17/2011, 15:18
|
#24
|
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 647
|
Yup, we had the same problem. Players were shown online when their game crashed.
Abrasive solved the problem with his and EarthCrush's fix for item duping. It will take some time and modifications to use it though.
|
|
|
03/17/2011, 19:29
|
#25
|
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
|
well you can easily change that check Char loginstatus and acc login
the script was only connecting to character not to account. In ep3 database(mine one) have login status plus character status so the ranking show whos online when both char and acc online.. if not then offline.
|
|
|
03/18/2011, 10:02
|
#26
|
elite*gold: 0
Join Date: Dec 2010
Posts: 69
Received Thanks: 49
|
Well, I finally added this line in PS_UserData.dbo.usp_Try_GameLogout_R
Code:
UPDATE PS_GameData.dbo.Chars SET LoginStatus = 0, LeaveDate = GETDATE() WHERE UserUID = @UserUID
Now the problem is gone, thank you both for your answers ^^
|
|
|
09/06/2011, 15:42
|
#27
|
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
|
heya. first i get this: Msg 4902, Level 16, State 1, Line 1
Cannot find the object "dbo.Chars" because it does not exist or you do not have permissions.
this is from Add_LoginStatus
then i get : Msg 208, Level 16, State 6, Procedure usp_Read_Chars_Detail2_R, Line 78
Invalid object name 'dbo.usp_Read_Chars_Detail2_R'.
when i use Procedure1
and :
Msg 208, Level 16, State 6, Procedure usp_Save_Char_LeaveDate_R, Line 14
Invalid object name 'dbo.usp_Save_Char_LeaveDate_R'.
when i use Procedure2. i don't realy need the php. i just want to be abel to check how many ppl are online. if this is posible tell me how please:-) just a sql query not php. becouse sql conn3ect on iss 7.5 don't work i guess. i only get odbc to work in iss 7.5
NB:after done all this is haver the colum LoginStatus but all set to NULL
|
|
|
09/20/2011, 20:37
|
#28
|
elite*gold: 0
Join Date: Sep 2010
Posts: 20
Received Thanks: 2
|
Hi, I tried running the 2 proc's an altered them it seems that my database doesn't like the login status as it doesn't ever update. Is there anything else we must edit for it to work or is it just that. Any help would be greatly appricated. Thanks
|
|
|
11/26/2011, 19:20
|
#29
|
elite*gold: 6
Join Date: Oct 2011
Posts: 914
Received Thanks: 421
|
me too
|
|
|
11/29/2011, 19:33
|
#30
|
elite*gold: 0
Join Date: Aug 2011
Posts: 48
Received Thanks: 263
|
fix (:
Here a fix made by me.
Run this Query:
Code:
USE [PS_GameLog]
GO
/****** Object: Trigger [dbo].[Leave] Script Date: 11/29/2011 19:25:07 by [Dev]HoaX ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[Leave]
ON [PS_GameLog].[dbo].[UserLog]
FOR INSERT
AS
declare @UserUID int
SET @UserUID= (SELECT UserUID FROM inserted)
UPDATE PS_GameData.dbo.Chars SET LoginStatus=0 WHERE UserUID=@UserUID
This creates a Trigger which uses the error UserLog.
If someone gets DC the server sends error values in this log.
This Trigger sets the User LoginStatus that got DCed back to 0 if a new error row gets added.
It's not tested yet.
Use this to reset all LoginStatus to 0.
Code:
UPDATE PS_GameData.dbo.Chars SET LoginStatus=0
If this helps you click the Thanks button.
|
|
|
 |
|
Similar Threads
|
[Release]Users Visiting/Players Online
03/28/2012 - EO PServer Guides & Releases - 5 Replies
Just some simple code to display how many people are visiting your site and the number of players on your server.
Players Online:
This one will not display your players online unless you are running a website on the same computer as the server.
I am working on making a code that can grab the users online from a website that isn't hosted on the servers computer.
<?php echo (exec('netstat -a -n |find "5816" |find "ESTABLISHED" /c')-2); ?>
Users Visiting:
<?php
$output = shell_exec...
|
[HELP]SCRIPT PHP PLAYERS ONLINE
04/12/2011 - Dekaron Private Server - 12 Replies
Not know much about PHP I'M WITH A DOUBT AS AGENT IN AN ONLINE PLAYERS SYNTAX WHAT IT IN TIME FOR YOU TO READ THE DATABASE NOT READ NAMES OF FILES CONTAINING ", ...
BELOW IS THE FILE:
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Geneva, sans-serif;
color: #FFFF00;
font-weight: bold;
}
body {
|
[Release] Total Players Online
09/09/2009 - CO2 PServer Guides & Releases - 1 Replies
For Who Looking For that code
that code let you know how many players
play on your server now Its Not Made by Me
Total Players Online: 30
Just Put it On Register.php
|
[RELEASE] Free Items to all Online Players
07/30/2009 - CO2 PServer Guides & Releases - 17 Replies
A "free" Command, put this Command in Client.cs under GM or Owner Command and change "@" to "/" if your command start with "/" "LOFT code not CoEmu v2"
if (Splitter == "@free")
{
if (Splitter == "db")
{
foreach (DictionaryEntry DE in World.AllChars)
{
...
|
[REQUEST] online players script
10/30/2008 - EO PServer Hosting - 18 Replies
hi all ,
i think that the titel says enouf of what i want to aks , but to be shure i goin write a little more ^^
i aim looking for a script whit a few things
server offline
server online
players online
|
All times are GMT +1. The time now is 20:31.
|
|