how to build a voiced command

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
thor
Posts: 19
Joined: Tue May 26, 2009 7:12 pm

how to build a voiced command

Post by thor »

» Find Revision
L2J Revision 1262:
L2JDP Revision 1262:

Hi, I've updated from version where voiced commands were incluyed in masterHandler.java and in this version I was looking voiced command banking to get an example but, my voice command is not loaded because when you type ".help" you speak ".help"

Code: Select all

public class Info extends AVoicedCommandHandler{ 	private static String[] _voicedCommands = { "info" };     public String[] getVoicedCommandList()    {    	return _voicedCommands;    }     public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)    {    	activeChar.sendMessage("Comand: .info");	    return true;    } 	public static void main(String[] args)	{		new Info();	} }
What is missing?

Thank you in advance.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: how to build a voiced command

Post by janiii »

because the command is .info and not .help ?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: how to build a voiced command

Post by JIV »

this is not l2jofficial forum...
you must put it in sctipts.cfg
User avatar
thor
Posts: 19
Joined: Tue May 26, 2009 7:12 pm

Re: how to build a voiced command

Post by thor »

Thank you for so fast support!
Post Reply