19 lines
375 B
Plaintext
19 lines
375 B
Plaintext
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 );
|
|
}
|
|
}
|