Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
//::///////////////////////////////////////////////
//:: 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"));
}