Files
HeroesStone_PRC8/_module/nss/pl_coffin_od.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

23 lines
678 B
Plaintext

//::///////////////////////////////////////////////
//:: Coffin OnDeath
//:: pl_coffin_od
//:: Copyright (c) 2003 Joseph L. Berkley, Jr.
//:://////////////////////////////////////////////
/*
if coffin destroyed with a vampire inside,
bring the vampire out to attack.
*/
//:://////////////////////////////////////////////
//:: Created By: Joseph L. Berkley, Jr.
//:: Created On: 6 March 2003
//:://////////////////////////////////////////////
void main()
{
if( GetLocalInt( OBJECT_SELF, "VAMPIRE_INSIDE" ) )
{
CreateObject( OBJECT_TYPE_CREATURE,
GetLocalString( OBJECT_SELF, "OCCUPANT_REF" ),
GetLocation( OBJECT_SELF ) );
}
}