Lankhmar_PRC8/_module/nss/ent_dstry_tnts.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

23 lines
751 B
Plaintext

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"));
}