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.
DISCORD :
https://discord.com/users/325653525793210378
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
Virusgr
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
put this one
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