22 lines
772 B
Plaintext
22 lines
772 B
Plaintext
void main()
|
|
{
|
|
int killed, died;
|
|
object PC = GetLastPlayerDied();
|
|
object Killer = GetLastHostileActor(PC);
|
|
|
|
if (GetIsPC(Killer)==TRUE || GetPCPlayerName(Killer)!="") {
|
|
killed = GetLocalInt(Killer, "killed") + 1;
|
|
SetLocalInt(Killer, "killed", killed);
|
|
FloatingTextStringOnCreature("Player Kills: " + IntToString(killed), Killer, TRUE);
|
|
}
|
|
if (GetIsPC(PC)==TRUE || GetPCPlayerName(PC)!="") {
|
|
died = GetLocalInt(PC,"died") + 1;
|
|
SetLocalInt(PC, "died", died);
|
|
FloatingTextStringOnCreature("Deaths: " + IntToString(died), PC, TRUE);
|
|
}
|
|
// ExecuteScript("nw_o0_death", OBJECT_SELF);
|
|
DelayCommand(2.5, PopUpGUIPanel(PC, GUI_PANEL_PLAYER_DEATH));
|
|
// ExecuteScript("pointeffects", OBJECT_SELF);
|
|
}
|
|
|