14 lines
350 B
Plaintext
14 lines
350 B
Plaintext
|
// Healing Shrine Script
|
||
|
// July 2002
|
||
|
// By Dalantriel
|
||
|
// Casts Heal on Player if their hit points are not at maximum
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetLastUsedBy();
|
||
|
if (GetCurrentHitPoints(oPC) < GetMaxHitPoints(oPC))
|
||
|
{
|
||
|
ActionCastSpellAtObject (SPELL_HEAL, oPC, METAMAGIC_ANY, TRUE, 1, PROJECTILE_PATH_TYPE_DEFAULT, FALSE);
|
||
|
}
|
||
|
}
|