Files
Anphillia_PRC8/_removed/x3_s2_pdk_shield.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

41 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Purple Dragon Knight - Heroic Shield
//:: x3_s2_pdk_shield.nss
//:://////////////////////////////////////////////
//:: Applies a temporary AC bonus to one ally
//:://////////////////////////////////////////////
//:: Created By: Stratovarius
//:://////////////////////////////////////////////
/*
Modified By : gaoneng erick
Modified On : may 6, 2006
added custom vfx
*/
void main()
{
//Declare main variables.
object oPC = OBJECT_SELF;
object oTarget = GetSpellTargetObject();
int nBonus = 4;
if (GetLocalInt(oPC, "PDKHeroicTracking"))
{
FloatingTextStringOnCreature("You can only use this ability once a round", oPC, FALSE);
return;
}
if (oPC == oTarget)
{
FloatingTextStringOnCreature("You cannot aid yourself using this ability", oPC, FALSE);
return;
}
effect eAC = EffectACIncrease(nBonus);
effect eVFX = EffectVisualEffect(VFX_IMP_PDK_HEROIC_SHIELD);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eAC, oTarget, RoundsToSeconds(1));
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oTarget);
SetLocalInt(oPC, "PDKHeroicTracking", TRUE);
DelayCommand(5.0, DeleteLocalInt(oPC, "PDKHeroicTracking"));
}