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

46 lines
2.1 KiB
Plaintext

void main()
{
object oArea = GetObjectByTag("ba2_thwid6");
object oItem1 = GetObjectByTag("ba2_pida1");
object oItem2 = GetObjectByTag("ba2_pida2");
object oItem3 = GetObjectByTag("ba2_pida3");
object oItem4 = GetObjectByTag("ba2_pida4");
object oItem5 = GetObjectByTag("ba2_pida5");
object oItem6 = GetObjectByTag("ba2_pida6");
object oItem7 = GetObjectByTag("ba2_pida7");
object oItem8 = GetObjectByTag("ba2_pida8");
object oItem9 = GetObjectByTag("ba2_pida9");
object oItem10 = GetObjectByTag("ba2_pida10");
object oItem11 = GetObjectByTag("ba2_pida11");
object oItem12 = GetObjectByTag("ba2_pida12");
if(GetItemPossessor(oItem1) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem2) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem3) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem4) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem5) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem6) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem7) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem8) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem9) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem10) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem11) != GetObjectByTag("ba2_dpickpa") && GetItemPossessor(oItem12) != GetObjectByTag("ba2_dpickpa"))
{
SetLocalInt(oArea, "Wondering", 1);
SpeakString("No! I am immortal! This can't be! Nooooooooooooo...", TALKVOLUME_TALK);
SetImmortal(OBJECT_SELF, FALSE);
DestroyObject(oItem1, 0.0f);
DestroyObject(oItem2, 0.0f);
DestroyObject(oItem3, 0.0f);
DestroyObject(oItem4, 0.0f);
DestroyObject(oItem5, 0.0f);
DestroyObject(oItem6, 0.0f);
DestroyObject(oItem7, 0.0f);
DestroyObject(oItem8, 0.0f);
DestroyObject(oItem9, 0.0f);
DestroyObject(oItem10, 0.0f);
DestroyObject(oItem11, 0.0f);
DestroyObject(oItem12, 0.0f);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(TRUE, TRUE), OBJECT_SELF);
}
}