2023-09-03 21:12:26 -05:00

26 lines
799 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
{
AssignCommand(GetLastPlayerDying(), ClearAllActions());
AssignCommand(GetLastPlayerDying(),SpeakString( "I Dying"));
PopUpGUIPanel(GetLastPlayerDying(),GUI_PANEL_PLAYER_DEATH);
}
}