Changed folder name.
Changed folder name.
This commit is contained in:
65
_module/nss/ac_dmhand.nss
Normal file
65
_module/nss/ac_dmhand.nss
Normal file
@@ -0,0 +1,65 @@
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
|
||||
if (!GetIsDM(GetItemActivator())
|
||||
){
|
||||
|
||||
SendMessageToPC(GetItemActivator(), "You are not a DM!!!");
|
||||
return;}
|
||||
|
||||
oPC = GetItemActivator();
|
||||
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectBlindness();
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 120.0f);
|
||||
|
||||
eEffect = EffectMovementSpeedDecrease(80);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 120.0f);
|
||||
|
||||
eEffect = EffectSavingThrowDecrease(SAVING_THROW_ALL, 15, SAVING_THROW_TYPE_ALL);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 120.0f);
|
||||
|
||||
eEffect = EffectACDecrease(30);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 120.0f);
|
||||
|
||||
eEffect = EffectAbilityIncrease(ABILITY_CONSTITUTION, 6);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 120.0f);
|
||||
|
||||
eEffect = EffectSilence();
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 120.0f);
|
||||
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_HARM), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_HARM), GetLocation(oTarget));
|
||||
|
||||
AssignCommand(oPC, ActionSpeakString("I have offended the Gods and I must be punished!!!!", TALKVOLUME_SHOUT));
|
||||
|
||||
DelayCommand(2.0, AssignCommand(oPC, ActionSpeakString("I know now not to anger the gods or I will suffer!!!", TALKVOLUME_SHOUT)));
|
||||
|
||||
DelayCommand(4.0, AssignCommand(oPC, ActionSpeakString("I promise to be good, if only the gods will remove this horrible curse off of me!!", TALKVOLUME_SHOUT)));
|
||||
|
||||
}
|
Reference in New Issue
Block a user