HoS_PRC8/_mod/_module/nss/vamp_act_heal5.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

15 lines
434 B
Plaintext

// vamp_act_heal5
#include "vampire_header"
void main()
{
object oPC=GetPCSpeaker();
if (!GetIsObjectValid(oPC)) oPC=OBJECT_SELF;
int nBlood=GetLocalInt(oPC,"nBloodPool");
effect eHeal=EffectHeal(5);
nBlood=nBlood-1;
SetLocalInt(oPC,"nBloodPool",nBlood);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eHeal,oPC,1.0);
SendMessageToPC(oPC,"You use 1 blood to heal 5 hit points.");
fnGiveVampXP(oPC,1);
}