Alangara_PRC8/_module/nss/mn_restmonster.nss

19 lines
375 B
Plaintext
Raw Normal View History

2024-06-05 21:21:06 -04:00
void mn_HealSelf()
{
int count = GetLocalInt( OBJECT_SELF, "count" );
count++;
if (count >= 100 ) // 100 * 6 sec = 600 sekunder = 10 minutter
{
if ( !GetIsInCombat( OBJECT_SELF ) )
{
ForceRest( OBJECT_SELF );
SetLocalInt( OBJECT_SELF, "count", 0 );
}
}
else
{
SetLocalInt( OBJECT_SELF, "count", count );
}
}