Jump to content
  • 0

Voiced command plus html


Question

Posted

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

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...