Page 1 of 1

Voiced handlers parameters

Posted: Fri Sep 11, 2009 1:35 pm
by Vinius
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number:3486
L2JDP Revision Number:6584

Hello, I would like to create custom voiced handler and need to get some parameters, that palyer types. For example:
.teleport giran

I have tried same solution as with admin handlers ( you can type //kill same as //kill Vinius , and then you go through parameters with Tokenizer ), but this was not path to victory. While using Tokenizer, I always get number of tokens = 1, which is actually that command - teleport ( in our example ). Can anyone give a suggestion, how to get parameters from voiced command handler?

Thanks

Re: Voiced handlers parameters

Posted: Fri Sep 11, 2009 10:09 pm
by JIV
voice command is already split
".teleport giran"
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
command = "teleport"
target = "giran"

Re: Voiced handlers parameters

Posted: Sat Sep 12, 2009 4:37 pm
by Vinius
many thanks