Author Topic: Just a Couple of Quick Questions  (Read 322 times)

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
Just a Couple of Quick Questions
« on: July 26, 2015, 07:09:02 pm »


               
According to the lexicon the routine ActionCastSpellAtObject is bugged.

 



void ActionCastSpellAtObject(
    int nSpell,
    object oTarget,
    int nMetaMagic = METAMAGIC_ANY,
    int bCheat = FALSE,
    int nDomainLevel = 0,
    int nProjectilePathType = PROJECTILE_PATH_TYPE_DEFAULT,
    int bInstantSpell = FALSE
);


While nDomainLevel is supposed to set the equivalent caster level that the spell is cast at, according to the lexicon this parameter is ignored by the routine. As I need to cast a number of spells with a number of different caster levels I need to know if this is true? If so is there a routine that can be used to replace it? Is there a workaround that doesn't involve the unofficial patch (I need what I am working on to be independent of external scripting routines). Or will I have to write my own spell routines?

 

Thanks in advance

 

TR

               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Just a Couple of Quick Questions
« Reply #1 on: July 26, 2015, 09:00:20 pm »


               

AFAIK no it doesnt work


 


Two options:


1) take spellscript from my patch and include them in your module and then use the spellcasting override variables


2) modify spellscripts of the spells you want to cast this way and handle it manually there


               
               

               
            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
Just a Couple of Quick Questions
« Reply #2 on: July 27, 2015, 02:09:04 am »


               

options 1 & 2 - soooo many scripts to search through...


 


Thanks anyway.


 


TR