|
You last visited: Today at 14:48
Advertisement
Itemmall rollback
Discussion on Itemmall rollback within the Shaiya PServer Development forum part of the Shaiya Private Server category.
11/07/2015, 17:26
|
#1
|
elite*gold: 0
Join Date: Jun 2014
Posts: 113
Received Thanks: 32
|
Itemmall rollback
Hi. I have a problem with my itemmall. When i buy anything from itemmall and go to character screen i lose item. I have no dc's, no errors in logs, no nothing. So i dont know where to start.
I'm using shen1l's itemmall and SQL 2014, but i modified the dll since it had UID; shaiya PW; Shaiya123 but mine is different.
Any help is appreciated...
|
|
|
11/07/2015, 18:45
|
#2
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 391
|
If i remember correctly. The thread linked to Shen's release recommends using SQL 2008R2. There was another release with edited files which worked better with 2012/2014, but i haven't looked at those.
|
|
|
11/07/2015, 21:43
|
#3
|
elite*gold: 0
Join Date: Jun 2014
Posts: 113
Received Thanks: 32
|
Alright. I'll check if I can find anything
|
|
|
11/07/2015, 21:50
|
#4
|
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 359
|
Are you using his Stored Proc?
Code:
USE PS_GameData
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
create Proc [dbo].[usp_Save_User_BuyPointItems2]
@UserUID int,
@CharID int,
@UsePoint int,
@ProductCode varchar(20),
@UseDate datetime
AS
SET NOCOUNT ON
--SET XACT_ABORT ON
DECLARE @UseType int
DECLARE @Ret int
DECLARE @RemainPoint int
DECLARE @OrderNumber int
DECLARE @ReturnValue int
SET @Ret = 0
SET @UseType = 1 -- ??
BEGIN DISTRIBUTED TRANSACTION
/*========================================
??? ??
??? ?? ?? ?? UID ? ?? ?? UID? ??? ???? ???.
procRequestOrderProductByGame
???? UID @buyClientUserNumber BIGINT
???? UID @receiveClientUserNumber BIGINT
????? @itemCode VARCHAR(50)
?? ?? @resultCode SMALLINT OUTPUT
?? ? ?? @cashBalanceAfterOrder INT OUTPUT
???? @orderNumber INT OUTPUT
resultCode
0 ??
1 ????
2 ?? ??? ???? ??
3 ?? ???? ???? ??
5 DB??
6 ????
=========================================*/
EXEC @ReturnValue = game.PS_UserData.dbo.usp_Update_UserPoint @UserUID, @UsePoint
IF ( @ReturnValue < 0 )
BEGIN
GOTO ERROR
END
/*IF ( @Ret <> 0 )
BEGIN
INSERT INTO PointErrorLog( UserUID, CharID, ProductCode, Ret) VALUES( @UserUID, @CharID, @ProductCode, @Ret )
GOTO ERROR
END
---------------------------------------------
*/
-- ??? ?? ??
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate,RemainPoint,OrderNumber)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@ProductCode,@UseDate,@RemainPoint,@OrderNumber)
IF( @@ERROR<>0)
BEGIN
GOTO ERROR
END
COMMIT TRAN
RETURN 1
ERROR:
ROLLBACK TRAN
RETURN -1
SET XACT_ABORT OFF
SET NOCOUNT OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
|
|
|
11/08/2015, 08:28
|
#5
|
elite*gold: 0
Join Date: Jun 2014
Posts: 113
Received Thanks: 32
|
Quote:
Originally Posted by SnickQ
Are you using his Stored Proc?
Code:
USE PS_GameData
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
create Proc [dbo].[usp_Save_User_BuyPointItems2]
@UserUID int,
@CharID int,
@UsePoint int,
@ProductCode varchar(20),
@UseDate datetime
AS
SET NOCOUNT ON
--SET XACT_ABORT ON
DECLARE @UseType int
DECLARE @Ret int
DECLARE @RemainPoint int
DECLARE @OrderNumber int
DECLARE @ReturnValue int
SET @Ret = 0
SET @UseType = 1 -- ??
BEGIN DISTRIBUTED TRANSACTION
/*========================================
??? ??
??? ?? ?? ?? UID ? ?? ?? UID? ??? ???? ???.
procRequestOrderProductByGame
???? UID @buyClientUserNumber BIGINT
???? UID @receiveClientUserNumber BIGINT
????? @itemCode VARCHAR(50)
?? ?? @resultCode SMALLINT OUTPUT
?? ? ?? @cashBalanceAfterOrder INT OUTPUT
???? @orderNumber INT OUTPUT
resultCode
0 ??
1 ????
2 ?? ??? ???? ??
3 ?? ???? ???? ??
5 DB??
6 ????
=========================================*/
EXEC @ReturnValue = game.PS_UserData.dbo.usp_Update_UserPoint @UserUID, @UsePoint
IF ( @ReturnValue < 0 )
BEGIN
GOTO ERROR
END
/*IF ( @Ret <> 0 )
BEGIN
INSERT INTO PointErrorLog( UserUID, CharID, ProductCode, Ret) VALUES( @UserUID, @CharID, @ProductCode, @Ret )
GOTO ERROR
END
---------------------------------------------
*/
-- ??? ?? ??
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate,RemainPoint,OrderNumber)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@ProductCode,@UseDate,@RemainPoint,@OrderNumber)
IF( @@ERROR<>0)
BEGIN
GOTO ERROR
END
COMMIT TRAN
RETURN 1
ERROR:
ROLLBACK TRAN
RETURN -1
SET XACT_ABORT OFF
SET NOCOUNT OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
|
Thank you, but yes i'm using it.
It seem to be fixed after changing dbagent to fixed one. Ty all
#req close
|
|
|
11/08/2015, 09:30
|
#6
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 391
|
If you could link the file/location you found your fix it would be great.
That way, other people with the same problem in the future can find there fix.
Saves another thread with the same questions being asked again.
|
|
|
11/08/2015, 15:04
|
#7
|
elite*gold: 0
Join Date: Jun 2014
Posts: 113
Received Thanks: 32
|
I fixed it with
|
|
|
11/08/2015, 18:31
|
#8
|
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
|
Yes check dbAgent ^^
|
|
|
|
Similar Threads
|
Itemmall bug
11/08/2014 - Shaiya PServer Development - 1 Replies
Hello epvp i have a bug with my itemmall :
When I buy something in my shop and I disconnect and reconnect the AP returned .. EX. I buy a pack of top 20,000 for AP, I disconnect and reconnect my re 20,000 PAs are there
Thanks
|
I cant buy in ItemMall. [Please Help]
06/05/2014 - SRO Private Server - 0 Replies
Hello guys.
Add a premium and I can not buy it.
I have repeated all steps again and nothing, has services on 1.
I could have done wrong to not be able to buy?
http://i.epvpimg.com/Ibljb.jpg
|
Itemmall new Tab
01/12/2013 - SRO Private Server - 4 Replies
Hey Guys i have a Problem with my Itemmall , i had added a new Tab cause the other Tab is Full and maxed , how i can change the MAX Slot Index of any Tab , i ask cause my new Tab allow only 1 Item.
here my Lines:
Media:
RefShopGods.txt
1 15 MALL_AVATAR_ATTACH_TAB1 PACKAGE_ITEM_MALL_AV ATAR_M_NEWHALLOWEEN_ATTACH 0 -1 xxx -1 xxx -1 xxx -1 xxx
|
ItemMall
10/22/2010 - Shaiya - 0 Replies
Hey , How can i modify the items from ItemMall with less AP ?!
|
All times are GMT +2. The time now is 14:48.
|
|