Author Topic: Darkfire on arrows/bolts  (Read 250 times)

Legacy_Mr_Dammage

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Darkfire on arrows/bolts
« on: July 21, 2013, 01:08:55 am »


                Was wondering if anyone knew how to go about enabling the casting of darkfire on arrows/ bolts. I used to play on a PW where you could do this. Not sure how to go about making it work. Any help would be much appreciated.  
               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Darkfire on arrows/bolts
« Reply #1 on: July 21, 2013, 04:29:12 am »


               Bolts and arrows are allowed all on-hit cast spell properties.   So all you have to do is modify the scripts (x2_s0_darkfire and x2_s0_flameweapon) checking the bolts and arrows inventory slots to see if they match the targeted item.  (Refer to IPGetTargetedOrEquippedMeleeWeapon() in x2_inc_itemprop to see how it is currently handled).
               
               

               
            

Legacy_Mr_Dammage

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Darkfire on arrows/bolts
« Reply #2 on: July 21, 2013, 11:49:42 am »


               awesome, thanks very much for that, will give it a try!