Initial commit
Initial commit
This commit is contained in:
48
_removed/nw_s0_rmvdiseas.nss
Normal file
48
_removed/nw_s0_rmvdiseas.nss
Normal file
@@ -0,0 +1,48 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Remove Disease
|
||||
//:: NW_S0_RmvDiseas.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Removes all disease effects on the character.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Aug 7, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
//:: VFX Pass By: Preston W, On: June 22, 2001
|
||||
|
||||
#include "werewolf_cure"
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare major variables
|
||||
object oTarget = GetSpellTargetObject();
|
||||
int nType;
|
||||
int bValid = FALSE;
|
||||
effect eParal = GetFirstEffect(oTarget);
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_REMOVE_CONDITION);
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_REMOVE_DISEASE, FALSE));
|
||||
//Get the first effect on the target
|
||||
while(GetIsEffectValid(eParal))
|
||||
{
|
||||
//Check if the current effect is of correct type
|
||||
if (GetEffectType(eParal) == EFFECT_TYPE_DISEASE)
|
||||
{
|
||||
//Remove the effect
|
||||
RemoveEffect(oTarget, eParal);
|
||||
bValid = TRUE;
|
||||
}
|
||||
//Get the next effect on the target
|
||||
GetNextEffect(oTarget);
|
||||
}
|
||||
if (bValid)
|
||||
{
|
||||
//Apply VFX Impact
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
||||
}
|
||||
|
||||
werewolf();
|
||||
|
||||
}
|
Reference in New Issue
Block a user