rans Posted August 3, 2017 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 429 Reputation: 60 Joined: 08/19/12 Last Seen: Monday at 03:34 AM Share Posted August 3, 2017 (edited) Hello, is there any way to convert SQL item_db2 into TXT item_db? Thanks! Edited September 17, 2017 by Secrets Quote Link to comment Share on other sites More sharing options...
0 rans Posted August 3, 2017 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 429 Reputation: 60 Joined: 08/19/12 Last Seen: Monday at 03:34 AM Author Share Posted August 3, 2017 Just now, Kaze said: http://nn.ai4rei.net/dev/eatoys/item-db.htm Uhm this is txt to sql. Im looking for sql to txt Quote Link to comment Share on other sites More sharing options...
0 rans Posted August 3, 2017 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 429 Reputation: 60 Joined: 08/19/12 Last Seen: Monday at 03:34 AM Author Share Posted August 3, 2017 Just now, Kaze said: Lazy 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. Quote Link to comment Share on other sites More sharing options...
0 Secrets Posted August 3, 2017 Group: Developer Topic Count: 36 Topics Per Day: 0.01 Content Count: 588 Reputation: 437 Joined: 01/26/16 Last Seen: Wednesday at 03:00 PM Share Posted August 3, 2017 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; },{},{} Quote Link to comment Share on other sites More sharing options...
0 rans Posted August 3, 2017 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 429 Reputation: 60 Joined: 08/19/12 Last Seen: Monday at 03:34 AM Author Share Posted August 3, 2017 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 Quote Link to comment Share on other sites More sharing options...
-3 Deleted User Posted August 3, 2017 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 235 Reputation: 55 Joined: 12/02/11 Last Seen: February 26, 2021 Share Posted August 3, 2017 6 minutes ago, Thaddeus said: Hello, is there any way to convert SQL item_db2 into TXT item_db? Thanks! http://nn.ai4rei.net/dev/eatoys/item-db.htm Quote Link to comment Share on other sites More sharing options...
-5 Deleted User Posted August 3, 2017 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 235 Reputation: 55 Joined: 12/02/11 Last Seen: February 26, 2021 Share Posted August 3, 2017 Just now, Thaddeus said: Uhm this is txt to sql. Im looking for sql to txt Lazy Quote Link to comment Share on other sites More sharing options...
Question
rans
Hello,
Edited by Secretsis there any way to convert SQL item_db2 into TXT item_db?
Thanks!
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.