cyberpro98 Posted September 19, 2016 Report Share Posted September 19, 2016 Hi there, i am using BlizzLike Core which is based on Mangos/OregonCore i've gone to level0.cpp and added this -> bool ChatHandler::HandleWorldChannelCommand(const char* args) { if (!*args) return false; sWorld.SendWorldText(LANG_WORLD_CHANNEL, m_session->GetPlayer()->GetName(), args); return true; } and after it i've gone to Language.hand added -> LANG_WORLD_CHANNEL = 20019, Gone to -> ctype-gbk.c and added -> 20019, and after it Chat.cppadded - > static ChatCommand WorldChannelCommandTable[] = { { "world channel", SEC_PLAYER, true, &ChatHandler::HandleWorldChannelCommand, "", NULL }, { NULL, 0, false, NULL, "", NULL } }; and after it i've gone to -> Chat.h and added - > bool HandleWorldChannelCommand(const char* args); And it's now working ingame ... i've added and BlizzLike_string in DB And in command table but it's not working it shows ingame There is no such command.Any IDEA ? Link to comment Share on other sites More sharing options...
Madness Posted November 1, 2016 Report Share Posted November 1, 2016 Did you fix this? By looking at some of the other existing chat commands, it seems that the first value should not have a space in it, as this is the command itself? (correct me if I'm wrong someone). Can you check that and come back to us please? Thanks Link to comment Share on other sites More sharing options...
cyberpro98 Posted November 1, 2016 Author Report Share Posted November 1, 2016 Yes i fixed it of course! It was just necessary to add 1 more thing in Chat.cpp it was necessary to be added where was -> { "unbindsight", SEC_ADMINISTRATOR, false, &ChatHandler::HandleUnbindSightCommand, "", NULL }, Under i just added Dear guest, please login or register to see this content. And that was all. Link to comment Share on other sites More sharing options...
Madness Posted November 2, 2016 Report Share Posted November 2, 2016 Dear guest, please login or register to see this content. Glad it's sorted Link to comment Share on other sites More sharing options...
Recommended Posts