Question about usercommhandle

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
KGB1st
Posts: 230
Joined: Sat Jul 26, 2014 5:58 pm

Question about usercommhandle

Post by KGB1st »

Code: Select all

	private static final int[] COMMAND_IDS =
	{
		77 // <- Why 77 for /time
	};
What is this ID? Where from int value? Or it's random?
HorridoJoho
L2j Senior Developer
L2j Senior Developer
Posts: 795
Joined: Sun Aug 14, 2005 11:27 am

Re: Question about usercommhandle

Post by HorridoJoho »

The user commands are hardcoded in the client. That means that the client only sends the id to the server. That is also why you can't create user commands without modifying the client, which is not allowed to be talked about here.

That is why the voiced commands were introduced, so you have an easy way to add commands without modifying the client. Look into game/data/scritps/handlers/voicedcommandhandlers/.
Post Reply