Replace this function :
Code:
BOOL TextCmd_System( CScanner & scanner )
To
Code:
BOOL TextCmd_System(CScanner & scanner)
{
#ifdef __WORLDSERVER
CHAR szString[512] = "";
CUser* pUser = (CUser*)scanner.dwValue;
CString SYSAnnouncement = "Announcement";
scanner.GetLastFull();
if (strlen(scanner.token) >= 512)
return TRUE;
strcpy(szString, scanner.token);
StringTrimRight(szString);
g_DPCoreClient.SendSystem("[" + SYSAnnouncement + "] " + szString);
#endif // __WORLDSERVER
return TRUE;
}
This is maybe because you tried to change SendSystem into CaptionSystem.
If you wanted to make it showing like Event.lua does. Search CaptionSystem and look for
Code:
void SendSystem( const CHAR* lpString );
add:
Code:
, DWORD dwWorldId, BOOL bSmall
and to other parts of the SendSystem.
I don't think this can help you. lol.