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...
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.
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
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
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 ?!