Jump to content
  • 0
rans

SQL Item Database to TXT

Question

Hello,

is there any way to convert SQL item_db2 into TXT item_db?

Thanks!

Edited by Secrets
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
Just now, Kaze said:

I wouldnt post here if i ddnt search on google :) 
even the link you gave me give the wrong result.

Im looking for SQL to TXT not TXT to SQL. try to read sometimes it helps.

Link to comment
Share on other sites

  • 0

Export your database as a SQL file then remove all occurences of NULL, do some regex magic to remove quotes and add braces to item scripts.

That's how I did it back then.

Bingo, you have your TXT database :)

REPLACE INTO `item_db_re` VALUES (501,'Red_Potion','Red Potion',0,50,NULL,70,NULL,NULL,NULL,NULL,0xFFFFFFFF,63,2,NULL,NULL,NULL,NULL,NULL,'itemheal rand(45,65),0;',NULL,NULL);
501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ itemheal rand(45,65),0; },{},{}

 

Link to comment
Share on other sites

  • 0
3 hours ago, Secrets said:

Export your database as a SQL file then remove all occurences of NULL, do some regex magic to remove quotes and add braces to item scripts.

That's how I did it back then.

Bingo, you have your TXT database :)

REPLACE INTO `item_db_re` VALUES (501,'Red_Potion','Red Potion',0,50,NULL,70,NULL,NULL,NULL,NULL,0xFFFFFFFF,63,2,NULL,NULL,NULL,NULL,NULL,'itemheal rand(45,65),0;',NULL,NULL);
501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ itemheal rand(45,65),0; },{},{}

 

Hi thanks for answering!
now i have idea

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.