Made some boring areas a little more interesting to look at
This commit is contained in:
15
_module/nss/croydecaveyells1.nss
Normal file
15
_module/nss/croydecaveyells1.nss
Normal 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);
|
||||
}
|
15
_module/nss/croydecaveyells2.nss
Normal file
15
_module/nss/croydecaveyells2.nss
Normal 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);
|
||||
}
|
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user