hello i find this in old l2jforum posted from Merwllyra http://www.l2jserver.com/old-forum/thre ... adid=26607
i try it but i get message in the console : No handler registered for bypass online i try it with other voiced command too but same error.
i added this in RequestBypassToServer and compile fine without problems.
else if (_command.startsWith("voiced_"))
{
IVoicedCommandHandler vch = null;
if (_command.indexOf(' ') == -1)
{
vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(_command);
} else {
vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(_command.substring(0, _command.indexOf(' ')));
}
if (vch != null)
vch.useVoicedCommand(_command, activeChar, null);
else
_log.warning("No handler registered for bypass '"+_command+"'");
}
and i use bypass: "bypass -h voiced_online"
but i get No handler registered for bypass online error in the console
someone some solution ty
Voice commands from HTML
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 110
- Joined: Sun Aug 31, 2008 7:16 am
Re: Voice commands from HTML
fixed it for ya..

i tested it and works.. if u find any errors then tell me//Voiced Bypass - Start
if (_command.startsWith("voiced_"))
{
String command = _command.split(" ")[0];
IVoicedCommandHandler ach = VoicedCommandHandler.getInstance().getVoicedCommandHandler(_command.substring(7));
if (ach == null)
{
activeChar.sendMessage("The command " + command.substring(7) + " does not exist!");
_log.warning("No handler registered for command '" + _command + "'");
return;
}
ach.useVoicedCommand(_command.substring(7), activeChar, null);
}
//Voiced Bypass - End

-
- Posts: 37
- Joined: Tue Jun 24, 2008 2:55 pm
Re: Voice commands from HTML
takhs7 wrote:fixed it for ya..
i tested it and works.. if u find any errors then tell me//Voiced Bypass - Start
if (_command.startsWith("voiced_"))
{
String command = _command.split(" ")[0];
IVoicedCommandHandler ach = VoicedCommandHandler.getInstance().getVoicedCommandHandler(_command.substring(7));
if (ach == null)
{
activeChar.sendMessage("The command " + command.substring(7) + " does not exist!");
_log.warning("No handler registered for command '" + _command + "'");
return;
}
ach.useVoicedCommand(_command.substring(7), activeChar, null);
}
//Voiced Bypass - End
dont work for me again i get same error!
-
- Posts: 110
- Joined: Sun Aug 31, 2008 7:16 am
Re: Voice commands from HTML
it works mate.. maybe u dont add it right in the core? :/ try for example this...
.. maybe ur trying not an Voiced command but a user command? :/ (those who start with "/" .. like /sit .. /invite)
edit: also make sure u have typed the command in the bypass right.. coz its not case insensitive.. example... voiced_Engage its not good...
edit2: maybe u need to make it "else if" (in the start).. but for me worked without "else"..
Code: Select all
<td><button value="Engage" action="bypass -h voiced_engage" width=55 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
edit: also make sure u have typed the command in the bypass right.. coz its not case insensitive.. example... voiced_Engage its not good...
edit2: maybe u need to make it "else if" (in the start).. but for me worked without "else"..
-
- Posts: 37
- Joined: Tue Jun 24, 2008 2:55 pm
Re: Voice commands from HTML
yes the problem was Caps must be written how its called in voice script!takhs7 wrote:it works mate.. maybe u dont add it right in the core? :/ try for example this...
.. maybe ur trying not an Voiced command but a user command? :/ (those who start with "/" .. like /sit .. /invite)Code: Select all
<td><button value="Engage" action="bypass -h voiced_engage" width=55 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
edit: also make sure u have typed the command in the bypass right.. coz its not case insensitive.. example... voiced_Engage its not good...
edit2: maybe u need to make it "else if" (in the start).. but for me worked without "else"..
by me was "Online" and i used bypass online
or Status must be called with bypass Status not status
ty man
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: Voice commands from HTML
Moved to viewforum.php?f=82, not a contribution.
Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 
