So i'm running POL098 with the Asgard/Ackadia scripts and i've put the ConsumeRegs function in each spell individually. However now NPC spellcasters aren't casting spells. I assume it's because the spells require regs individually now. I can think of 2 ways to get around this but not sure how to make them work.
1) Equip NPC's (MOBs) with regeants - not sure how I should put this into their NPC template
2) make them cast as if it's a scroll since they require no regs.
any help would be appreciated
NPC's can't cast spells (MOBs that is)
Moderator: POL Developer
-
- New User
- Posts: 12
- Joined: Sun Feb 27, 2011 11:24 am
Re: NPC's can't cast spells (MOBs that is)
add
in your reagents checkerif (!caster.npctemplate)
-
- New User
- Posts: 12
- Joined: Sun Feb 27, 2011 11:24 am
Re: NPC's can't cast spells (MOBs that is)
great, looks like i got it working for one spell at least, now to change the rest of them (yay me). at least i only need to change the ones that are being used by the MOBs anyway
While we're on the topic, it looks as though spells are using 2 of each reagent. I just noticed and i don't think it was happening before. Has it always been this way? is there a way i can adjust this? I can't find the actual function for ConsumeReagants to modifiy it
While we're on the topic, it looks as though spells are using 2 of each reagent. I just noticed and i don't think it was happening before. Has it always been this way? is there a way i can adjust this? I can't find the actual function for ConsumeReagants to modifiy it
Re: NPC's can't cast spells (MOBs that is)
http://docs.polserver.com/pol098/single ... e=uoem.xml
It will consume the amounts its told to in spells.cfg
If it is consuming twice - it would mean that the script(s) are calling the function more than once.
It will consume the amounts its told to in spells.cfg
If it is consuming twice - it would mean that the script(s) are calling the function more than once.