View Full Version : how to make a popup box when player login?

05-01-2016, 02:23 AM
when player login,popup a text box to intro the game rules.
use c++ not lua.
how do it?

05-01-2016, 04:43 AM

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.