I'm trying to code Shield of Truth in skills.lua, so that it casts when stunned. Once I'm stunned, I get the below error and the script stops;
...classes/skill.lua:327: Attempt to index local 'checktab' <a nil value>
What does that mean? How can I make the below code work? Or do I need to do it another way? Maybe an onPreSkillCast script?
Mushroomstamp wrote:I'm trying to code Shield of Truth in skills.lua, so that it casts when stunned. Once I'm stunned, I get the below error and the script stops;
...classes/skill.lua:327: Attempt to index local 'checktab' <a nil value>
What does that mean? How can I make the below code work? Or do I need to do it another way? Maybe an onPreSkillCast script?
if you check the code below in skill.lua you'll see that the TARGET is "player" and NOT "self"
therefore it would try to index something that doesn't exist, i.e., a nil value! Just change it to player!
Mushroomstamp wrote:You kick ass - thanks so much!
You're Welcome!Aand this reminds me to update my skills file, i've been using an old r4xx version because i have some elite skills that are (were?) not on the db.
Thanks for reading!
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates