Author Topic: Looking For "ResistSpell" script  (Read 308 times)

Legacy_runeshade

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Looking For "ResistSpell" script
« on: August 12, 2011, 03:06:47 am »


               I was just wondering if anyone knows where the script for "resistspell" can be found. Im trying to create a spell bouncing shield and the "myresistspell" script only seems to apply visual graphics and while does return a number based on how the spell was resisted, it doesn't do the work to determine how the spell was resisted.

Also I was wondering if anyone knows what a "player spell" is...

// Do a Spell Resistance check between oCaster and oTarget, returning TRUE if
// the spell was resisted.
// * Return value if oCaster or oTarget is an invalid object: FALSE
// * Return value if spell cast is not a player spell: - 1 <-?? "User type" in the spells.2da ??
// * Return value if spell resisted: 1
// * Return value if spell resisted via magic immunity: 2
// * Return value if spell resisted via spell absorption: 3
// * Return value if spell was turned by my new and wonderful spell shield : 4 'Posted

Thanks J
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Looking For "ResistSpell" script
« Reply #1 on: August 12, 2011, 04:17:26 am »


               ResistSpell is a built in function, there is no script for it.

the best you could do would be to modify the MyResistSpell function. Even doing that you would have to recompile all of the scripts that used the function.
               
               

               


                     Modifié par Lightfoot8, 12 août 2011 - 03:17 .