Skip to content

Voiced command plus html

Featured Replies

I'm using a voiced command.When the player uses .blabla then an html (stored at commandName/blabla.htm) window appears with 3 buttons planted (Let's call those buttons Button A,Button B,Button C).I want when Button A is pressed to change the html to another(the other html is named commandName/blabla2.htm).Is that possible?I can make this on npcs but i can't with a voiced command.

EDIT: Found out what to do.For any other that has the same question just edit the button to have a action="bypass -h bla_bla" and then just go over com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer and after this one

else if (_command.equals("come_here") && ( activeChar.isGM()))
{
  comeHere(activeChar);
}

put this one

else if (_command.equals("bla_bla") )
{
  //do whatever you want to
}

You can replace bla_bla with anything you like BUT put the same on bypass-h AND at else if block.

Request for lock

locking...

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.