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

15 lines
504 B
Plaintext

// burry self
#include "vampire_header"
void main()
{
object oPC=GetPCSpeaker();
if (!GetIsObjectValid(oPC)) oPC=OBJECT_SELF;
if ((GetIsDay()==TRUE||GetIsDawn()==TRUE)&&GetNearestObjectByTag("RTS_SURFACE",oPC,1)!=OBJECT_INVALID)
{
object oPlace=CreateObject(OBJECT_TYPE_PLACEABLE,"vampbury",GetLocation(oPC));
SetLocalObject(oPlace,"oVampire",oPC);
fnGiveVampXP(oPC,1000);
}
else { SendMessageToPC(oPC,"You can only bury yourself at dawn or during the day and in a surface area."); }
}