Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

15 lines
484 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_WOLF);
nBlood=nBlood-40;
SetLocalInt(oPC,"nBloodPool",nBlood);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,ePoly,oPC,HoursToSeconds(2));
fnGiveVampXP(oPC,100);
SendMessageToPC(oPC,"You used 40 blood to shape change into a wolf.");
}