30 lines
673 B
Plaintext
30 lines
673 B
Plaintext
#include "x2_inc_switches"
|
|
void main()
|
|
{
|
|
// Check if we have the correct event firing the script
|
|
if (GetUserDefinedItemEventNumber() != X2_ITEM_EVENT_ACTIVATE) return;
|
|
|
|
object oPC;
|
|
|
|
if (!GetIsDM(GetItemActivator())
|
|
|| !GetIsPC(GetItemActivatedTarget())
|
|
){
|
|
|
|
SendMessageToPC(GetItemActivator(), "You are not a DM!");
|
|
return;}
|
|
|
|
oPC = GetItemActivatedTarget();
|
|
|
|
object oTarget;
|
|
oTarget = GetItemActivatedTarget();
|
|
|
|
CreateItemOnObject("char_bann", oPC, 1);
|
|
|
|
FloatingTextStringOnCreature("Your Character has been banned by a DM.", oPC, TRUE);
|
|
|
|
//Make the it permanent!
|
|
DelayCommand(2.0, ExportSingleCharacter(oPC));
|
|
//Now boot them!
|
|
DelayCommand(6.0, BootPC(oTarget));
|
|
}
|