26 lines
799 B
Plaintext
Raw Normal View History

2023-08-08 16:22:17 -04:00
#include "nw_i0_plot"
void main()
{
object oPlayer = GetLastPlayerDied();
SetLocalInt(oPlayer, "PCDead", 1);
AssignCommand(oPlayer, ClearAllActions());
AssignCommand(oPlayer, SurrenderToEnemies());
2023-08-08 16:22:17 -04:00
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);
2023-08-08 16:22:17 -04:00
}
}