Author Topic: Item spell levels  (Read 312 times)

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
Item spell levels
« on: November 18, 2014, 09:45:55 pm »


               

Hi folks,  I'm confused on this one. In a spell script how does the level from the item property get used?


For example there's IP_CONST_CASTSPELL_CONFUSION_5 and _10.   The confusion script nw_s0_confusion uses  



int nDuration = GetCasterLevel(OBJECT_SELF);

But the lexicon says that only works the get the casting level of PCs and creatures. Presumably the duration of confusion from an item reflects the level of item property. Does the engine set the  item using creature's level temporarily under the covers or am I missing something?


 


Thanks,


meaglyn


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Item spell levels
« Reply #1 on: November 19, 2014, 06:08:06 am »


               


Hi folks,  I'm confused on this one. In a spell script how does the level from the item property get used?


For example there's IP_CONST_CASTSPELL_CONFUSION_5 and _10.   The confusion script nw_s0_confusion uses  



int nDuration = GetCasterLevel(OBJECT_SELF);

But the lexicon says that only works the get the casting level of PCs and creatures.




Correct. Yet when the item is cast from an item, it returns the level of the itemproperty


               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
Item spell levels
« Reply #2 on: November 19, 2014, 02:06:00 pm »


               

Thanks for verifying that. I figured it had to be doing that or something was really borked '<img'>