some problems with the settings.lua

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
rondolos
Posts: 2
Joined: Mon Jul 05, 2010 4:32 am

some problems with the settings.lua

#1 Post by rondolos »

hello people

i'm pretty new here, and I've got a problem with my settings.lua.
every time I try to start rom/bot.lua I get the following message:

Opening Local skills DB!
macro test: ok
ranged skill found: PRIEST_RISING_TIDE
C:/program files/micromacro/scripts/rom/settings.lua:1022: attempt to compare number with string

when i look in the folder it says the following:
-- check is combat distance is greater then maximum ranged attack
if( best_range < settings.profile.options.COMBAT_DISTANCE and
(settings.profile.options.COMBAT_TYPE == "ranged" or
settings.profile.options.COMBAT_RANGED_PULL == true) ) then
local msg = sprintf(language[179], settings.profile.options.COMBAT_DISTANCE); -- Maximum range of range attack skills is lesser
error(msg, 0);

the red marked sentence is the 1022 sentence
I've used SVN, I've updated it normally. I even deleted en reïnstalled it a few times.
i'm at a loss of what to do!
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: some problems with the settings.lua

#2 Post by Administrator »

Set COMBAT_DISTANCE in your profile to a number instead of a string?
rondolos
Posts: 2
Joined: Mon Jul 05, 2010 4:32 am

Re: some problems with the settings.lua

#3 Post by rondolos »

that fixed my problem,
the rom is now working 100%

pretty stupid i didn't see it :oops:
Post Reply