Files
Amon_PRC8/_module/nss/mod_gui.nss
Jaysyn904 e297540d10 2026/02/09 Update
Added and activated PRCX.
Updated PEPS.
Full compile.
2026-02-09 00:54:31 -05:00

21 lines
576 B
Plaintext

#include "inc_examine"
void main()
{
ExecuteScript("prc_onplayergui");
object oPlayer = GetLastGuiEventPlayer();
int nType = GetLastGuiEventType();
object oTarget = GetLastGuiEventObject();
int nValue = GetLastGuiEventInteger();
if (nType == GUIEVENT_DISABLED_PANEL_ATTEMPT_OPEN)
{
if (nValue == GUI_PANEL_EXAMINE_CREATURE || nValue == GUI_PANEL_EXAMINE_ITEM ||
nValue == GUI_PANEL_EXAMINE_PLACEABLE || nValue == GUI_PANEL_EXAMINE_DOOR)
{
Examine_HandleGUIEvents(oPlayer, oTarget, nValue);
}
}
}