#include "AccountMgr.h" #include "ScriptMgr.h" #include "Chat.h" #include "Common.h" #include "Player.h" #include "WorldSession.h" #include "Language.h" #include "Log.h" #include "SpellAuras.h" #include "World.h" #include "Guild.h" #include "GuildMgr.h" #include "Config.h" #include #include #include #include #include #include "ScriptMgr.h" #include "ObjectMgr.h" #include "Chat.h" #include "SocialMgr.h" #include #include #include #include class autobroadcast : public CommandScript { public: autobroadcast() : CommandScript("autobroadcast") { } std::vector GetCommands() const override { static std::vector autobroadcasttable = { { "set", SEC_ADMINISTRATOR, false, &HandleSetAutobroadcast, "" }, }; static std::vector commandTable = { { "autobroadcast", SEC_ADMINISTRATOR , false, NULL, "" , autobroadcasttable }, }; return commandTable; } //Gibt dem Eventteam die Moeglichkeit Gutscheine fuer Spieler zu erstellen. static bool HandleSetAutobroadcast(ChatHandler* handler, const char* args) { CustomGMLogic * GMLogic = 0; GMLogic->insertNewAutobroadCast(handler->GetSession()->GetPlayer(),args); return true; }; }; void AddSC_AutobroadCast() { new autobroadcast(); }