Moved PRC8 notes into DevNotes. Updated Eternal Blade TLK to explain abilities better. Updated Werewolf to use "monk" gloves when they exist. Added PRC switch to allow Wildshapes to always merge the arms slot. Clicking on a spell effect now opens the spell effect NUI. (@Rakiov)) Added prc_onplayergui event script for spell effect handling. (@Rakiov) Added prc_nui_sd_event and prc_nui_dur_view to handle displaying spell durations. (@Rakiov) Corrected typo in switch name for PRC_CRAFT_POISON_USE_INGREDIENTS Allowed mindblade to work with Vow of Poverty. Eternal Blade - Island in TIme now has a VFX, looks slightly better. Eternal Blade - Guided Strike now functions. Time Stands Still now has an impact VFX. Added optional PRC_ALLOWED_TO_REMOVE_FRIENDLY_SPELLS and PRC_ALLOWED_TO_SEE_HOSTILE_SPELLS switches for the spell effect view window.
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: NUI Events
|
|
//:: prc_onplayernui (hp_nui_events)
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
This handles any NUI events and sends them to
|
|
appropriate NUI Event handler depending on the
|
|
window Id
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Rakiov
|
|
//:: Created On: 22.05.2005
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_nui_consts"
|
|
|
|
void main()
|
|
{
|
|
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)
|
|
ExecuteScript("prc_nui_sb_event");
|
|
|
|
if (sWindowId == NUI_SPELL_DESCRIPTION_WINDOW_ID)
|
|
ExecuteScript("prc_nui_dsc_evnt");
|
|
|
|
if (sWindowId == NUI_LEVEL_UP_WINDOW_ID)
|
|
ExecuteScript("prc_nui_lv_event");
|
|
|
|
if (sWindowId == DURATION_NUI_WINDOW_ID)
|
|
ExecuteScript("prc_nui_sd_event");
|
|
|
|
return;
|
|
}
|
|
|