Originally Posted by
Scathy
I'm sure this is a ghetto way of doing this, but if it helps anyone - here's how I restored the GM island vendors from repack v7 to v8 after I added ~100 items to various vendors using .npc add <item no>. I used HeidiSQL for all of this.
-Take a backup of your current working configuration. You can export all of the databases, but I found it easier to just shut down MySQL, then make a copy the entire Mangos directory.
-Load up the original DB that has the custom entries
-The custom vendors are entry ID 90000 - 900025. Select the mangos database, then run query 'select * from npc_vendor where entry>89999' : this will dump only the custom entries that the batch file defines and adds into the database when you kick off the batch file. In the query results pane, select all> right click > Export grid rows > Encoding utf-8/ output format SQL replace/row selection - selection. Give the file a name with a .sql extension.
-Shut down the old database, then load up the new one.
-run the batch file to spawn GM island NPCs if they are not already spawned
-Open HeidiSQL again, then select the mangos database.
-File > Load SQL file > select your exported .sql file from earlier. It should load into the query window.
-Click the play button or press F9 to execute the query.
-Scathy