66 lines
1.8 KiB
Plaintext
66 lines
1.8 KiB
Plaintext
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)));
|
|
|
|
}
|