• 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.

Don't delete character

Experienced Elementalist
Joined
Nov 26, 2008
Messages
242
Reaction score
13
Hello,

when I click on delete char, I got this error: "Your char has got cash item or is in a clan".

I haven't cash item or clan, wtf.


Server files 2008 repack 3.
 
Experienced Elementalist
Joined
Nov 26, 2008
Messages
242
Reaction score
13
its proble the script you did or your db is screwd up so you have to start with the clean modded db again.if that doesnt work then i dont have a clue.

I can't delete my db again.

Some script are preferred.
 
Upvote 0
Newbie Spellweaver
Joined
Dec 6, 2009
Messages
66
Reaction score
5
Dude, they are right. It's not too hard to delete a db. It's pretty simple.

If you need a small tut:
Right-Click > Delete database
>Delete ODBC
>Make the DB again
>Make the ODBC Back

Simple though.
 
Upvote 0
Experienced Elementalist
Joined
Nov 26, 2008
Messages
242
Reaction score
13
Dude, they are right. It's not too hard to delete a db. It's pretty simple.

If you need a small tut:
Right-Click > Delete database
>Delete ODBC
>Make the DB again
>Make the ODBC Back

Simple though.

WTF, are you idiot or what?

I use a fresh db by phoenix, I only edited the storage line because before I could not move premiums items to storage so I had applied that script (see the oldest posts).

I cannot delete DB, oke?....

I want to know another solution for that problem.
 
Last edited:
Upvote 0
Experienced Elementalist
Joined
Nov 12, 2010
Messages
218
Reaction score
5
u cannot delete?
sure u do.

u cant delete it beuz u have all the accounts and poop

so i understand what u mean
 
Upvote 0
Joined
Jan 13, 2009
Messages
536
Reaction score
224
Can't help it if he keeps repeating his questions. Also, I didn't read the previous posts. Sorry.

its alright.

@topic

i'm very sorry but i gues this is a rare bug for you, this is the first time somebody have problems with the modded db of phoenix,i also had this and i just deleted the db but since you cant someway i gues your stuck at it till somebody will look at this more srsly then others.
 
Upvote 0
Newbie Spellweaver
Joined
Dec 6, 2009
Messages
66
Reaction score
5
WTF, are you idiot or what?

I use a fresh db by phoenix, I only edited the storage line because before I could not move premiums items to storage so I had applied that script (see the oldest posts).

I cannot delete DB, oke?....

I want to know another solution for that problem.

F*** u Biat**. I was trying to help. On topic, just screw it. Make a new account or some poop. Why would you need to delete the character. And the least you could do is explain this poop a lil' better. Use pics and show what happens.

Sorry for the flame, and Phoenix if you think that this it 2 vulgar. Just delete it, and do not post back.
 
Upvote 0
Experienced Elementalist
Joined
Nov 26, 2008
Messages
242
Reaction score
13
F*** u Biat**. I was trying to help. On topic, just screw it. Make a new account or some poop. Why would you need to delete the character. And the least you could do is explain this poop a lil' better. Use pics and show what happens.

Sorry for the flame, and Phoenix if you think that this it 2 vulgar. Just delete it, and do not post back.

Learn to read before posting.

@Phoenix: This is a log:

Code:
MMatchDBMgr::DeleteCharacter - Invalid cursor state

[06:09:08] Async DB Query(DeleteChar) Failed
MMatchDBMgr::DeleteCharacter - Invalid cursor state

[06:10:02] Async DB Query(DeleteChar) Failed
 
Upvote 0
Joined
Mar 12, 2009
Messages
6,531
Reaction score
1,814
Execute this and try deleting the character:

Code:
/****** Object:  StoredProcedure [dbo].[spDeleteChar]    Script Date: 11/17/2010 14:36:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/* ??? ?? */  
CREATE  PROC [dbo].[spDeleteChar]  
 @AID  int,  
 @CharNum smallint,  
 @CharName varchar(24)  
AS  
DECLARE @CID  int  
DECLARE @CashItemCount int  
  
SELECT @CID=CID FROM Character WITH (nolock) WHERE AID=@AID and CharNum=@CharNum  
IF (@CID IS NULL)  
BEGIN  
 return (-1)  
END  
  
SELECT @CashItemCount=COUNT(*) FROM CharacterItem(nolock) WHERE CID=@CID AND ItemID>=500000  
  
IF (@CashItemCount > 0) OR  
   (EXISTS (SELECT TOP 1 CLID FROM ClanMember WHERE CID=@CID))  
BEGIN  
 return (-1)  
END  
  
BEGIN TRAN

UPDATE Character SET CharNum = -1, DeleteFlag = 1, Name='', DeleteName=@CharName  
WHERE AID=@AID AND CharNum=@CharNum AND Name=@CharName  
IF (0 <> @@ERROR) OR (0 = @@ROWCOUNT) BEGIN
 ROLLBACK TRAN
 RETURN (-1)
END

INSERT INTO CharacterMakingLog(AID, CharName, Type, Date)
VALUES(@AID, @CharName, '??', GETDATE())
IF (0 <> @@ERROR) OR (0 = @@ROWCOUNT) BEGIN
 ROLLBACK TRAN
 RETURN (-1) 
END
  
COMMIT TRAN
SELECT 1 AS Ret
 
Upvote 0
Experienced Elementalist
Joined
Nov 26, 2008
Messages
242
Reaction score
13
Why don't you use my fresh DB and copy all contents of the Account / Login / Character tables by just managing some AID's & CID's from your old database to get get it working?

phoenix.. I use your db, I only edited this line http://forum.ragezone.com/6015492-post4.html because before I didn't could move premiums items to storage.

So, if I use your db original, I will have again storage's problem.
 
Upvote 0
Back
Top