Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 02:04

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

Advertisement



Need help anyone how can i fix this?

Discussion on Need help anyone how can i fix this? within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
Need help anyone how can i fix this?

Hi, Epvpers i have a problem on DP to NPC..
and its work .. but when have many players online.. the DP to NPC not work and we need to restart the server to work again.. and i see gamelog is not responding when i reinstall so i need to end task the gamelog to reinstall..
may i know what cause of this problem??

thank you in advance who answer my question thank you!
[GameAdvisor]Finn is offline  
Old 12/09/2018, 11:57   #2
 
oldjayy's Avatar
 
elite*gold: 16
Join Date: Jun 2011
Posts: 63
Received Thanks: 159
Seems like poorly written SQL script or some kind of conflict when executing the stored procedure.
oldjayy is offline  
Thanks
1 User
Old 12/09/2018, 12:10   #3
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
Quote:
Originally Posted by oldjayy View Post
Seems like poorly written SQL script or some kind of conflict when executing the stored procedure.
so do you think the problem is SQL Script?
because dp to npc is work but when have at least 100+ Player ingame..
DP to NPC not work.. and when i try to uninstall ps_gamelog.exe ..ill get not responding..
[GameAdvisor]Finn is offline  
Old 12/09/2018, 16:05   #4

 
{Skrillex}'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 849
Received Thanks: 407
Quote:
Originally Posted by [GameAdvisor]Finn View Post
so do you think the problem is SQL Script?
because dp to npc is work but when have at least 100+ Player ingame..
DP to NPC not work.. and when i try to uninstall ps_gamelog.exe ..ill get not responding..
Hi,
are you using this script with usp_Insert_Action_Log_E Stored procedure?
Or with a trigger?
Maybe of this script in the procedure your actionlog is overloaded
{Skrillex} is offline  
Thanks
1 User
Old 12/09/2018, 16:19   #5
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
Quote:
Originally Posted by .:Unix:. View Post
Hi,
are you using this script with usp_Insert_Action_Log_E Stored procedure?
Or with a trigger?
Maybe of this script in the procedure your actionlog is overloaded
i use usp_Insert_Action_Log_E Stored procedure
i think that also.. can you help how can i fix?
[GameAdvisor]Finn is offline  
Old 12/09/2018, 16:27   #6

 
{Skrillex}'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 849
Received Thanks: 407
Instead of a procedure use a trigger.

