Initial Upload
Initial Upload
This commit is contained in:
27
_module/nss/fx_hbdiv.nss
Normal file
27
_module/nss/fx_hbdiv.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
int MakeDivineVisual()
|
||||
{ int nVis = 1;
|
||||
int nRandom = Random(6) + 1;
|
||||
switch (nRandom)
|
||||
{
|
||||
case 1: nVis = VFX_IMP_GOOD_HELP; break;
|
||||
case 2: nVis = VFX_FNF_STRIKE_HOLY; break;
|
||||
case 3: nVis = VFX_IMP_LIGHTNING_M; break;
|
||||
case 4: nVis = VFX_IMP_FROST_L; break;
|
||||
case 5: nVis = VFX_IMP_HOLY_AID; break;
|
||||
case 6: nVis = VFX_IMP_HEALING_X; break;
|
||||
}
|
||||
return nVis;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
|
||||
|
||||
int nVis = MakeDivineVisual();
|
||||
|
||||
float fDelay = IntToFloat(Random(300)) * 0.01;
|
||||
|
||||
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(nVis), OBJECT_SELF));
|
||||
|
||||
}
|
Reference in New Issue
Block a user