Page 1 of 1

VoicedCommand bypasses

Posted: Sat Nov 28, 2009 2:35 pm
by Lee
So im trying to make a bypass like on admin panel's ,but i just don't get why it doesn't work :/
Here's the htm :

Code: Select all

 public void showHelpPage(L2PcInstance activeChar){	NpcHtmlMessage adminReply = new NpcHtmlMessage(5);	TextBuilder replyMSG = new TextBuilder(); 	replyMSG.append("<html><body>");	replyMSG.append("<center><font color=\"LEVEL\">[Help Page]</font></center><br><br><br>");	replyMSG.append("<br><button value=\"Main Info\" action=\"bypass -h help_main\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">");	replyMSG.append("<br><button value=\"Good secured\" action=\"bypass -h help_security\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">");	replyMSG.append("<br><button value=\"Custom Feautures\" action=\"bypass -h help_custom\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">");	replyMSG.append("<br><button value=\"Voting Bonus\" action=\"bypass -h help_vote\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">");	replyMSG.append("<br><button value=\"Voiced Commands\" action=\"bypass -h help_command\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">");	replyMSG.append("</html></body>");	adminReply.setHtml(replyMSG.toString());	activeChar.sendPacket(adminReply);}


Its opening it ,everything normal ,but when you click on something ,the bypass doesn't work.
Can someone tell me how i can make bypasses like this? I got the other commands registred and all is fine ,but i don't get why it doesn't work.
I've seen CTF engine and it works there ,but its on the admin panel thing..

The server is interlude (if that matters).

Thank you.

Re: VoicedCommand bypasses

Posted: Sat Nov 28, 2009 5:25 pm
by Lee

Re: VoicedCommand bypasses

Posted: Sun Nov 29, 2009 12:44 pm
by Lee
I still got a problem.. When i make all my commands with voiced_ before them (ex. voiced_control and .voiced_control IG) it works ,but players must type .voiced_COMMAND before it and the bypasses work.
But the thing is wheni remove the voiced_ before the commands (in java) .. the bypasses no longer work :/
For example i got command .join (for all events) and i want it to bypass with the HTM ,so i make the bypass like "bypass -h voiced_join" ,but i get this -> No handler registered for bypass 'voiced_join'. When i put a voiced_ before all commands in the registers ,works fine again.. I think i missed those steps from the gaven topic below :

[quote=Merwllyra]Also, don't forget to:

* instantiate the class that implements an IVoicedCommandHandler
* add the command to the _voicedCommands

. [/quote]

Can someone tell me what to do?

p.s. i don't think that the chronicle matters in my situation..