Can I check if player has npc chat window on screen?

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Szponiasty
Advanced User
Advanced User
Posts: 557
Joined: Mon Apr 21, 2008 1:31 pm
Location: Eastern Poland

Can I check if player has npc chat window on screen?

Post by Szponiasty »

what I want to do is to make on char login, show few npc chat windows, one after another, but next is displayer after player closes current npc chat. So player enters, sees "clan notice" window. Closes it, and "servernews.htm" shows up. Closes it... and so on.

To do that, I would want to get - from his client, is chat window showed (at the moment) or not. Is it possible to get that information? Or maybe someone has an idea how to make it? Maybe there are some packets eg for Tutorial Window instead, if its possible to use Tutorial window same as npc chat window?
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Can I check if player has npc chat window on screen?

Post by _DS_ »

Ofc you can use tutorial as chat window (done in the alternate class master).
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
Szponiasty
Advanced User
Advanced User
Posts: 557
Joined: Mon Apr 21, 2008 1:31 pm
Location: Eastern Poland

Re: Can I check if player has npc chat window on screen?

Post by Szponiasty »

Thats an workaround of some kind. Thanks.

And how about checking if npc chat window is open? Being able to do that, would solve all beautifully
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Can I check if player has npc chat window on screen?

Post by _DS_ »

Easy - put camera behind the player.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
Szponiasty
Advanced User
Advanced User
Posts: 557
Joined: Mon Apr 21, 2008 1:31 pm
Location: Eastern Poland

Re: Can I check if player has npc chat window on screen?

Post by Szponiasty »

_DS_ wrote:Easy - put camera behind the player.
:D Guess I'll just put inside window a button with boobs or sth. Should be strong enough argument to click it :)
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
Post Reply