Add 'Open_L1/node/open_l1.js'

init
This commit is contained in:
Sarimoko 2022-02-14 21:40:49 +00:00
parent e630feeb9b
commit 3d7245c488
1 changed files with 89 additions and 0 deletions

89
Open_L1/node/open_l1.js Normal file
View File

@ -0,0 +1,89 @@
require('dotenv').config();
const colors = require('colors');
// MySQL Setup
// --------------------------------
var mysql = require('mysql');
var con = mysql.createConnection({
host: process.env.SQL_IP, // Add in DOTenv
user: process.env.SQL_USER, // Add in DOTenv
password: process.env.SQL_PASS // Add in DOTenv
});
con.connect(function(err) {
if (err) throw err;
console.log("MySQL | Connected!".green);
});
// XML2JSON
// --------------------------------
fs = require('fs');
var parser = require('xml2json');
fs.readFile( './data.xml', function(err, data) {
var json = parser.toJson(data);
console.log("to json ->", json);
});
// Config Check
// --------------------------------
// Prereq | MySQL Login
// Lang
// Client Opcodes Version
// Game Settings
// Captians Log: Stardate...
// --------------------------------
// Developer
// Moderator | RCON?
// Start Server
// Error catch
// Shutdown request & timer config
//
// Databases
// --------------------------------
// Dynamic | MySQL
// --------------------------------
// Accounts
// Blood Pledges | recommends / Warehouse / clans /etc
// Boards | Auctions / Posts /etc
// Castle Ownership
// Character Bookmarks / Configs / Quests/ Skills /etc
// Inns | keys / locs / etc
// Pets | exp / items / etc
// --------------------------------
// Static | XML or JSON
// --------------------------------
// MAP | IDs / Timers / etc
// MOB | groups / skills timers
// NPC | IDs / actions / etc
// Polymorphs
// Game Server
// --------------------------------
// Opscodes / Packets
// --------------------------------
// 2.6/U | Season 2 Ep 6/U
// 3.2 | Season 3 Ep 2 Tikal/Anth
// 3.63 | Season 3 Ep 6.3
// --------------------------------
// Build Env
// --------------------------------
// Map/World
// Door Spawn
// NPC Spawn
// MOB Spawn
// --------------------------------
// Rates
// --------------------------------
// Drop
// Spawn
// Doll
// Shop
// --------------------------------
// Chats
// --------------------------------
// General
// Global
// Trade
// Guild
// Chat Parties