[SCRIPT] Catalog Switch Script

Results 1 to 1 of 1
  1. #1
    Valued Member Oliveri is offline
    MemberRank
    Sep 2013 Join Date
    146Posts

    config [SCRIPT] Catalog Switch Script

    Catalog Switch Script
    So you're running a very old catalog and want to switch to a new one, possibly released or custom, but you just can't be asked to add them to your own one? No problem, here's the scripts!


    NOTE! Before you run the script, make sure you actually have all the customs you previously had added to your new items_base.

    The easiest way to check this is:
    Code:
    SELECT    items_base_old.item_name
    FROM      items_base_old
    WHERE     items_base_old.item_name NOT IN(SELECT items_base.item_name FROM items_base) AND type = 's'GROUP BY item_name

    So the script will replace your `items`-tables ID's with the new ones, so you won't lose rooms and such.


    Tutorial
    1. npm i
    2. Fix the db settings in index.js
    3. node src/index.js

    Requirements:

    - Node. That's about it.


    Downloads:
    https://www.mediafire.com/file/it9vr...cript.zip/file


    Credits
    - higoka (Discord: higoka#7120, https://github.com/higoka)
    - Oliver ig




Advertisement