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

15 lines
494 B
Plaintext

// vamp_act_wolf
#include "vampire_header"
void main()
{
object oPC=GetPCSpeaker();
if (!GetIsObjectValid(oPC)) oPC=OBJECT_SELF;
int nBlood=GetLocalInt(oPC,"nBloodPool");
effect ePoly=EffectPolymorph(POLYMORPH_TYPE_DIRE_WOLF);
nBlood=nBlood-60;
SetLocalInt(oPC,"nBloodPool",nBlood);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,ePoly,oPC,HoursToSeconds(2));
fnGiveVampXP(oPC,100);
SendMessageToPC(oPC,"You used 60 blood to shape change into a dire wolf.");
}