EpicValor 80bc1e0c92 hopefully fixed the no death panel problem
The rest were creature and area changes I got around to doing
2023-09-06 17:57:36 -05:00

24 lines
670 B
Plaintext

#include "nw_i0_plot"
void main()
{
object oPlayer = GetLastPlayerDied();
SetLocalInt(oPlayer, "PCDead", 1);
AssignCommand(oPlayer, ClearAllActions());
AssignCommand(oPlayer, SurrenderToEnemies());
SetStandardFactionReputation(STANDARD_FACTION_COMMONER, 74, oPlayer);
SetStandardFactionReputation(STANDARD_FACTION_MERCHANT, 74, oPlayer);
SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 74, oPlayer);
if(HasItem(oPlayer,"fairy_bottle") == TRUE)
{
DelayCommand(3.0,ExecuteScript("fairy_rez_bottle",oPlayer));
}
else
{
DelayCommand(5.0, PopUpGUIPanel(oPlayer,GUI_PANEL_PLAYER_DEATH));
}
}