So i have the player. Im using plr->GetName() to get the name and trying to append " Great job killing the Devilish Ghoul" to the end and have a mob say it.
The MonsterSay function wants a Char* for the text.
Would the following work?
the IDE isnt showing any errors but i dont know if using the + operator is rightCode:std::string chatmsg; chatmsg = (std::string)plr->GetName() + " Great job killing the Devilish Ghoul"; me->MonsterSay(chatmsg.c_str(),LANG_UNIVERSAL,NULL);