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
Voiced handlers parameters
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- JIV
- L2j Veteran
- Posts: 1882
- Joined: Sun Jan 06, 2008 8:17 pm
- Location: Slovakia
- Contact:
Re: Voiced handlers parameters
voice command is already split
".teleport giran"
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
command = "teleport"
target = "giran"
".teleport giran"
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
command = "teleport"
target = "giran"