Changed folder name.
Changed folder name.
This commit is contained in:
54
_module/nss/aq_banned.nss
Normal file
54
_module/nss/aq_banned.nss
Normal file
@@ -0,0 +1,54 @@
|
||||
//Created by Guile 4/1/08
|
||||
|
||||
//This script fires whenever a player recieves the banned token
|
||||
//Fired from another scripted called checkpc.
|
||||
#include "x2_inc_switches"
|
||||
void main()
|
||||
{
|
||||
|
||||
//To deactivate this script simply delete the // below!
|
||||
|
||||
// /*
|
||||
|
||||
object oPC = GetModuleItemAcquiredBy();
|
||||
|
||||
object oItem;
|
||||
oItem = GetModuleItemAcquired();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectTurned();
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
|
||||
|
||||
eEffect = EffectPolymorph(POLYMORPH_TYPE_CHICKEN);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
|
||||
|
||||
eEffect = EffectBlindness();
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
|
||||
EffectSpellFailure(100, SPELL_SCHOOL_GENERAL), oPC);
|
||||
|
||||
AssignCommand(oPC, ActionSpeakString("I have been found a cheater, and I will forever be cursed!!!", TALKVOLUME_SHOUT));
|
||||
|
||||
//This makes them permanently a chicken!!
|
||||
DelayCommand(2.0, ExportSingleCharacter(oPC));
|
||||
DelayCommand(4.0, BootPC(oPC));
|
||||
|
||||
// */ (Do No Touch This Line!!)
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user