Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Detecting if the inventory is visible? (https://forums.graalonline.com/forums/showthread.php?t=134266829)

Emera 07-21-2012 10:07 PM

Detecting if the inventory is visible?
 
I feel really silly for asking something like this, but I've done some digging and I can't find anything! Is there a way to detect if the default inventory is visible? I've scanned through first responders and such, and it doesn't show up as one, and I can't find any functions related to hiding it on the forums/on the wiki/using /scripthelp in RC. Does anybody know if it's actually possible?

Crow 07-22-2012 01:16 AM

That's a rather good question. Maybe player.reading is true when it's open?

cbk1994 07-22-2012 01:20 AM

Quote:

Originally Posted by Crow (Post 1699903)
That's a rather good question. Maybe player.reading is true when it's open?

If not, perhaps player.paused.

Emera 07-22-2012 02:22 AM

Quote:

Originally Posted by Crow (Post 1699903)
That's a rather good question. Maybe player.reading is true when it's open?

It's not player.reading :/ Good suggestion though.


Quote:

Originally Posted by cbk1994 (Post 1699904)
If not, perhaps player.paused.

That works, but it's not suitable since players pause under other circumstances too.

DustyPorViva 07-22-2012 02:43 AM

Maybe you can do a keycheck on keydown(9) and then look for if the player is paused after?

Pandar 07-22-2012 02:45 AM

Quote:

Originally Posted by DustyPorViva (Post 1699910)
Maybe you can do a keycheck on keydown(9) and then look for if the player is paused after?

This was my thought. Probably your best bet.


All times are GMT +2. The time now is 05:35 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.