PHP Code:
USE [PS_GameLog]
GO
/****** Object: Trigger [dbo].[Action] Script Date: 12/09/2018 16:26:19 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE TRIGGER 
[dbo].[Action]
on [PS_GameLog].[dbo].[ActionLog]
for 
insert
as


DECLARE [
MENTION=292198]Action[/MENTION]Type tinyint,
@
AT int, [MENTION=2805776]UserU[/MENTION]ID int, [MENTION=1134588]item[/MENTION]ID int, [MENTION=414337]count[/MENTIONtinyint
--put your DP-Script here.

END 
Hope its easy to understand
{Skrillex} is offline  
Thanks
1 User
Old 12/09/2018, 16:31   #7
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
Quote:
Originally Posted by .:Unix:. View Post
Instead of a procedure use a trigger.

PHP Code:
USE [PS_GameLog]
GO
/****** Object: Trigger [dbo].[Action] Script Date: 12/09/2018 16:26:19 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE TRIGGER 
[dbo].[Action]
on [PS_GameLog].[dbo].[ActionLog]
for 
insert
as


DECLARE [
MENTION=292198]Action[/MENTION]Type tinyint,
@
AT int, [MENTION=2805776]UserU[/MENTION]ID int, [MENTION=1134588]item[/MENTION]ID int, [MENTION=414337]count[/MENTIONtinyint
--put your DP-Script here.

END 
Hope its easy to understand
i delete first the DP Script in Store Procedure right? before
add this trigger?
[GameAdvisor]Finn is offline  
Old 12/09/2018, 16:32   #8

 
{Skrillex}'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 849
Received Thanks: 407
Quote:
Originally Posted by [GameAdvisor]Finn View Post
i delete first the DP Script in Store Procedure right? before
add this trigger?
Yes. Maybe you need to modify a bit. But should work
{Skrillex} is offline  
Thanks
1 User
Old 12/09/2018, 16:33   #9
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
Quote:
Originally Posted by .:Unix:. View Post
Yes. Maybe you need to modify a bit. But should work
Thanks .:Unix:. i hope this is work and no more bug DP

Quote:
Originally Posted by .:Unix:. View Post
Yes. Maybe you need to modify a bit. But should work
its work but in a few hours its not working again.. i remove DP script on Stored Procedure and i query the trigger..
[GameAdvisor]Finn is offline  
Old 12/11/2018, 18:30   #10
 
Velocity.'s Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 323
Go ahead and give this a try..
Velocity. is offline  
Thanks
2 Users
Old 12/11/2018, 18:43   #11

 
{Skrillex}'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 849
Received Thanks: 407
Quote:
Originally Posted by Velocity. View Post
Go ahead and give this a try..
Hi,
Its again much code for the ActionLog. Its wayne if in procedure or in a trigger. You need to do the assebly way. There is no overloading.

Your server is "too" active for sql way.

Regards
{Skrillex} is offline  
Thanks
1 User
Old 12/11/2018, 18:52   #12
 
Velocity.'s Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 323
Quote:
Originally Posted by .:Unix:. View Post
Hi,
Its again much code for the ActionLog. Its wayne if in procedure or in a trigger. You need to do the assebly way. There is no overloading.

Your server is "too" active for sql way.

Regards
I've had many players online and used a script similar to this one and never had any problems with it. anyway, goodluck.
Velocity. is offline  
Old 12/12/2018, 12:14   #13
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
Quote:
Originally Posted by Velocity. View Post
Go ahead and give this a try..
Thanks @ i hope this is work and not getting bug again .. in a few hours..

if still getting bug again.. i think i need to try unix said
by the way thanks again..
[GameAdvisor]Finn is offline  
Old 12/19/2018, 13:38   #14
 
[MXD]Takeshi's Avatar
 
elite*gold: 0
Join Date: Nov 2017
Posts: 137
Received Thanks: 147
you can try to use something like this in your procedure

Code:
-- ActionType: 114 = Get AP by Selling Item to NPC
-- ActionType: 112 = Get AP by using it
SET @AT = 112

IF ( [MENTION=292198]Action[/MENTION]Type = @AT )
BEGIN

-- 50 AP Card

	IF (@ItemID = 100218)
	BEGIN 
	
		UPDATE PS_UserData.dbo.Users_Master 
		SET Point = (Point + [MENTION=635621]vaLue[/MENTION]4 * 50) 
		WHERE UserUID = [MENTION=2805776]UserU[/MENTION]ID
		
	END


-- 100 AP Card

	IF (@ItemID = 100219)
	BEGIN 
	
		UPDATE PS_UserData.dbo.Users_Master 
		SET Point = (Point + [MENTION=635621]vaLue[/MENTION]4 * 100) 
		WHERE UserUID = [MENTION=2805776]UserU[/MENTION]ID
		
	END

End
every time worked, never get error or other, anyway is possible ur action_log procedure is "broked" and for this u get some deadlock, can try to add a waiting before execute, so in this way you can create a sort of traffic light for the queue
[MXD]Takeshi is offline  
Thanks
1 User
Reply

Tags
shaiya 5.4 error


Similar Threads Similar Threads
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html
AnyOne Can Help Me ?How Can I Fix This Problem
04/20/2012 - Grand Chase - 3 Replies
Anyone Can Help me :confused: I Don't Know How To Fix It http://imageshack.us/photo/my-images/837/33180049 .png/ http://imageshack.us/photo/my-images/837/33180049 .png/ Here's My Photo



All times are GMT +2. The time now is 02:04.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.