Page 1 of 1

how to build a voiced command

Posted: Tue Oct 13, 2009 7:56 pm
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.

Re: how to build a voiced command

Posted: Wed Oct 14, 2009 6:12 am
by janiii
because the command is .info and not .help ?

Re: how to build a voiced command

Posted: Wed Oct 14, 2009 6:33 am
by JIV
this is not l2jofficial forum...
you must put it in sctipts.cfg

Re: how to build a voiced command

Posted: Wed Oct 14, 2009 10:04 am
by thor
Thank you for so fast support!