How to Disable Character Deletion

08/06/2017 00:53 BountyFinder#1
Hi! i'm sorry i'm newbie can anyone help me how to disable character deletion?
thanks in advance.
08/06/2017 01:25 Lumi#2
You can remove the button. ;v (resdata.inc)
08/06/2017 03:25 BountyFinder#3
Quote:
Originally Posted by ​Lumi View Post
You can remove the button. ;v (resdata.inc)
i tried to remove it in APP_SELECT_CHAR using GUI editor but when i try to login i cannot go through character select the client auto closes.

do i also need to remove the "delete" from the Resdata.txt and .h?
08/06/2017 04:38 Lumi#4
Quote:
Originally Posted by BountyFinder View Post
i tried to remove it in APP_SELECT_CHAR using GUI editor but when i try to login i cannot go through character select the client auto closes.

do i also need to remove the "delete" from the Resdata.txt and .h?
No, you just need to delete the entry in resdata.inc.
Could you give me that part? I'll show you which part you should delete.
08/06/2017 07:10 iSynaptic#5
Deleting the button only is not a good way, since it is only client sidet. You can still send the Packet to delete the character.

For sure, deleting the "Delete" Button is a first step on Client side, but its not enough to make it really forbidden. I would suggest, to remove the code behind the Packet "on" Function on Server side.
08/06/2017 08:22 BountyFinder#6
Thanks for your answers i've already fixed this, just configured something in database.
09/25/2017 05:19 pakinglalat#7
Delete button was removed from the APP_SELECT_CHAR via Atool but then it won't go through server selection as it will crash. What could be the problem?
09/25/2017 06:17 xRageee#8
remove the WIDC_DELETE @ WndTitle.cpp
11/22/2017 10:36 zahran123#9
can i delete chars using CE?
11/22/2017 11:01 Dr. Peacock#10
Quote:
Originally Posted by zahran123 View Post
can i delete chars using CE?
Yes, you are able to Delete Chaars using CE, if the Server dont Fix it ;)
You can send a Packet to Delete the Character if you dont Remove it...
( Like ** Chaar Overwrite ** ^^ )
11/22/2017 11:09 Wezzy_Dev#11
how to disable??

Go to _Database\DbManager.cpp

Find this
DBQryCharacter( szQuery, "D1", idPlayer, g_appInfo.dwSys, lpDbOverlappedPlus->AccountInfo.szAccount, lpDbOverlappedPlus->AccountInfo.szPassword);

Change to this

DBQryCharacter( szQuery, "D1", idPlayer, g_appInfo.dwSys, lpDbOverlappedPlus->AccountInfo.szAccount, szNo);

Go to Database: CHARACTER_STR

Look for
IF EXISTS(SELECT * FROM ACCOUNT_DBF.dbo.ACCOUNT_TBL WHERE account = @iaccount) --AND (id_no2 = @im_szName OR member = 'B' ))

Change to this

IF EXISTS(SELECT * FROM ACCOUNT_DBF.dbo.ACCOUNT_TBL WHERE account = @iaccount AND (id_no2 = @im_szName OR member = 'B' ))


So character deletion is gone :D
11/22/2017 11:34 xTwiLightx#12
Quote:
Originally Posted by Wezzy_Dev View Post
how to disable??

Go to _Database\DbManager.cpp

Find this
DBQryCharacter( szQuery, "D1", idPlayer, g_appInfo.dwSys, lpDbOverlappedPlus->AccountInfo.szAccount, lpDbOverlappedPlus->AccountInfo.szPassword);

Change to this

DBQryCharacter( szQuery, "D1", idPlayer, g_appInfo.dwSys, lpDbOverlappedPlus->AccountInfo.szAccount, szNo);

Go to Database: CHARACTER_STR

Look for
IF EXISTS(SELECT * FROM ACCOUNT_DBF.dbo.ACCOUNT_TBL WHERE account = @iaccount) --AND (id_no2 = @im_szName OR member = 'B' ))

Change to this

IF EXISTS(SELECT * FROM ACCOUNT_DBF.dbo.ACCOUNT_TBL WHERE account = @iaccount AND (id_no2 = @im_szName OR member = 'B' ))


So character deletion is gone :D
Why do queries when you completely want to disable character deletion?

Code:
IF @iGu = 'D1'
	BEGIN
		select fError = '2'
		return
done.
11/22/2017 11:46 Wezzy_Dev#13
i want to make quite hard ahahaahaa but thanks for esy idea :D