Changed folder name.
Changed folder name.
This commit is contained in:
29
_module/nss/ac_bannisher.nss
Normal file
29
_module/nss/ac_bannisher.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
#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));
|
||||
}
|
Reference in New Issue
Block a user