2023-08-18 23:16:27 -04:00
|
|
|
#include "nui_i_main"
|
2025-06-08 21:14:39 -04:00
|
|
|
#include "prc_nui_consts"
|
2023-08-18 23:16:27 -04:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
NUI();
|
2025-06-08 21:14:39 -04:00
|
|
|
|
|
|
|
object oPlayer = NuiGetEventPlayer();
|
|
|
|
int nToken = NuiGetEventWindow();
|
|
|
|
string sWindowId = NuiGetWindowId(oPlayer, nToken);
|
|
|
|
|
|
|
|
// Open the Power Attack NUI
|
|
|
|
if(sWindowId == NUI_PRC_POWER_ATTACK_WINDOW)
|
|
|
|
{
|
|
|
|
ExecuteScript("prc_nui_pa_event");
|
|
|
|
}
|
|
|
|
|
|
|
|
// Open the Spellbook NUI
|
|
|
|
if(sWindowId == PRC_SPELLBOOK_NUI_WINDOW_ID
|
|
|
|
|| sWindowId == NUI_SPELL_DESCRIPTION_WINDOW_ID)
|
|
|
|
{
|
|
|
|
ExecuteScript("prc_nui_sb_event");
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
2023-08-18 23:16:27 -04:00
|
|
|
}
|