24 lines
670 B
Plaintext
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));
|
|
}
|
|
}
|