2025/06/23 Update

Fixed NUI levelup issue.
Full compile.
This commit is contained in:
Jaysyn904
2025-06-23 21:30:31 -04:00
parent a2d33930c8
commit dd3496e400
29 changed files with 15 additions and 23 deletions

View File

@@ -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

View File

@@ -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;
}