2023-08-08 16:22:17 -04:00
|
|
|
|
|
|
|
#include "nw_i0_plot"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oPlayer = GetLastPlayerDied();
|
|
|
|
SetLocalInt(oPlayer, "PCDead", 1);
|
|
|
|
|
|
|
|
|
|
|
|
AssignCommand(oPlayer, ClearAllActions());
|
2023-08-15 18:54:31 -05:00
|
|
|
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
|
|
|
|
{
|
2023-09-03 21:12:26 -05:00
|
|
|
AssignCommand(GetLastPlayerDying(), ClearAllActions());
|
|
|
|
AssignCommand(GetLastPlayerDying(),SpeakString( "I Dying"));
|
|
|
|
PopUpGUIPanel(GetLastPlayerDying(),GUI_PANEL_PLAYER_DEATH);
|
2023-08-08 16:22:17 -04:00
|
|
|
}
|
|
|
|
}
|