Voiced handlers parameters

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
Vinius
Posts: 61
Joined: Fri Jun 29, 2007 7:10 am

Voiced handlers parameters

Post 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
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Voiced handlers parameters

Post by JIV »

voice command is already split
".teleport giran"
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
command = "teleport"
target = "giran"
Vinius
Posts: 61
Joined: Fri Jun 29, 2007 7:10 am

Re: Voiced handlers parameters

Post by Vinius »

many thanks
Post Reply