Error when using RoMScript() to cast Lion's Protection
Posted: Thu Nov 18, 2010 7:50 pm
I think I have a good one for all the lua code experts. I'm getting the following error when Micromacro tries to cast the Rogue/Knight elite spell "Lion's Protection" using the built in RoMScript function and the spell never casts.
[string "r=" a={CastSpellByName('Lion's Protection');} for i=1,#a do r=..."]:1: ')' expected near 's'
I think it's tripping up on the apostrophe in the word Lion's hence it's looking for a closing parentheses near the "s" in Lion's. The code that looks like it might be be causing the issue is found in skills.lua, line 411 which is using the built in RoMScript function found in functions.lua, line 525.
I wish I new enough about lua coding to figure out how to change the RoMScript function to be able to handle spells with apostrophes in them. Any ideas?
[string "r=" a={CastSpellByName('Lion's Protection');} for i=1,#a do r=..."]:1: ')' expected near 's'
I think it's tripping up on the apostrophe in the word Lion's hence it's looking for a closing parentheses near the "s" in Lion's. The code that looks like it might be be causing the issue is found in skills.lua, line 411 which is using the built in RoMScript function found in functions.lua, line 525.
I wish I new enough about lua coding to figure out how to change the RoMScript function to be able to handle spells with apostrophes in them. Any ideas?