Author Topic: Custom Spell Issue  (Read 337 times)

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Custom Spell Issue
« on: April 02, 2011, 07:58:12 pm »


               You'd think that after years of adding more than a hundred custom spells to my PW that I'd pretty much have everything figured out.  However, a recent spell I've added is having an issue that I've been unable to figure out myself.

The spell appears in-game just fine, can be added to the caster's spellbook, can be prepared and even quickslotted.  It works fine when cast from a scroll.  However, when a PC tries to cast the spell (from memorized slot), they get the message that they have no preparations left.

The 2da lines match up with many other spell entries (so there's nothing there that should be causing issues).  Other spells that draw on the exact same script function properly.

So, anyone else ever seen this?  And if so, how'd you figure out how to fix it?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Custom Spell Issue
« Reply #1 on: April 02, 2011, 08:51:36 pm »


               This error message is shown if the player does not have the same spells.2da as server. Well more specifically its about TargetType collumn in spells.2da. If it doesn't match the spell cannot be cast.

In past players could exploit spells via this and cast eg polymorph self to enemy.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Custom Spell Issue
« Reply #2 on: April 02, 2011, 10:10:29 pm »


               Thanks!