Initial commit
Initial commit [v9.7]
This commit is contained in:
22
_module/nss/ent_dstry_tnts.nss
Normal file
22
_module/nss/ent_dstry_tnts.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
void main()
|
||||
{
|
||||
// Get the creature who triggered this event.
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
// Only fire for (real) PCs.
|
||||
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
|
||||
return;
|
||||
|
||||
// Abort if the PC does not have the item "towerofangarngit".
|
||||
if ( GetItemPossessedBy(oPC, "towerofangarngit") == OBJECT_INVALID )
|
||||
return;
|
||||
|
||||
// Destroy objects (not fully effective until this script ends).
|
||||
DestroyObject(GetObjectByTag("sltent3"));
|
||||
DestroyObject(GetObjectByTag("sltent2"));
|
||||
DestroyObject(GetObjectByTag("sltent1"));
|
||||
DestroyObject(GetObjectByTag("SacksofFlourGrainetc3"));
|
||||
DestroyObject(GetObjectByTag("SacksofFlourGrainetc2"));
|
||||
DestroyObject(GetObjectByTag("SacksofFlourGrainetc1"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user