Jump to content
  • 0

Help Command Window


disorder25
 Share

Question

Hello I made a command that open a hardcode html window, I would like to add a button to refresh that window, what is the bypass I have to use on the html to refresh it?

 

Thank you>

 

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Create your bypass in RequestBypassToServer .

example:

else if (_command.startsWith("your_bypass"))
{

...

}

then inside write your code to open the html again

 

then the button must be like this

<a action="bypass -h your_bypass">Your text</a>
Edited by melron
Link to comment
Share on other sites

  • 0

 

Create your bypass in RequestBypassToServer .

example:

else if (_command.startsWith("your_bypass"))
{

...

}

then inside write your code to open the html again

 

then the button must be like this

<a action="bypass -h your_bypass">Your text</a>

 

 

Thank you for your reply.

I did what you said but the window did not refresh, when I click on the button the window closed and I got an error on gameserver.

Here is what I did.

public void onBypassFeedback(final L2PcInstance activeChar, String command)
{
        if (activeChar == null)
	{
		return;
	}
	if (command.startsWith("showMainWindow"))
	{
		getVoteHtml(activeChar);
	}
}
public static String getVoteHtml(L2PcInstance player)
{


          Here I got the working html and I added this bypass to it

          sb.append("<center><button value=\"Refresh\" action=\"bypass -h showMainWindow\" back=\"L2UI_CT1.Button_DF.Gauge_DF_Attribute_Dark\" fore=\"L2UI_CT1.Button_DF.Gauge_DF_Attribute_Dark_bg\" width=95 height=26></center>");
		
}

This is the error I got on gameserver

[Character: whatever[000000000] - Account: whatever - IP: 000.0.0.0] sent not h
andled RequestBypassToServer: [showMainWindow]
Edited by disorder25
Link to comment
Share on other sites

  • 0

 

Thank you for your reply.

I did what you said 

No you didnt... 

go to network.clientpackets.RequestBypassToServer.java

Not at your vc onBypassFeedBack..

 

Make another bypass 

else if (_command.startsWith("your_bypass"))
{

...

}

Here you have to insert the whole code that is in getVoteHtml OR create a function with the same name at the end of the RequestBypassToServer

 

getVoteHtml(L2PcInstance player) and call it again in your new bypass...

Edited by melron
Link to comment
Share on other sites

  • 0

No you didnt... 

go to network.clientpackets.RequestBypassToServer.java

Not at your vc onBypassFeedBack..

 

Make another bypass 

else if (_command.startsWith("your_bypass"))
{

...

}

Here you have to insert the whole code that is in getVoteHtml OR create a function with the same name at the end of the RequestBypassToServer

 

getVoteHtml(L2PcInstance player) and call it again in your new bypass...

 

 

Thank you.I got it working

Appreciate your help.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Posts

    • what you give me if i can make it work only editing server side on acis ? you use requestrestart to relog a player without player making any client action
    • does not show the dye bar   https://prnt.sc/4988fu       Hello, I am adding a new class, everything works fine, but the dye bar is not added where it should be added so that the new class shows the bar.
    • anyone know how to get the acm/admin area working properly? "it keep saying 'account already exist', and admin area always saying errror, already tried both conn type mysqli/pdo
    • Фашист ты куда пропал, от 2 сентября форум не посещаешь когда на фронт? Мы с апреля бомбим ваши города, ваши приграничные зоны Белгородской области частично стерты с лица земли уже сегодня, остальное добьем в течении пары месяцев. Ваши отряды быстрого реагирования из погранслужбы фсб рф попадают в засады на территории рф, как недавно было в Курской области. В Брянской области количество 300-х пограничников идет на десятки, а ж/д мосты взрываются с периодичностью раз в пару недель, я уже молчу о точечных ударах по складам в Белгородской и Брянской областях, взрывы в Таганроге и нападение на пункт дислокации вс рф в Клинцах.  Вас никто уже давно не боится. Вы - черти, которых американцы, пусть и нашей кровью, намерены стереть с лица земли как государство. Об этом открыто и публично говорит американский генералитет. Охотники не вы, охотятся на вас. Это пора принять и осознать, несмотря на то, сколько еще украинских героев погибнет и сколько гражданских вы еще убьете крылатыми ракетами.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock