Moved thread to correct section. TrinityCore -> C++ is a
release section. This thread is a
support thread. Might want to read section description next time.
If you have player gossip implemented you can easily prompt the player with a code box via OnLogin hook. Otherwise, it'd have to be through npc gossip and somehow force the menu to show to the player. Then again, game rules could be a broadcast instead of how you are trying to handle it.