mod_mxw_sololfg

This commit is contained in:
mikx 2023-11-05 16:58:30 -05:00
parent 146bd781e2
commit 6b235efb18
3 changed files with 47 additions and 12 deletions

View File

@ -23,18 +23,25 @@ void Trinity::Banner::Show(char const* applicationName, void(*log)(char const* t
{
log(Trinity::StringFormat("%s (%s)", GitRevision::GetFullVersion(), applicationName).c_str());
log("<Ctrl-C> to stop. \n ");
log(" /$$ /$$$$$$ ");
log("| $$ /$$__ $$ ");
log("| $$ /$$$$$$ /$$$$$$ /$$ /$$$$$$ /$$$$$$$| $$ \\__/ /$$$$$$ /$$$$$$ /$$$$$$ ");
log("| $$ /$$__ $$/$$__ $| $$/$$__ $| $$__ $| $$ /$$__ $$/$$__ $$/$$__ $$ ");
log("| $$ | $$$$$$$| $$ \\ $| $| $$ \\ $| $$ \\ $| $$ | $$ \\ $| $$ \\__| $$$$$$$$ ");
log("| $$ | $$_____| $$ | $| $| $$ | $| $$ | $| $$ $| $$ | $| $$ | $$_____/ ");
log("| $$$$$$$| $$$$$$| $$$$$$| $| $$$$$$| $$ | $| $$$$$$| $$$$$$| $$ | $$$$$$$ ");
log("|________/\\_______/\\____ $|__/\\______/|__/ |__/\\______/ \\______/|__/ \\_______/ ");
log(" /$$ \\ $$ ");
log(" | $$$$$$/ ");
log(" \\______/ ");
log("http://TrinityCore.org \n ");
log(" ########################################");
log(" # # # # ##### ");
log(" ## ## # # # # # # ## ### #### ");
log(" # # # # # # # # # # # # # # ");
log(" # # # ## # # # # # # # ## ");
log(" # # ## # # # # # # # # ");
log(" # # # # # # # # ## # #### ");
log(" # # # # ## ## ##### ");
log(" ########################################");
log(" MxWCore 7.3.5 ");
log(" https://mxgit.ovh/mikx/mxwcore-legion ");
log(" -DEV- ");
log(" mikx (Lead Dev/Host Admin) ");
log(" -CREDITS- ");
log(" LegionCore ");
log(" https://github.com/dufernst/LegionCore-7.3.5");
log(" SingleCore_TC ");
log(" https://github.com/conan513/SingleCore_TC");
log(" ########################################");
if (logExtraInfo)
logExtraInfo();

View File

@ -17,6 +17,7 @@
// This is where scripts' loading functions should be declared:
void AddSC_mod_mxw_dynamicxp();
void AddSC_mod_mxw_sololfg();
void AddSC_solocraft();
// ADM declaration begin
@ -27,6 +28,7 @@ void AddSC_solocraft();
void AddCustomScripts()
{
AddSC_mod_mxw_dynamicxp();
AddSC_mod_mxw_sololfg();
AddSC_solocraft();
// ADM call begin
// ADM call end

View File

@ -0,0 +1,26 @@
#include "Config.h"
#include "World.h"
#include "LFGMgr.h"
#include "Chat.h"
class mod_mxw_sololfg : public PlayerScript
{
public:
mod_mxw_sololfg() : PlayerScript("mod_mxw_sololfg") { }
void OnLogin(Player* player, bool /*loginFirst*/)
{
if (sConfigMgr->GetBoolDefault("LFG.SoloMode", true))
{
if (!sLFGMgr->onTest())
{
sLFGMgr->ToggleTesting();
}
}
}
};
void AddSC_mod_mxw_sololfg()
{
new mod_mxw_sololfg;
}