• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

problem of disconnection of a player after a shot

Experienced Elementalist
Joined
Oct 5, 2006
Messages
215
Reaction score
8
Hello everyoneI would need help for a player problemhow do you delete items from a player or remove a player's character (without deleting their account)season 4.9I thank you in advance
 
Experienced Elementalist
Joined
Oct 5, 2006
Messages
215
Reaction score
8
yes , or tell me how to remove example the character nuri (item 67108864) from the player's accountand the same things for itemsthank you
 
Upvote 0
Junior Spellweaver
Joined
Apr 19, 2006
Messages
119
Reaction score
15
in Pangya_Character_Information , there is UID field which is foreign key
in Pangya_Item_WareHouse, , there is also UID field which is foreign key

in Pangya_Member_Info there is UID field which is primary key
 
Upvote 0
Junior Spellweaver
Joined
Apr 19, 2006
Messages
119
Reaction score
15
haven't test yet, try to backup before giving a try



or

USE [Pangya_S4_TH]
GO

/****** Object: StoredProcedure [dbo].[DeleteCharacter] Script Date: 11/07/2017 01:47:22 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[DeleteCharacter]
@LOGIN VARCHAR(20),
@CHAR_TYPEID INT
AS
BEGIN
SET NOCOUNT ON

DECLARE @UID INT = 0

-- IF ACCOUNT IS EXISTED
IF EXISTS (SELECT 1 FROM DBO.Pangya_Member_Info WHERE userid = @LOGIN) BEGIN
-- GET UID
SELECT @UID = UID FROM DBO.Pangya_Member_Info WHERE userid = @LOGIN

-- DELETE CHARACTER
DELETE FROM DBO.Pangya_Character_Information WHERE UID = @UID AND typeid = @CHAR_TYPEID

-- IF CHARACTER DELETED
IF (@@ROWCOUNT > 0) BEGIN
UPDATE DBO.Pangya_Item_WareHouse SET Valid = 0 WHERE UID = @UID AND DBO.UDF_PART_GET_CHAR(typeid) = (0x4000000 ^ @CHAR_TYPEID)
END
END

END
GO
 
Upvote 0
Experienced Elementalist
Joined
Oct 5, 2006
Messages
215
Reaction score
8
it does not workhe still has the same problem that he takes again nuri after a shot he decoin addition there is that he who has this problem (I even test his account I have the same problem at home)
 
Upvote 0
Junior Spellweaver
Joined
Apr 19, 2006
Messages
119
Reaction score
15
I'm not sure what it is. Take a look at server's log.
 
Upvote 0
Back
Top