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

15 lines
438 B
Plaintext

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