Author Topic: x0_i0_spells  (Read 414 times)

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
x0_i0_spells
« on: October 08, 2011, 06:43:28 am »


               Is the script "x0_i0_spells" still used?

I am looking at some of the functions in it and they appear that they need to be updated. "spellsIsFlying" for example could use some updating.

Is it worth updating the scripts so that all apearances are accounted for properly?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
x0_i0_spells
« Reply #1 on: October 08, 2011, 07:02:29 am »


               I think I saw usage of spellsIsFlying in one script while I was reworking all of them, x0_i0_spells is include file used by each spellscript so if you make any change there it wont manifest until you recompile all spellscripts (or at least those using spellsIsFlying if thats only change).

I already moved some code from there into actual spellscripts in my project as I havent see any reason why have special function for each spell (like cubeDoParalyse, DoDirgeEffect, DoSpikeTrap etc.)
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
x0_i0_spells
« Reply #2 on: October 08, 2011, 07:08:10 am »


               ok thanks. so as long as I do a module build my changes should be incorporated right?

here are my changes with all fliers I could think of including those in Q.
               
               

               


                     Modifié par henesua, 08 octobre 2011 - 06:09 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
x0_i0_spells
« Reply #3 on: October 08, 2011, 07:39:33 am »


               no the module build wont recompile all default spellscripts but only those you re-saved and are present in module. You need either to locate all script using this function and then re-save them in order to get them into module and then make a module build or just recompile all spellscripts and include them in server override or hak. Since Im doing this process really often I extracted all spell/trap/feat/monster ability scripts and put them on vault. Look at it - http://nwvault.ign.c....Detail&id=1337
               
               

               


                     Modifié par ShaDoOoW, 08 octobre 2011 - 06:39 .