15 lines
484 B
Plaintext
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.");
|
||
|
}
|