Hi Epvp! i hope anyone can help me on my problem about ap to npc problem!
because my ap to npc got delay send when the server got active pvp's like event pvp!
i use procedure method last time and its work but when pvp is active like i said .. its not effect when we sale the ap to npc and ap will send few hours!
i try trigger method too and same.. its work but got delay too.. anyone can help me? how to fix this? thank you in advance!..
USE [PS_GameLog]
GO
/****** Object: StoredProcedure [dbo].[usp_Insert_Action_Log_E] Script Date: 01/25/2019 14:32:06 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Proc [dbo].[usp_Insert_Action_Log_E]
SET @ = datepart(yyyy, @ActionTime)
SET @mm = datepart(mm, @ActionTime)
SET @dd = datepart(dd, @ActionTime)
SET @CharLeave = 1
IF @ActionType = '116'--Trade Item-remove item from originator
BEGIN
WAITFOR DELAY '00:00:05'--Time delay to give the duper time to log out fully
SELECT @CharLeave=Leave
FROM PS_userdata.dbo.Users_Master
WHERE UserUID @ID
IF @CharLeave=0
BEGIN
EXEC PS_GameData.dbo.usp_Save_Char_Item_Del_E @CharID=@CharID, @IDList @
END
END
IF @ActionType = 173 AND @text2 = 'death' -- boss death, only applies to the ones from the Obelisk.ini
BEGIN
SET @ID = (SELECT TOP 1 UserUID FROM PS_GameData.dbo.Chars WHERE CharName = @text3)
INSERT INTO Boss_Death_Log VALUES @3, @text1, @ID, @text3, @MapID, @PosX, @PosY, @posz, @ActionTime)
END
IF @ActionType = '164'--Trade Gold-remove gold from originator
BEGIN
WAITFOR DELAY '00:00:05'--Time delay to give the duper time to log out fully
SELECT @CharLeave=Leave
FROM PS_userdata.dbo.Users_Master
WHERE UserUID @ID
IF @CharLeave=0
BEGIN
UPDATE PS_GameData.dbo.Chars
SET [Money] @
WHERE PS_GameData.dbo.Chars.CharID=@CharID
END
END
DECLARE
@AT int, @ItemID int
SET @ItemID = @
-- ActionType: 114 = Get AP by Selling Item to NPC
-- ActionType: 112 = Get AP by using it
SET @AT = 114
-- -----------------------------------------
IF ( @ActionType = @AT )
BEGIN
-- 10 AP Card
IF (@ItemID = 100220)
BEGIN
UPDATE PS_UserData.dbo.Users_Master
SET Point = (Point + @4 * 10)
WHERE UserUID = @ID
END
-- 200 AP Card
IF (@ItemID = 100223)
BEGIN
UPDATE PS_UserData.dbo.Users_Master
SET Point = (Point + @4 * 200)
WHERE UserUID = @ID
END
-- 500 AP Card
IF (@ItemID = 100224)
BEGIN
UPDATE PS_UserData.dbo.Users_Master
SET Point = (Point + @4 * 500)
WHERE UserUID = @ID
BEGIN
SELECT @UID = um.UserID FROM PS_UserData.dbo.Users_Master as um
INNER JOIN PS_GameData.dbo.Chars as c ON c.UserUID = um.UserUID
inner join PS_GameLog.dbo.ActionLog as a on a.Value1 = c.CharID Where c.CharID = @ AND ActionType = 103
SELECT @KIP = um.UserIp FROM PS_UserData.dbo.Users_Master as um
INNER JOIN PS_GameData.dbo.Chars as c ON c.UserUID = um.UserUID
inner join PS_GameLog.dbo.ActionLog as a on a.Value1 = c.CharID Where c.CharID = @ AND ActionType = 103
Select @DIP = um.UserIP FROM PS_UserData.dbo.Users_Master as um
INNER JOIN PS_GameLog.dbo.ActionLog as a on um.UserID = a.UserID WHERE um.UserID=@UserID AND ActionType = 103
USE [PS_GameLog]
GO
/****** Object: StoredProcedure [dbo].[usp_Insert_Action_Log_E] Script Date: 28.12.2013 02:15:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
USE [PS_GameLog]
GO
/****** Object: StoredProcedure [dbo].[usp_Insert_Action_Log_E] Script Date: 28.12.2013 02:15:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Might be that your actionlog just overloads and the database can't respond so fast by that.. I wonder whats your CPU workload in % while this problem appears?
Maybe just try to make a backup when the problem appears, and clean the logs then to ease your SQL, and see if the problem solves by that. (Anyway, just a guess of mine)
Scripted by [Dev]HoaX
Made for: ShaiyaAlliance / Shaiya-Reloaded / Shaiya-SyFy / Elitepvpers
*/
-- ActionType: 114 = Get AP by Selling Item to NPC
-- ActionType: 112 = Get AP by using it
SET @AT = 114
SET @ID = (SELECT Value2 FROM inserted) SET @ = (SELECT Value4 FROM inserted)
SET @Type = (SELECT ActionType FROM inserted)
-- -------------------------------------------------
IF ( @Type = @AT )
BEGIN
-- -----------------------------------------
-- 25 AP Card
IF @ID = 25230)
BEGIN
SET @ID = (SELECT UserUID FROM inserted)
UPDATE PS_UserData.dbo.Users_Master
SET Point = (Point + @ * 100) WHERE UserUID = @ID
END
-- 100 AP Card
IF @ID = 25231)
BEGIN
SET @ID = (SELECT UserUID FROM inserted)
UPDATE PS_UserData.dbo.Users_Master
SET Point = (Point + @ * 1000) WHERE UserUID = @ID
END
-- 1000 AP Card
IF @ID = 25232)
BEGIN
SET @ID = (SELECT UserUID FROM inserted)
UPDATE PS_UserData.dbo.Users_Master
SET Point = (Point + @ * 3000) WHERE UserUID = @ID
END
-- -----------------------------------------
End
you can try to somthing like nubness used to his admin panel most action type are not Records
Quote:
For having a more functional log system, and decreasing log processing time, I have changed the PS_GameLog database, by spreading the information in multiple tables and not recording the so called junk logs, which are useless. From now on, your logs will only contain useful information.
USE [PS_GameLog]
GO
/****** Object: StoredProcedure [dbo].[usp_Insert_Action_Log_E] Script Date: 28.12.2013 02:15:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Npc.purge Problem mehrere NPC,s verschwinden lassen 05/23/2013 - Metin2 Private Server - 5 Replies Jeder kennt ihn den Befehl npc.purge() und der NPC ist weg.
Zubeachten ist das ich diesen Befehl nicht in einem Dungon anwenden will sondern auf einer normalen Map sozusagen.
Das Problem beim npc.purge ist das immer nur der Mob verschwindet der per
when 30133.chat. angesprochen wird.
Egal wie ich das schreibe, oder Variablen da dran hänge es klappt einfach nicht. bestimmte (mehrere) NPC wegzuschicken.
Was mache ich falsch oder kann man den Befehl npc.purge eventuell kombinieren?
[Help]Problem with NPC (don't see new NPC) and privateshop... 08/28/2010 - Metin2 Private Server - 0 Replies Hello everybody ! First, excuse me for not talking german. So i have a huge problem on my server with the NPCs...
First of all, i can't see the private shop (ID 30 000) and i wanted to do a quest which will change the appearance of the player when he'll make a shop In Game. So where's is the problem ? Because i can see the files privateshop in the NPC2.eix and NPC2.epk...
Then, it's the same kind of problem when i try to add the new NPCs that we can find on this forum (NPCs like...
Other NPC-List/Andere NPC-Liste 08/10/2006 - Ragnarok Online PServer Hosting - 2 Replies Santa Suit
Broadcaster
Buffer
Change Size
DisguiserDonation-NPC
DreamStation
Event-NPC
Evento de Páscoa
GM-Guild-Flag
GM-NPC
Npc VS Npc 01/05/2006 - WoW Private Server - 5 Replies Hi @ll,
hätte da mal ne Frage und hoffe darauf das mir dabei jemand helfen kann (oder zumindest sagen kann obs Möglich ist)...:
Habe momentan einen Server am laufen auf Version 1.8.0 und arbeite mit paar Freunden daran ein Video zu machen.
In diesem Video wollen wir aber auch gerne einige größere Kämpfe zeigen und zwar mit Hilfe von Npc's.
Wenn ich aber nun eine zB Stormwind-Wache neber eine Orgrimmar-Wache stelle passiert nix, obwohl diese sicherlich verfeindet sind.
Kann ich also die...