how to build a voiced command
Posted: Tue Oct 13, 2009 7:56 pm
» 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"
What is missing?
Thank you in advance.
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(); } }
Thank you in advance.