Jump to content
  • 0
HyperBlown

Close active window?

Question

Hello guys

 

I need some help here

If we want to ‘open’ a html page, or emulate a page to a player, we can do that with the help of ‘sendPacket()’.

 

So I wonder, if there is a packet or any other methode, that will (force) close a certain window server sided?

 

If you know any method that might do what I want, please comment where I can find it so I can take a look my self.

 

Thank you in advance

Share this post


Link to post
Share on other sites

16 answers to this question

Recommended Posts

  • 0
2 hours ago, .Elfocrash said:

It cannot. You can only use it if you use the TutorialHtml 

 

57 minutes ago, Solomun said:

 

It is possible to close the Tutorial, because the packet is supported from the client. Closing an HTML window, is not supported from the client. And like i mentioned in my previous posts, that's why you need to edit the client, and without and specific knowledge on Lineage II Client, i guess it will be kind of hard to implement it.

Well thank you again, But then I think Thist cant be done server-sided only. Much thx for those that replied.

Post can be locked, thank you

Share this post


Link to post
Share on other sites
  • 0
7 hours ago, HyperBlown said:

Hello guys

 

I need some help here

If we want to ‘open’ a html page, or emulate a page to a player, we can do that with the help of ‘sendPacket()’.

 

So I wonder, if there is a packet or any other methode, that will (force) close a certain window server sided?

 

If you know any method that might do what I want, please comment where I can find it so I can take a look my self.

 

Thank you in advance

Cannot be done, as far as i know. Maybe you could take a client approach (will be hard).

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
13 minutes ago, SweeTs said:

He want to force close, not to prevent window being closed. 

exactly

 

2 minutes ago, Solomun said:

Cannot be done, as far as i know. Maybe you could take a client approach (will be hard).

Really? Im trying to keep it server sided. Im trying to ‘force’ close the community board after a certain input from the player. 

Edited by HyperBlown

Share this post


Link to post
Share on other sites
  • 0
1 minute ago, HyperBlown said:

Really? Im trying to keep it server sided. Im trying to ‘force’ close the community board after a certain input from the player. 

 

Without client support, not possible. I am 99% sure.

Share this post


Link to post
Share on other sites
  • 0
17 minutes ago, SweeTs said:

He want to force close, not to prevent window being closed. 

you can force close the tutorial html

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

Ah, the community board - send ShowBoard packet with payload just "00" (one zero byte) :)

Opcode here http://netpro.revengineer.eu/packets/sm_showboard.html

 

Example: In Gracia Final you just send two bytes, 0x7B 0x00

Edited by eressea
  • Thanks 1
  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, .Elfocrash said:

you can force close the tutorial html

Alright, I will take a look on how the tutorial.html is used and if indeed is force closed by a methode. Thank you for confirming

Share this post


Link to post
Share on other sites
  • 0
1 minute ago, eressea said:

Ah, the community board - send ShowBoard packet with payload just "00" (one zero byte) :)

Opcode here http://netpro.revengineer.eu/packets/sm_showboard.html

Thank you aswell, will take a look.

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, .Elfocrash said:

you can force close the tutorial html

Didn't know that, I never used tutorial packet/htm. 

Share this post


Link to post
Share on other sites
  • 0
17 minutes ago, SweeTs said:

Didn't know that, I never used tutorial packet/htm. 

Yeah there is a tutorialclose or something serverpacket. Very handy  

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
13 minutes ago, .Elfocrash said:

Yeah there is a tutorialclose or something serverpacket. Very handy  

There indeed is a tutorialclose, 



package com.l2jserver.gameserver.network.serverpackets;

public class TutorialCloseHtml extends L2GameServerPacket
{
    public static final TutorialCloseHtml STATIC_PACKET = new TutorialCloseHtml();
    
    private TutorialCloseHtml()
    {
    }
    
    @Override
    protected void writeImpl()
    {
        writeC(0xa9);
    }
}


usage



activeChar.sendPacket(TutorialCloseHtml.STATIC_PACKET);



But I dont really see how it would be able do edit so it would work with other htmls or windows Edited by HyperBlown

Share this post


Link to post
Share on other sites
  • 0
43 minutes ago, HyperBlown said:

There indeed is a tutorialclose, 
 

  Reveal hidden contents

 

 


package com.l2jserver.gameserver.network.serverpackets;

public class TutorialCloseHtml extends L2GameServerPacket
{
    public static final TutorialCloseHtml STATIC_PACKET = new TutorialCloseHtml();
    
    private TutorialCloseHtml()
    {
    }
    
    @Override
    protected void writeImpl()
    {
        writeC(0xa9);
    }
}
 

 

 


usage

 

  Hide contents

 

 


activeChar.sendPacket(TutorialCloseHtml.STATIC_PACKET);
 

 

 

 


But I dont really see how it would be able do edit so it would work with other htmls or windows

 

It cannot. You can only use it if you use the TutorialHtml 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, HyperBlown said:

There indeed is a tutorialclose, 
 

  Reveal hidden contents

 

 


package com.l2jserver.gameserver.network.serverpackets;

public class TutorialCloseHtml extends L2GameServerPacket
{
    public static final TutorialCloseHtml STATIC_PACKET = new TutorialCloseHtml();
    
    private TutorialCloseHtml()
    {
    }
    
    @Override
    protected void writeImpl()
    {
        writeC(0xa9);
    }
}
 

 

 


usage

 

  Reveal hidden contents

 

 


activeChar.sendPacket(TutorialCloseHtml.STATIC_PACKET);
 

 

 

 


But I dont really see how it would be able do edit so it would work with other htmls or windows

 

 

It is possible to close the Tutorial, because the packet is supported from the client. Closing an HTML window, is not supported from the client. And like i mentioned in my previous posts, that's why you need to edit the client, and without and specific knowledge on Lineage II Client, i guess it will be kind of hard to implement it.

  • Sad 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.



×