diff --git a/Open_L1/node/open_l1.js b/Open_L1/node/open_l1.js new file mode 100644 index 0000000..0b142d1 --- /dev/null +++ b/Open_L1/node/open_l1.js @@ -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 +