Lankhmar_PRC8/_module/nss/ent_dstry_tnts.nss

23 lines
751 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
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"));
}