Rune_PRC8/_module/nss/bedonused.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

16 lines
428 B
Plaintext

void main()
{
object oDarkness = GetLastUsedBy();
location lRestLocation = GetLocation(oDarkness);
effect eEffect = EffectVisualEffect(VFX_DUR_DARKNESS);
effect eEffect1 = EffectVisualEffect(VFX_IMP_SLEEP);
float fDuration = RoundsToSeconds(21);
AssignCommand(oDarkness,ActionRest());
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oDarkness);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect1, oDarkness);
}