Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
// Written by Stratovarius
// Turns Rune Chant on and off.
#include "prc_alterations"
void main()
{
object oPC = OBJECT_SELF;
string nMes = "";
if(GetIsImmune(oPC, IMMUNITY_TYPE_SLOW))
{
// Removes effects
PRCRemoveSpellEffects(SPELL_RUNE_CHANT, oPC, oPC);
DeleteLocalInt(oPC, "RuneChant");
nMes = "*Immune to Slowing - Canceling Rune Chant*";
}
else if(!GetHasSpellEffect(SPELL_RUNE_CHANT))
{
effect eSlow = SupernaturalEffect(EffectSlow());
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSlow, oPC, HoursToSeconds(99));
SetLocalInt(oPC, "RuneChant", TRUE);
nMes = "*Rune Chant Activated*";
}
else
{
// Removes effects
PRCRemoveSpellEffects(SPELL_RUNE_CHANT, oPC, oPC);
DeleteLocalInt(oPC, "RuneChant");
nMes = "*Rune Chant Deactivated*";
}
FloatingTextStringOnCreature(nMes, oPC, FALSE);
}