Initial commit
Initial commit.
This commit is contained in:
34
_module/nss/use_healfount.nss
Normal file
34
_module/nss/use_healfount.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user