Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

24 lines
865 B
Plaintext

//ffbj addition 16.04.07
void main()
{
object oPC = GetLastPlayerDied();
object oArea = GetArea(oPC);
string sPC = GetName(oPC);
object oKiller = GetLastDamager(oPC);
string sKillerName = GetName(oKiller);
string sArea = GetName(oArea);
object oPlayer = GetFirstPC();
string sMessage = (sPC + " Died At " +sArea + " Killed By " +sKillerName);
//if (!GetIsPC(oKiller)|| (!(GetBaseItemType(oKiller) == BASE_ITEM_TRAPKIT)))
//return;//ucomment this statement if you want only pc/trap caused deaths shouted.
SpeakString(sMessage, TALKVOLUME_SHOUT);
while (oPlayer != OBJECT_INVALID)
{
FloatingTextStringOnCreature(sMessage, oPlayer, FALSE);
oPlayer = GetNextPC();
}
}