mxwow modules

This commit is contained in:
mikx
2025-03-24 23:53:45 -04:00
parent 93073b0be2
commit e87efbaf6e
99 changed files with 4909 additions and 814 deletions

View File

@@ -19,13 +19,7 @@ class mxwow_toonmasterAnnounce : public PlayerScript
mxwow_toonmasterAnnounce() : PlayerScript("mxwow_toonmasterAnnounce") {}
void OnPlayerLogin(Player* player) override
{
// Announce Module
if (sConfigMgr->GetOption<bool>("MxWoW_ToonMaster.Enabled", true))
{
std::ostringstream ss;
ss << "This server is running the |cff4CFF00MxW Toon Master|r module.";
ChatHandler(player->GetSession()).SendSysMessage(ss.str().c_str());
}
}
};
@@ -82,8 +76,8 @@ public:
amount = amount * expMulti;
if (sConfigMgr->GetOption<bool>("MxWoW_ToonMaster.Verbose", true) && plevel < 80)
{
ss << "|cffabeeff[MxW][ToonMaster][%ixNiv.80] Bonus: EXPx%i";
ChatHandler(player->GetSession()).PSendSysMessage(ss.str().c_str(), cMPL, expMulti);
ss << "|cffabeeff[MxW][ToonMaster]["<< cMPL <<"xNiv.80] Bonus: EXPx"<<expMulti;
ChatHandler(player->GetSession()).PSendSysMessage(ss.str().c_str());
}
}
}