Scout stop attack when is attacked
Scout stop attack when is attacked
Hi there, I have a problem with my scout. When I want her to attack on her own she stops attacking when she is attacked herself. Micromacro tells me:
"micromacro/scripts/rom/classes/skill.lua: 409: attempt to compare number with nil"
What do I have to do to?
Greetings and thanks for the help
Nijura
"micromacro/scripts/rom/classes/skill.lua: 409: attempt to compare number with nil"
What do I have to do to?
Greetings and thanks for the help
Nijura
Re: Scout stop attack when is attacked
You posted in the wrong section. All rombot queries go in the "Runes of Magic" forum. I moved it for you.
Line 409 should beTry adding the following line before this so we know which value is causing the problem.
When you get the error tell us what it prints.
Line 409 should be
Code: Select all
if ammo.ObjSubType ~= 5 or ammo.ItemCount < self.ConsumableNumber thenCode: Select all
if ammo.ObjSubType == nil or ammo.ItemCount ==nil or self.ConsumableNumber == nil then
print(self.Id,self.Name,ammo.ObjSubType or "nil",ammo.ItemCount or "nil",self.ConsumableNumber or "nil")
end- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Scout stop attack when is attacked
Thanks for the quick answer. I'm sorry for the wrong section for my question.
I don't know, where I should write the lines you told me. Is it in skills or profile?
Greetings
Nijura
I don't know, where I should write the lines you told me. Is it in skills or profile?
Greetings
Nijura
Re: Scout stop attack when is attacked
The error you posted said line 409 of skill.lua. So that's the file I meant. Just add it before that line.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Scout stop attack when is attacked
I added it and the bot runs for several minutes now without crashing. I hope the problem won't show up again.
Thank you very much!
Thank you very much!
Re: Scout stop attack when is attacked
I see now, that the scout is not using any skills consuming arrows. That's odd.
Re: Scout stop attack when is attacked
What I posted shouldn't stop it from errorring, only add a message before it errors. So you're not getting errors its just not using arrows? Maybe it's a glitch that would be fixed after restarting the game?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Scout stop attack when is attacked
I restarted the game. Now she uses arrows again but I get that error again. "micromacro/scripts/rom/classes/skill.lua: 412: attempt to compare number with nil"
- Attachments
-
- skill.lua
- (24.63 KiB) Downloaded 120 times
-
noobbotter
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
Re: Scout stop attack when is attacked
Do you have a line starting with in your profile you're using?
Code: Select all
<option name="ARROW_QUIVER"Re: Scout stop attack when is attacked
Didn't I say to tell me what it prints when you get the error? The print out I had you add should appear just before the error.Nijura wrote:I restarted the game. Now she uses arrows again but I get that error again. "micromacro/scripts/rom/classes/skill.lua: 412: attempt to compare number with nil"
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Scout stop attack when is attacked
I looked it up myself, the line before error. It seems that some buffs caused trouble. I removed them from my profile and everything goes well since then.
Thank you for your patience and good advise
Thank you for your patience and good advise
Who is online
Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 2 guests