Author Topic: Apply Spells OnSpawn  (Read 350 times)

Legacy_NineHells

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Apply Spells OnSpawn
« on: December 28, 2012, 11:49:03 am »


               Hi there,
maybe someone of you can help me with a script. I want to create an Ethereal Marauder. The spells "Displacement" and "Ethereal Visage" should be applied after spawn for an unlimited number of rounds (without casting by the marauder). I'd already be happy with this. :-)

If it's possible, it would be nice, if these spells are suppressed for 2 seconds after the marauder attacked a PC (and then switch on again). Does anybody of you know how to script this?
               
               

               
            

Legacy_Pearls

  • Full Member
  • ***
  • Posts: 194
  • Karma: +0/-0
Apply Spells OnSpawn
« Reply #1 on: December 28, 2012, 09:20:14 pm »


               didnt test but these are the effects you want, someone else will have to do the combat though, dont think it can be done w/o some combat scripts or on a heartbeat


    effect evfx = EffectVisualEffect(VFX_DUR_ETHEREAL_VISAGE);
    effect evfx2 = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
    effect edr = EffectDamageReduction(20, DAMAGE_POWER_PLUS_THREE);
    effect esabs = EffectSpellLevelAbsorption(2);
    effect econc = EffectConcealment(25);

    effect elnk = EffectLinkEffects(econc, evfx);
    elnk = EffectLinkEffects(elnk, evfx2);
    elnk = EffectLinkEffects(elnk, esabs);
    elnk = EffectLinkEffects(elnk, edr);

    ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, OBJECT_SELF);

               
               

               
            

Legacy_NineHells

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Apply Spells OnSpawn
« Reply #2 on: December 28, 2012, 10:11:40 pm »


               Thank you Pearls!
I'll try this out.