How to detect if someone presses cancel during a quest
Im trying to manipulate a quest dialog packet for a project Im working on. Ive recorded all the inputs but cant figure out the cancel button.Anyone know how I can do that?
11 years, 29 weeks ago
|
Apollo
Administrator
Joined: 14th Apr 2009
Posts: 2759
Re: How to detect if someone presses cancel during a quest
11 years, 29 weeks ago
|
Re: How to detect if someone presses cancel during a quest
Thank you, and that solves that!
11 years, 29 weeks ago
|
Re: How to detect if someone presses cancel during a quest
insomniac posted: (23rd Oct 2012, 10:26 pm)
Thank you, and that solves that!
lool ---
ლ(ಠ益ಠლ)
Why the fuck u lyin'?
11 years, 29 weeks ago
|
Re: How to detect if someone presses cancel during a quest
A lot of other things that have the cancel button do nothing, are cancelled when you walk/attack etc. Might consider that, but don't rely too heavily on it for quests...
---
Wish upon a star!
11 years, 29 weeks ago
|
Sausage
Administrator
Joined: 26th Jul 2008
Posts: 1346
Re: How to detect if someone presses cancel during a quest
Pretty much, you have to assume "by default" that the user hasn't taken an action (as Plasmastar said, walking/attacking, or just logging out or getting disconnected). The cancel button is basically there to be the user's active way to not taking an action in a dialog. If you're looking to cancel a quest or something, you have to use the NpcInput stuff.
11 years, 29 weeks ago
|
Re: How to detect if someone presses cancel during a quest
So if Im understanding correctly, if the client doesn't send anything to server while the quest dialog screen is open they either canceled,dce'd or something like that?
11 years, 29 weeks ago
|
Sausage
Administrator
Joined: 26th Jul 2008
Posts: 1346
Re: How to detect if someone presses cancel during a quest
Maybe the person is taking a really long time to read, or left it open and went afk for a bit. It's impossible for the server to know whether the quest dialog screen is open or not, but you can know for sure that it's been closed based on them logging out or moving.
11 years, 29 weeks ago
| | | | | | | | |