16 lines
359 B
Plaintext
16 lines
359 B
Plaintext
void main() {
|
|
|
|
object oPC = GetLastPerceived();
|
|
|
|
if (GetIsPC(oPC)) {
|
|
int currHP = GetCurrentHitPoints(oPC);
|
|
int maxHP = GetMaxHitPoints(oPC);
|
|
if(currHP < maxHP) {
|
|
ActionCastSpellAtObject(SPELL_HEAL, oPC, METAMAGIC_ANY, 0, 0, PROJECTILE_PATH_TYPE_DEFAULT, TRUE);
|
|
SpeakString("There you go! Hope you feel better!", 5);
|
|
}
|
|
}
|
|
|
|
}
|
|
|