Made some boring areas a little more interesting to look at

This commit is contained in:
EpicValor
2023-09-30 18:37:01 -05:00
parent 03a9b5f841
commit 9387c8b6de
24 changed files with 4819 additions and 1802 deletions

View File

@@ -0,0 +1,15 @@
void main()
{
object oTarget;
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Make changes to the sound object "croydecaveyells.
oTarget = GetObjectByTag("croydecaveyells");
SoundObjectPlay(oTarget);
}

View File

@@ -0,0 +1,15 @@
void main()
{
object oTarget;
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Make changes to the sound object "croydecaveyells.
oTarget = GetObjectByTag("croydecaveyells");
SoundObjectStop(oTarget);
}

View File

@@ -34,9 +34,11 @@ void main()
give_custom_exp( GetLastKiller(), OBJECT_SELF, 0 );
object oKiller = GetLastKiller();
SetLocalInt(oKiller, "vikingdead", 1);
ExecuteScript("prc_npc_death", OBJECT_SELF);
object oParty = GetFirstFactionMember(oKiller, TRUE);
SetLocalInt(oParty, "vikingdead", 1);
oParty = GetNextFactionMember(oKiller, TRUE);
SetLocalInt(oParty, "vikingdead", 1);
ExecuteScript("prc_npc_death", OBJECT_SELF);
}