33 lines
653 B
Plaintext
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);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|