// 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 ); } } } }