Example #1
0
void ScriptMgr::ScriptsInit()
{
    outstring_log("   ____                              _____           _       _   ");
    outstring_log("  / __ \\                            / ____|         (_)     | |  ");
    outstring_log(" | |  | |_ __ ___  __ _  ___  _ __ | (___   ___ _ __ _ _ __ | |_ ");
    outstring_log(" | |  | | '__/ _ \\/ _` |/ _ \\| '_ \\ \\___ \\ / __| '__| | '_ \\| __|");
    outstring_log(" | |__| | | |  __/ (_| | (_) | | | |____) | (__| |  | | |_) | |_ ");
    outstring_log("  \\____/|_|  \\___|\\__, |\\___/|_| |_|_____/ \\___|_|  |_| .__/ \\__|");
    outstring_log("                   __/ |                              | |        ");
    outstring_log("                  |___/                               |_|  \n");

    //Load database (must be called after SD2Config.SetSource).
    LoadDatabase();

    for (uint16 i = 0; i < MAX_SCRIPTS; ++i)
        m_scripts[i] = NULL;

    FillSpellSummary();

    AddScripts();

    outstring_log(">> Loaded %i C++ Scripts.", num_sc_scripts);

    outstring_log(">> Load Overriden SQL Data.");
    LoadOverridenSQLData();
}
Example #2
0
void ScriptMgr::ScriptsInit()
{
    //Trinity Script startup
    outstring_log(" _____     _       _ _         ____            _       _");
    outstring_log("|_   _| __(_)_ __ (_) |_ _   _/ ___|  ___ _ __(_)_ __ | |_ ");
    outstring_log("  | || '__| | '_ \\| | __| | | \\___ \\ / __| \'__| | \'_ \\| __|");
    outstring_log("  | || |  | | | | | | |_| |_| |___) | (__| |  | | |_) | |_ ");
    outstring_log("  |_||_|  |_|_| |_|_|\\__|\\__, |____/ \\___|_|  |_| .__/ \\__|");
    outstring_log("                         |___/                  |_|        ");
    outstring_log("");
    outstring_log("");

    //Load database (must be called after SD2Config.SetSource).
    LoadDatabase();

    outstring_log("TSCR: Loading C++ scripts");
    barGoLink bar(1);
    bar.step();
    outstring_log("");

    for (uint16 i =0; i<MAX_SCRIPTS; ++i)
        m_scripts[i]=NULL;

    FillSpellSummary();

    AddScripts();

    outstring_log(">> Loaded %i C++ Scripts.", num_sc_scripts);

    outstring_log(">> Load Overriden SQL Data.");
    LoadOverridenSQLData();
}
Example #3
0
void ScriptMgr::ScriptsInit()
{
    //Trinity Script startup
    /*sLog.outString(" _____     _       _ _         ____            _       _");
    sLog.outString("|_   _| __(_)_ __ (_) |_ _   _/ ___|  ___ _ __(_)_ __ | |_ ");
    sLog.outString("  | || '__| | '_ \\| | __| | | \\___ \\ / __| \'__| | \'_ \\| __|");
    sLog.outString("  | || |  | | | | | | |_| |_| |___) | (__| |  | | |_) | |_ ");
    sLog.outString("  |_||_|  |_|_| |_|_|\\__|\\__, |____/ \\___|_|  |_| .__/ \\__|");
    sLog.outString("                         |___/                  |_|        ");
    sLog.outString("");
    sLog.outString("");*/

	/* Beginning Of PDS-4TC Badge*/ /* Added by Pryd inspired by Lorac */ 
	sLog.outString("  .                 .               .     ");
	sLog.outString("               .             .         ");
    sLog.outString("  ____    .         \\ /         .   ");
	sLog.outString(" /\\ / \\       .    - ^ -                ");
	sLog.outString(" \\ \\_ /    .       / | \\ .           .    ");
	sLog.outString("  \\ \\\\    _                      .     ");
	sLog.outString("   \\ \\\\ \\// _    _  /\\  __           ");
	sLog.outString("    \\ \\\\ \\\\ \\\\  // /`'\\ \\__ \\  /     ");
	sLog.outString("     \\//__\\\\ \\\\// /____\\ \\__ \\/        ");
	sLog.outString("        _____//  ````````                    ");
	sLog.outString("       /\\  ___\\  PDS-4TC-2011      ");
	sLog.outString("       \\ \\ \\__/   ______  _  __  _____          ");
	sLog.outString("        \\ \\ \\    /\\  __ \\/\\`'__\\/\\  __\\         ");
	sLog.outString("    ,,   \\ \\ \\___\\ \\ \\_\\ \\ \\ \\_/\\ \\ \\//_         ");
	sLog.outString("_/\\_|_____\\ \\_____\\ \\_____\\ \\_\\  \\ \\____\\        ");
	sLog.outString(" ` ` ` ` ` \\______/\\/_____/\\/_/   \\/____/        ");
	sLog.outString("       ");
	sLog.outString( "PryDevCore based on TrinityCore");
	sLog.outString( "Project Resource Locations");
	sLog.outString( "Main Site:      Http://prydevserver.com");
	sLog.outString( "Support Forum:  Http://prydevserver.com/forum/");
	sLog.outString( " ");
	sLog.outString( "PryDevServer.com Development For the Community");

    /* End Of PDS-4TC Badge*/ /* Added by Pryd inspired by Lorac */
    //Load database (must be called after SD2Config.SetSource).
    LoadDatabase();

    sLog.outString("Loading C++ scripts");
    barGoLink bar(1);
    bar.step();
    sLog.outString("");

    for (uint16 i =0; i<MAX_SCRIPTS; ++i)
        m_scripts[i]=NULL;

    FillSpellSummary();

    AddScripts();

	

    sLog.outString(">> Loaded %i C++ Scripts.", num_sc_scripts);

    sLog.outString(">> Load Overriden SQL Data.");
    LoadOverridenSQLData();
}
Example #4
0
RIBON_DLL_EXPORT
void ScriptsInit(char const* cfg_file = "riboncore.conf")
{
    //Ribon Script startup
    outstring_log( "'########::'####:'########:::'#######::'##::: ##:");
    outstring_log( " ##.... ##:. ##:: ##.... ##:'##.... ##: ###:: ##:");
    outstring_log( " ##:::: ##:: ##:: ##:::: ##: ##:::: ##: ####: ##:");
    outstring_log( " ########::: ##:: ########:: ##:::: ##: ## ## ##:");
    outstring_log( " ##.. ##:::: ##:: ##.... ##: ##:::: ##: ##. ####:");
    outstring_log( " ##::. ##::: ##:: ##:::: ##: ##:::: ##: ##:. ###:");
    outstring_log( " ##:::. ##:'####: ########::. #######:: ##::. ##:");
    outstring_log( "..:::::..::....::........::::.......:::..::::..::");
    outstring_log( "                                      S C R I P T");
    outstring_log("Ribon Scripts initializing %s", _FULLVERSION);

    //Get configuration file
    if (!RScriptConfig.SetSource(cfg_file))
        error_log("RSCR: Unable to open configuration file. Database will be unaccessible. Configuration values will use default.");
    else
        outstring_log("RSCR: Using configuration file %s",cfg_file);

    outstring_log("");

    //Load database (must be called after SD2Config.SetSource).
    LoadDatabase();

    outstring_log("RSCR: Loading C++ scripts");
    barGoLink bar(1);
    bar.step();
    outstring_log("");

    for(uint16 i =0;i<MAX_SCRIPTS;++i)
        m_scripts[i]=NULL;

    FillSpellSummary();

    AddScripts();

    outstring_log(">> Loaded %i C++ Scripts.", num_sc_scripts);

    outstring_log(">> Load Overriden SQL Data.");
    LoadOverridenSQLData();
    outstring_log(">> Load Overriden DBC Data.");
    LoadOverridenDBCData();
}
Example #5
0
TRINITY_DLL_EXPORT
void ScriptsInit(char const* cfg_file = _TRINITY_SCRIPT_CONFIG)
{
    //Trinity Script startup
    outstring_log(" _____     _       _ _         ____            _       _");
    outstring_log("|_   _| __(_)_ __ (_) |_ _   _/ ___|  ___ _ __(_)_ __ | |_ ");
    outstring_log("  | || '__| | '_ \\| | __| | | \\___ \\ / __| \'__| | \'_ \\| __|");
    outstring_log("  | || |  | | | | | | |_| |_| |___) | (__| |  | | |_) | |_ ");
    outstring_log("  |_||_|  |_|_| |_|_|\\__|\\__, |____/ \\___|_|  |_| .__/ \\__|");
    outstring_log("                         |___/                  |_|        ");
    outstring_log("Trinity Script initializing %s", _FULLVERSION);
    outstring_log("");

    //Get configuration file
    if (!TScriptConfig.SetSource(cfg_file))
        error_log("TSCR: Unable to open configuration file. Database will be unaccessible. Configuration values will use default.");
    else
        outstring_log("TSCR: Using configuration file %s",cfg_file);

    outstring_log("");

    //Load database (must be called after SD2Config.SetSource).
    LoadDatabase();

    outstring_log("TSCR: Loading C++ scripts");
    barGoLink bar(1);
    bar.step();
    outstring_log("");

    for (uint16 i =0; i<MAX_SCRIPTS; ++i)
        m_scripts[i]=NULL;

    FillSpellSummary();

    AddScripts();

    outstring_log(">> Loaded %i C++ Scripts.", num_sc_scripts);

    outstring_log(">> Load Overriden SQL Data.");
    LoadOverridenSQLData();
    outstring_log(">> Load Overriden DBC Data.");
    LoadOverridenDBCData();
}
Example #6
0
void ScriptMgr::ScriptsInit()
{
    //Load database (must be called after SD2Config.SetSource).
    LoadDatabase();

    sLog->outString("TSCR: Loading C++ scripts");
    sLog->outString("");

    for (uint16 i =0; i < MAX_SCRIPTS; ++i)
        m_scripts[i]=NULL;

    FillSpellSummary();

    AddScripts();

    sLog->outString(">> Loaded %i C++ Scripts.", num_sc_scripts);

    sLog->outString(">> Load Overriden SQL Data.");
    LoadOverridenSQLData();
}
Example #7
0
void ScriptMgr::ScriptsInit()
{
    //Load database (must be called after BSCRConfig.SetSource).
    LoadDatabase();

    outstring_log("BSCR: Loading C++ scripts");
    barGoLink bar(1);
    bar.step();
    outstring_log("");

    for (uint16 i =0; i<MAX_SCRIPTS; ++i)
        m_scripts[i]=NULL;

    FillSpellSummary();

    AddScripts();

    outstring_log(">> Loaded %i C++ Scripts.", num_sc_scripts);

    outstring_log(">> Load Overriden SQL Data.");
    LoadOverridenSQLData();
}