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