2026/01/14 Late update
Updated PEPS. Tweaked geomorph code to prevent broken transitions. East/west & north/south are now randomized & tacked separately. Dungeon will reset areas when empty & no more options are available. Fixed issue with spell effect NUI. Full compile.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#include "inc_examine"
|
||||
#include "nw_inc_nui"
|
||||
#include "prc_nui_consts"
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -6,9 +8,17 @@ void main()
|
||||
int nType = GetLastGuiEventType();
|
||||
object oTarget = GetLastGuiEventObject();
|
||||
int nValue = GetLastGuiEventInteger();
|
||||
|
||||
ExecuteScript("prc_onplayergui", oPlayer);
|
||||
|
||||
if (nType == GUIEVENT_EFFECTICON_CLICK)
|
||||
{
|
||||
int windowId = NuiFindWindow(oPlayer, DURATION_NUI_WINDOW_ID);
|
||||
if (!windowId)
|
||||
{
|
||||
SetScriptParam(NUI_DURATION_MANUALLY_OPENED_PARAM, "1");
|
||||
ExecuteScript("prc_nui_dur_view", oPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
if (nType == GUIEVENT_DISABLED_PANEL_ATTEMPT_OPEN)
|
||||
{
|
||||
if (nValue == GUI_PANEL_EXAMINE_CREATURE || nValue == GUI_PANEL_EXAMINE_ITEM ||
|
||||
|
||||
Reference in New Issue
Block a user