|
You last visited: Today at 00:03
Advertisement
ActionLog
Discussion on ActionLog within the Shaiya PServer Development forum part of the Shaiya Private Server category.
06/29/2016, 23:06
|
#1
|
elite*gold: 0
Join Date: Nov 2013
Posts: 54
Received Thanks: 7
|
ActionLog
hello i was having a problem with stuff not showing up on actionlog so i dropped it and remade it and now nothing still shows any one have a fix for this? nothing is showing up in the actionlog and it was before..
edit: fixed dont mind my stupidness.
|
|
|
06/30/2016, 20:56
|
#2
|
elite*gold: 0
Join Date: Jul 2011
Posts: 68
Received Thanks: 120
|
I do not know who created it but it works will help you here time fixed
Quote:
USE PS_GameLog;
GO
drop procedure [dbo].[usp_Insert_Action_Log_E]
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
/****** ******/
CREATE Proc usp_Insert_Action_Log_E
@UserID varchar(18),
@UserUID int,
@CharID int,
@CharName varchar(50),
@CharLevel tinyint,
@CharExp int,
@MapID smallint,
@PosX real,
@PosY real,
@PosZ real,
@ActionTimeZ varchar(50),
@ActionType tinyint,
@Value1 bigint = null,
@Value2 int = null,
@Value3 int = null,
@Value4 bigint = null,
@Value5 int = null,
@Value6 int = null,
@Value7 int = null,
@Value8 int = null,
@Value9 int = null,
@Value10 int = null,
@Text1 varchar(100) = '',
@Text2 varchar(100) = '',
@Text3 varchar(100) = '',
@Text4 varchar(100) = '',
@Sql nvarchar(4000) = '',
@yyyy varchar(4) = '',
@mm varchar(2) = '',
@dd varchar(2) = '',
@Bucket smallint = -1
AS
DECLARE @ActionTime as datetime
SELECT @ActionTime = CONVERT(datetime, @ActionTimeZ, 120)
SET @yyyy = datepart(yyyy, @ActionTime)
SET @mm = datepart(mm, @ActionTime)
SET @dd = datepart(dd, @ActionTime)
IF(LEN(@mm) = 1)
BEGIN
SET @mm = '0' + @mm
END
IF(LEN(@dd) = 1)
BEGIN
SET @dd = '0' + @dd
END
SET @Sql = N'
INSERT INTO PS_GameLog.dbo.ActionLog
(UserID, UserUID, CharID, CharName, CharLevel, CharExp, MapID, PosX, PosY, PosZ, ActionTime, ActionType,
Value1, Value2, Value3, Value4, Value5, Value6, Value7, Value8, Value9, Value10, Text1, Text2, Text3, Text4)
VALUES(@UserID, @UserUID, @CharID, @CharName, @CharLevel, @CharExp, @MapID, @PosX, @PosY, @PosZ, @ActionTime, @ActionType,
@Value1, @Value2, @Value3, @Value4, @Value5, @Value6, @Value7, @Value8, @Value9, @Value10, @Text1, @Text2, @Text3, @Text4)'
EXEC sp_executesql @Sql,
N'@UserID varchar(18), @UserUID int, @CharID int, @CharName varchar(50),
@CharLevel tinyint, @CharExp int, @MapID smallint, @PosX real, @PosY real, @PosZ real, @ActionTime datetime, @ActionType tinyint,
@Value1 bigint, @Value2 int, @Value3 int, @Value4 bigint, @Value5 int, @Value6 int, @Value7 int, @Value8 int,
@Value9 int, @Value10 int, @Text1 varchar(100), @Text2 varchar(100), @Text3 varchar(100), @Text4 varchar(100)',
@UserID, @UserUID, @CharID, @CharName, @CharLevel, @CharExp, @MapID, @PosX, @PosY, @PosZ, @ActionTime, @ActionType,
@Value1, @Value2, @Value3, @Value4, @Value5, @Value6, @Value7, @Value8, @Value9, @Value10, @Text1, @Text2, @Text3, @Text4
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
|
|
|
|
Similar Threads
|
dbo.ActionLog is only recording action type 114 - how to fix this?
10/11/2015 - Shaiya - 1 Replies
When i check my dbo.ActionLog file, its only showing action type 114. How can I get it to record all action types?
|
ActionLog
04/26/2013 - Shaiya Private Server - 0 Replies
Hello
I need know how can i how to find logs when die end-game bosses, because my GameLog dont show me when die bosses Kimu and Seraf. And i have problem with that
|
[Help] GameLog (ActionLog problem)
05/14/2010 - Shaiya - 1 Replies
Hello, since short have I new error message in the GameLog, see below. To me can someone say why this error comes and where I can fix this? The server ran now 1 month without problems.
2010-05-13 19:57:55 PS_GAMELOG__system log start (GameLog01)
2010-05-13 19:58:24 connect game
2010-05-13 19:58:28 connect game
2010-05-13 20:00:18 err=-1, Fehler beim Konvertieren des varchar-Datentyps in datetime., SQL STATE: 42000, NATIVE ERROR: 8114 (0x1FB2)
|
All times are GMT +1. The time now is 00:04.
|
|