35 lines
690 B
Plaintext
35 lines
690 B
Plaintext
string sDeny;
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.1
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
//Put this OnUsed
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetLastUsedBy();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetLocalInt(OBJECT_SELF, "healfountain")== 1)
|
|
{
|
|
sDeny="There seems to be no effect.";
|
|
|
|
SendMessageToPC(oPC, sDeny);
|
|
|
|
return;
|
|
}
|
|
|
|
object oCaster;
|
|
oCaster = OBJECT_SELF;
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_GREATER_RESTORATION, oTarget, METAMAGIC_ANY, TRUE, 9, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
|
SetLocalInt(OBJECT_SELF, "healfountain",1);
|
|
}
|
|
|