#include "x2_inc_switches"
void main()
{
int nEvent =GetUserDefinedItemEventNumber();
object oPC;
object oItem;
object oDM;
string sPCName;
if (nEvent == X2_ITEM_EVENT_ACTIVATE)
{
oDM = GetItemActivator();
oPC = GetItemActivatedTarget();
oItem = GetItemActivated();
sPCName = GetName(oDM);
if (GetIsDM(oDM) == TRUE)
{
SetCreatureBodyPart(CREATURE_PART_RIGHT_FOOT, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_LEFT_FOOT, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_RIGHT_SHIN, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_LEFT_SHIN, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_RIGHT_THIGH, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_LEFT_THIGH, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_PELVIS, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_TORSO, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_NECK, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_RIGHT_FOREARM, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_LEFT_FOREARM, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_RIGHT_BICEP, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_LEFT_BICEP, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_RIGHT_HAND, 215, oPC);
SetCreatureBodyPart(CREATURE_PART_LEFT_HAND, 215, oPC);
// SetCreatureBodyPart(CREATURE_PART_HEAD, 215, oPC);
}
else
{
SendMessageToAllDMs(sPCName+" is attempting to use a DM-only tool!");
WriteTimestampedLogEntry(sPCName+" attempted to use a DM-only tool!");
SendMessageToPC(oDM, "You have attempted to use a DM-only tool. Message has been sent to all logged DM's, and written to the server log. If this was a mistake please contact a DM as soon as possible.");
DelayCommand(3.0f, DestroyObject(oItem));
}
}
}
I haven't tested it, but it should be fine. Just make an item with the same tag as this with the unique power property and give it to DM's. In case you have a Gnoll head I've added one line and commented it out. You can uncomment it and add the gnoll head number if you like. The last part is just a security I use for DM tools. Just in case.