AOC_PRC8/_module/nss/heal_allpc2.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

33 lines
653 B
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this OnUsed
void main()
{
object oMod = GetModule();
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
object oCaster;
oCaster = OBJECT_SELF;
object oTarget;
oTarget = oPC;
int oState = GetLocalInt(oMod, "fountain_state");
if (oState !=1)
{
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_GREATER_RESTORATION, oTarget, METAMAGIC_ANY, TRUE, 20, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
}
else
{
PlaySound("sim_cntresist");
//FloatingTextStringOnCreature("You can't reach the pool", oPC);
}
}