mod_mxw_sololfg
This commit is contained in:
parent
146bd781e2
commit
6b235efb18
|
@ -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(Trinity::StringFormat("%s (%s)", GitRevision::GetFullVersion(), applicationName).c_str());
|
||||||
log("<Ctrl-C> to stop. \n ");
|
log("<Ctrl-C> to stop. \n ");
|
||||||
log(" /$$ /$$$$$$ ");
|
log(" ########################################");
|
||||||
log("| $$ /$$__ $$ ");
|
log(" # # # # ##### ");
|
||||||
log("| $$ /$$$$$$ /$$$$$$ /$$ /$$$$$$ /$$$$$$$| $$ \\__/ /$$$$$$ /$$$$$$ /$$$$$$ ");
|
log(" ## ## # # # # # # ## ### #### ");
|
||||||
log("| $$ /$$__ $$/$$__ $| $$/$$__ $| $$__ $| $$ /$$__ $$/$$__ $$/$$__ $$ ");
|
log(" # # # # # # # # # # # # # # ");
|
||||||
log("| $$ | $$$$$$$| $$ \\ $| $| $$ \\ $| $$ \\ $| $$ | $$ \\ $| $$ \\__| $$$$$$$$ ");
|
log(" # # # ## # # # # # # # ## ");
|
||||||
log("| $$ | $$_____| $$ | $| $| $$ | $| $$ | $| $$ $| $$ | $| $$ | $$_____/ ");
|
log(" # # ## # # # # # # # # ");
|
||||||
log("| $$$$$$$| $$$$$$| $$$$$$| $| $$$$$$| $$ | $| $$$$$$| $$$$$$| $$ | $$$$$$$ ");
|
log(" # # # # # # # # ## # #### ");
|
||||||
log("|________/\\_______/\\____ $|__/\\______/|__/ |__/\\______/ \\______/|__/ \\_______/ ");
|
log(" # # # # ## ## ##### ");
|
||||||
log(" /$$ \\ $$ ");
|
log(" ########################################");
|
||||||
log(" | $$$$$$/ ");
|
log(" MxWCore 7.3.5 ");
|
||||||
log(" \\______/ ");
|
log(" https://mxgit.ovh/mikx/mxwcore-legion ");
|
||||||
log("http://TrinityCore.org \n ");
|
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)
|
if (logExtraInfo)
|
||||||
logExtraInfo();
|
logExtraInfo();
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
// This is where scripts' loading functions should be declared:
|
// This is where scripts' loading functions should be declared:
|
||||||
void AddSC_mod_mxw_dynamicxp();
|
void AddSC_mod_mxw_dynamicxp();
|
||||||
|
void AddSC_mod_mxw_sololfg();
|
||||||
void AddSC_solocraft();
|
void AddSC_solocraft();
|
||||||
|
|
||||||
// ADM declaration begin
|
// ADM declaration begin
|
||||||
|
@ -27,6 +28,7 @@ void AddSC_solocraft();
|
||||||
void AddCustomScripts()
|
void AddCustomScripts()
|
||||||
{
|
{
|
||||||
AddSC_mod_mxw_dynamicxp();
|
AddSC_mod_mxw_dynamicxp();
|
||||||
|
AddSC_mod_mxw_sololfg();
|
||||||
AddSC_solocraft();
|
AddSC_solocraft();
|
||||||
// ADM call begin
|
// ADM call begin
|
||||||
// ADM call end
|
// ADM call end
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue