LoD_PRC8/_module/nss/break_barrier.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

28 lines
892 B
Plaintext

void main()
{
object oPC = GetLastAttacker(OBJECT_SELF);
if (GetTag(GetItemInSlot(INVENTORY_SLOT_NECK, oPC)) == "Ancient_Amulet_of_Power")
{
object oPC = GetLastAttacker(OBJECT_SELF);
object oItem = GetItemInSlot(INVENTORY_SLOT_NECK, oPC);
DestroyObject(oItem, 0.0f);
{
object oPlaceable = GetObjectByTag("RunePlate_SunBeam");
effect eSun = EffectVisualEffect(VFX_FNF_SUNBEAM);
location lSun = GetLocation(oPlaceable);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eSun, lSun, 1.0f);
}
object oPlaceable = GetObjectByTag("MagicalBarrier");
DestroyObject(oPlaceable, 1.0f);
// Active next encounter only if barrier is destroyed.
// Stops players exploiting quest by pushing thru barrier.
object enNextEncounter = GetObjectByTag("The_Guardian_of_Misery");
SetEncounterActive(TRUE,enNextEncounter);
}
}