Alangara_PRC8/_module/nss/mn_aidbc_kick.nss

26 lines
521 B
Plaintext
Raw Permalink Normal View History

2024-06-05 21:21:06 -04:00
// Only the top three may kick members completely - only the top one
// may kick one of the other two top ones. A DM may kick anyone.
#include "mn_i_checkrank"
int StartingConditional()
{
int iResult;
object oPC = GetPCSpeaker();
object oTarget = GetLocalObject( oPC, "mn_target" );
iResult = IsTopRank( oPC );
if ( IsTopRank( oTarget ) && CheckRank( oPC ) != MN_AIDB_CEYAR )
{
iResult = FALSE;
}
if ( GetIsDM( oPC ) )
{
iResult = TRUE;
}
return iResult;
}