Scout stop attack when is attacked

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Nijura
Posts: 10
Joined: Fri Jul 18, 2014 7:01 pm

Scout stop attack when is attacked

#1 Post by Nijura » Thu Jul 09, 2015 1:55 am

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Scout stop attack when is attacked

#2 Post by rock5 » Thu Jul 09, 2015 2:48 am

You posted in the wrong section. All rombot queries go in the "Runes of Magic" forum. I moved it for you.

Line 409 should be

Code: Select all

			if ammo.ObjSubType ~= 5 or ammo.ItemCount < self.ConsumableNumber then
Try adding the following line before this so we know which value is causing the problem.

Code: 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
When you get the error tell us what it prints.
  • 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

Nijura
Posts: 10
Joined: Fri Jul 18, 2014 7:01 pm

Re: Scout stop attack when is attacked

#3 Post by Nijura » Thu Jul 09, 2015 3:09 am

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Scout stop attack when is attacked

#4 Post by rock5 » Thu Jul 09, 2015 3:53 am

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

Nijura
Posts: 10
Joined: Fri Jul 18, 2014 7:01 pm

Re: Scout stop attack when is attacked

#5 Post by Nijura » Thu Jul 09, 2015 4:05 am

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!

Nijura
Posts: 10
Joined: Fri Jul 18, 2014 7:01 pm

Re: Scout stop attack when is attacked

#6 Post by Nijura » Thu Jul 09, 2015 4:08 am

I see now, that the scout is not using any skills consuming arrows. That's odd.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Scout stop attack when is attacked

#7 Post by rock5 » Thu Jul 09, 2015 4:14 am

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

Nijura
Posts: 10
Joined: Fri Jul 18, 2014 7:01 pm

Re: Scout stop attack when is attacked

#8 Post by Nijura » Thu Jul 09, 2015 4:24 am

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 119 times

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: Scout stop attack when is attacked

#9 Post by noobbotter » Thu Jul 09, 2015 7:51 am

Do you have a line starting with

Code: Select all

<option name="ARROW_QUIVER"
in your profile you're using?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Scout stop attack when is attacked

#10 Post by rock5 » Thu Jul 09, 2015 8:02 am

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"
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.
  • 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

Nijura
Posts: 10
Joined: Fri Jul 18, 2014 7:01 pm

Re: Scout stop attack when is attacked

#11 Post by Nijura » Thu Jul 09, 2015 10:01 am

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 :D

Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 3 guests