2025/06/23 Update
Fixed NUI levelup issue. Full compile.
This commit is contained in:
@@ -23,6 +23,11 @@ void main ()
|
||||
{
|
||||
SendMessageToPC(data.oTarget, "Devastating Critical Hit: 10x damage!");
|
||||
}
|
||||
if (GetIsPC(OBJECT_SELF))
|
||||
{
|
||||
SendMessageToPC(OBJECT_SELF, "Devastating Critical Hit: 10x damage!");
|
||||
FloatingTextStringOnCreature("Devastating Critical Hit!", data.oTarget);
|
||||
}
|
||||
|
||||
data.iAttackResult = 10; // 10 : dev crit
|
||||
|
||||
@@ -44,10 +49,14 @@ void main ()
|
||||
data.iNegative +
|
||||
data.iPositive;
|
||||
|
||||
if (nTotalDamage >= GetCurrentHitPoints(data.oTarget))
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF, "devcrit", 0);
|
||||
}
|
||||
NWNX_Damage_SetAttackEventData(data);
|
||||
|
||||
if (!GetIsObjectValid(data.oTarget)) return;
|
||||
|
||||
if (nTotalDamage >= GetCurrentHitPoints(data.oTarget))
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF, "devcrit", 0);
|
||||
}
|
||||
|
||||
//}
|
||||
/* else
|
||||
|
@@ -16,26 +16,9 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
NUI();
|
||||
//NUI();
|
||||
|
||||
object oPlayer = NuiGetEventPlayer();
|
||||
int nToken = NuiGetEventWindow();
|
||||
string sWindowId = NuiGetWindowId(oPlayer, nToken);
|
||||
ExecuteScript("prc_onplayernui");
|
||||
|
||||
ExecuteScript("mod_nui");
|
||||
|
||||
// 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;
|
||||
}
|
Reference in New Issue
Block a user