Jump to content
WoWBB.org

Adding WORLD CHANNEL SCRIPT ERRORS


cyberpro98

Recommended Posts

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.h
and added -> 
 

 
LANG_WORLD_CHANNEL = 20019,


Gone to -> ctype-gbk.c and added -> 

 
20019,


and after it Chat.cpp
added - > 

 
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

  • 1 month later...

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

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. :P

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...