Initial commit. Updated release archive.
This commit is contained in:
31
_module/nss/ro_pl_vampcoffin.nss
Normal file
31
_module/nss/ro_pl_vampcoffin.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "nw_i0_plot"
|
||||
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
|
||||
//make sure only one coffin is spawned per party
|
||||
|
||||
int CoffinDoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
||||
|
||||
if (CoffinDoOnce==TRUE) return;
|
||||
|
||||
SetPLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
|
||||
// spawn Vampire Coffin
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
oTarget = GetWaypointByTag("WP_VampCoffin");
|
||||
|
||||
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "sarco004", GetLocation(oTarget));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user