Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2025-04-03 11:24:16 -04:00
parent 3ba3cf1b81
commit 5e558169a0
6086 changed files with 1502996 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
#include "x0_i0_petrify"
#include "nw_i0_generic"
void main()
{
object oTarget;
object oTarget1;
object oPC = GetPCSpeaker();
object oMod = GetModule();
object oP1 = GetObjectByTag("pool1");
object oP2 = GetObjectByTag("pool2");
int oState = GetLocalInt(oMod, "pool_state");
effect eEffect = EffectVisualEffect(VFX_DUR_GLOBE_INVULNERABILITY);
effect eEffect2 = EffectVisualEffect(VFX_NONE);
if (oState!=1)
{
PlaySound("gui_select");
SetLocalInt(oMod, "pool_state", 1);
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
DelayCommand(1.0, FloatingTextStringOnCreature("Rejeuvination pools now inaccessable", oPC));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eEffect, oP1);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eEffect, oP2);
}
else
{
PlaySound("gui_trapdisarm");
SetLocalInt(oMod, "pool_state", 0);
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
DelayCommand(1.0, FloatingTextStringOnCreature("Rejeuvination pools now accessable", oPC));
RemoveEffectOfType(oP1, GetEffectType(eEffect));
RemoveEffectOfType(oP2, GetEffectType(eEffect));
}
}