System Command

07/25/2018 17:54 randeljohnvalencia#1
hello epvp plss help me

not showing the my system command ingame

sorry for bad english

[Only registered and activated users can see links. Click Here To Register...]
07/26/2018 06:46 yazuka21#2
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.