// rts_it_uw11 - Black Mail Documents void main() { object oItem=GetItemActivated(); object oPC=GetItemActivator(); object oTarget=GetItemActivatedTarget(); string sTeamID=GetLocalString(oPC,"sTeamID"); string sTargetTeamID=GetLocalString(oTarget,"sTeamID"); if (GetIsObjectValid(oTarget)&&GetObjectType(oTarget)==OBJECT_TYPE_CREATURE) { // valid target if (sTeamID!=sTargetTeamID&&GetStringLength(sTargetTeamID)>0) { // not same team AssignCommand(oTarget,SpeakString("I'll give you gold when I have it just don't tell anyone!")); SetLocalString(oTarget,"sBlackmail",sTeamID); } // not same team else if (sTeamID==sTargetTeamID) { // same team SendMessageToPC(oPC,"You cannot use this item on your own team members!"); } // same team else { // invalid SendMessageToPC(oPC,"That object is not a member of a team."); } // invalid } // valid target else { // invalid SendMessageToPC(oPC,"Invalid target."); } // invalid }