Register for your free account! | Forgot your password?

You last visited: Today at 00:01

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

Advertisement



help for exchange bug

Discussion on help for exchange bug within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2012
Posts: 2
Received Thanks: 0
help for exchange bug

hello I am sorry for my english I'm french
I have a question paused
I did my shaiya server and I have a problem with the exchange when I made ​​one exchange with another character when I made ​​one deco I lose the exchange that was done I do not have the items in my inventory .
* it conneterai a solution to my problem and how to solve it?

thank you in advance
ZLS
zenilasouris is offline  
Old 09/17/2014, 08:49   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 343
Received Thanks: 87
(effectivement, ça fait mal aux yeux... *_o)

You should to have somewhere one folder with Log in your server files... could be nice that you do one copy paste here ofthe error when you got it.

And maybe You can get directly the error and where to search for that problem.

Regards,
_Diavolino_ is offline  
Old 09/17/2014, 09:44   #3
 
elite*gold: 0
Join Date: Dec 2012
Posts: 2
Received Thanks: 0
zenilasouris is offline  
Old 09/17/2014, 16:21   #4
 
castor4878's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,366
where 'Cape de l'Aube' is an invalid SQL statement (single quote shall be escaped with two single-quote characters, eg 'Cape de l''Aube').
the issue comes from the word processing made in the SQL procedure; the sentence was (initially) finely loaded into the Items table (using 'Cape de l''Aube') but when the item details are read (during the handling of the exchange) the loaded item's name is "Cape de l'Aube" (no double-single-quote), that name is tranmitted (with other parameters) to the SP usp_Insert_Action_Log_E (base PS_GameLog) and that script use it w/o any care (and doesn't re-escape the string).

change the SP to be:

Code:
USE [PS_GameLog]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER Proc [dbo].[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,
	@StrActionTime varchar(20),
	@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) = ''
	
AS

DECLARE @Sql nvarchar(4000) = ''
DECLARE @ActionTime datetime = convert(datetime, @StrActionTime, 120)
DECLARE @find char(1) = char(39)
DECLARE @repl char(2) = char(39) + char(39)
DECLARE @CharLeave int = 1

-- replace single-quote by two single-quotes in received strings
set @Text1 = replace(@Text1, @find, @repl)
set @Text2 = replace(@Text2, @find, @repl)
set @Text3 = replace(@Text3, @find, @repl)
set @Text4 = replace(@Text4, @find, @repl)

... etc ...
keep your anti-dupe actions, if any, and the final INSERT or EXEC statement.
castor4878 is offline  
Thanks
5 Users
Reply


Similar Threads Similar Threads
[Exchange]Paypal Exchange gegen Moneybookers, LR
06/19/2013 - Trading - 9 Replies
Hallo Epvpers, ich weiß nicht ob es lohnenswert ist einen Paypal Exchange anzubieten. Aber ich versuche es mal. Ich exchange jeden Betrag auf Moneybookers, PSC oder Liberty Reserve zu Paypal und das 1zu1. Für alle die jetzt sagen ja Paypal bestimmt nicht autorisierte Zahlung - Hier ein Screenshot http://puu.sh/2fWkw
[Exchange♥Sell] Darkorbit full havoc | 2 Hercules | Exchange*Sell
10/19/2012 - DarkOrbit Trading - 3 Replies
Hey guys, I want sell or exchange my Global Europe 1 account: - Much AMMO - 6LF4 all LVL16 - 100.000 uridium + 5months 24/7 Botservice with Boxes doubler.< - 7iris ~ 1 apis ~ ALL LVL 16 ~ - 11 havoc design ~ 2 Hercules design -kBot noGG UNLIMITED license , SO IRIS NO PROBLEM.
exchange gold to silk and exchange gold ^^
07/27/2011 - Silkroad Online Trading - 37 Replies
Liking the title, we can help you exchange gold to silk (epin-card).what's more?we can also help you exchange gold from one server to another server . contact ways: Email/MSN: [email protected] Yahoo! Messenger: [email protected] AOL AIM: [email protected] Skype:



All times are GMT +1. The time now is 00:02.


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