Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 15:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



I want to know how to clean ID and character data in the database.

Discussion on I want to know how to clean ID and character data in the database. within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2017
Posts: 159
Received Thanks: 5
I want to know how to clean ID and character data in the database.

I want to know how to clean ID and character data in the database.
thetoys is offline  
Old 02/01/2018, 17:35   #2
 
C_O_R_E's Avatar
 
elite*gold: 0
Join Date: Jul 2014
Posts: 264
Received Thanks: 54
I'm not familiar with SQL in general and haven't looked into flyff databases.
By a quick eye catch, just saw that CHARACTER01 stores all created ones, which might be the right database to wipe out. If you want to kick out also every created account, drop all entries in ACCOUNT database.

TRUNCATE - clears all entries/records of a specified table but causing problems with PK/FK
See:
as @ mentioned. (Haven't known that)

READ MORE about TRUNCATE


Not sure about LOGGING_01 database.


$Edit: Ok, as it seems like all tables (regarding their entries) of LOGGING also needs to get kicked out.

$Edit2: Do not truncate BASE_VALUE_TBL since it contains all base values for new characters based on gender.
C_O_R_E is offline  
Thanks
1 User
Old 02/02/2018, 12:12   #3
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
Better use delete + checkident to really "reset" the databases - truncate only deletes all entries while having problems with foreign keys/constaints.

Code:
USE ACCOUNT_DBF
GO

EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'
EXEC sp_MSForEachTable 'DELETE FROM ?'
EXEC sp_MSForEachTable 'ALTER TABLE ? CHECK CONSTRAINT ALL'
EXEC sp_MSForEachTable 'DBCC CHECKIDENT (''?'', RESEED, 1)'
GO
Code:
USE CHARACTER_01_DBF
GO

EXEC sp_MSForEachTable @ command1 = 'ALTER TABLE ? NOCHECK CONSTRAINT ALL',  @ whereand ='and o.name <> ''BASE_VALUE_TBL'''
EXEC sp_MSForEachTable @ command1 = 'DELETE FROM ?',  @ whereand ='and o.name <> ''BASE_VALUE_TBL'''
EXEC sp_MSForEachTable @ command1 = 'ALTER TABLE ? CHECK CONSTRAINT ALL',  @ whereand ='and o.name <> ''BASE_VALUE_TBL'''
EXEC sp_MSForEachTable @ command1 = 'DBCC CHECKIDENT (''?'', RESEED, 1)',  @ whereand ='and o.name <> ''BASE_VALUE_TBL'''
GO
(remove the spaces between the '@' and the variable names "command1" and "whereand")

Better back up your BASE_VALUE_TBL, even if this script should exclude it.

Code:
USE LOGGING_01_DBF
GO

EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'
EXEC sp_MSForEachTable 'DELETE FROM ?'
EXEC sp_MSForEachTable 'ALTER TABLE ? CHECK CONSTRAINT ALL'
EXEC sp_MSForEachTable 'DBCC CHECKIDENT (''?'', RESEED, 1)'
GO
Regarding the RANKING_DBF: I bet no one really uses it, so it can be ignored.
xTwiLightx is offline  
Thanks
1 User
Old 02/06/2018, 11:21   #4
 
elite*gold: 0
Join Date: Jan 2017
Posts: 301
Received Thanks: 28
Yes but be sure you only delete entries with idplayer because there are skill tables and tables like BASE and stuff
KingKeesie is offline  
Old 02/06/2018, 14:52   #5
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
Quote:
Originally Posted by KingKeesie View Post
Yes but be sure you only delete entries with idplayer because there are skill tables and tables like BASE and stuff
For character-based data, only the BASE_VALUE_TBL data is important to be kept.

Logging data can be cleared for sure (because old logs won't fit the new character data anymore), account data can be kept but isn't a must.
xTwiLightx is offline  
Reply


Similar Threads Similar Threads
Original Shaiya data.sah and data.saf
08/13/2014 - Shaiya - 3 Replies
can someone send them to me please? if not, can somone send me the files for lvls 50+ armors of light and fury? Thanks!
[Selling] Character sale price. want to know
09/01/2013 - Archlord Trading - 2 Replies
WTS on Urzark 2 characters, zerk lvl 84 and knight lvl 70. tell me how much can i get on them. List inventory: Zerk: full 2nd cf set godlike stats,stoned lvl 6 stoes, 12 reinf, glorius kark,blode,shuta, brill shuta, haul, ockheros,flying,lvl 80 hh diff clases armor, pants, cap,abs zerk top stoned, lots of stones and other stuff, jewel fantastic, chantra bag, full of suits,pots,januses,pets, and other stuff. Knight, full 2nd cf godlike armor, weps very good and quite the same other...
I want to run bot but I don't know based engine client. How to know ?
08/02/2012 - SRO Private Server - 8 Replies
I want to run bot. but I don't know based engine client(vsro, black rogue, or etc.) I try to use edxSilkroadLoader5, It's can not add and show error. The PK2Reader could not load xxxx/media.pk2 due to an error; and I try to user Pk2ExtractorSE, It's show blank result after I open Pk2. I try to use mBot_vSRO110_1.12b (Crack),It's show error too.
I just wanna know want to know your oppinion's :)
01/12/2012 - SRO Private Server - 4 Replies
80 cap only china or 80 cap China + Euro -> Based on Black Rogue files - Dedicated server ! :)
im new and noob and need to know how to use data and make npc
11/28/2010 - EO PServer Hosting - 1 Replies
hi guys first im new and noob so if u will help me help me by video thats will be better now i dont know hot to use data but i have done my server 2 days ago and use navicat premium en but i want to know hot use data by this navicat program and how to change npc place and how to fix the bugs cuz my server have lots of bugs like 1- when i buy wyvren and do evole for it its turning to turtle and when i mount it its back to normal and when i buy some eudemons like vanq its get name...



All times are GMT +1. The time now is 15:50.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.