Alangara_PRC8/_module/nss/mn_aidb_rod.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

38 lines
1.1 KiB
Plaintext

// Script for the Aidbringer administrator-rod - It allows Aidbringer officers
// to perform admin-duties for the target player.
// 5th of September 2005, Alangara, made by -Seeker-
#include "mn_i_checkrank"
void main()
{
object oPC = GetItemActivator();
object oRod = GetItemActivated();
object oTarget = GetItemActivatedTarget();
if ( oTarget == OBJECT_INVALID || !GetIsPC( oTarget ))
{
FloatingTextStringOnCreature( "This rod can only target PCs", oPC, FALSE );
}
else
{
if( oTarget == oPC )
{
FloatingTextStringOnCreature( "You can't target yourself with the wand", oPC, FALSE );
}
else
{
if ( IsTopRank(oPC) || IsEinunLeader(oPC) || GetIsDM( oPC ) )
{
SetLocalObject( oPC, "mn_target", oTarget );
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionStartConversation(OBJECT_SELF, "mn_conv_aidbrod", TRUE, FALSE));
}
else
{
FloatingTextStringOnCreature( "Your rank is insufficient to use the Aidbringer wand", oPC, FALSE );
}
}
}
}