Hello,
This is my config:
attackUseWeapon 0
attackDistance 10,9,8,7,6,5,4,3,2,1 (tried leaving at 1.5 as well)
attackDistanceAuto 0
attackMaxDistance 12
This is my skill block:
attackSkillSlot Cart Cannon {
lvl 10
dist XXXX
maxCastTime 0.1
minCastTime 0
sp > 10
stopWhenHit 0
inLockOnly 0
notInTown 1
monsters
maxUses
}
So basically, the gene is supposed to use Cart Cannon on all monsters. The problem is, if I set dist as 1, the bot would go close to the monster and then attack with Cart Cannon. If I put dist as 2 or higher, the console would say that the bot is going to attack the monster, but the bot doesn't do anything and is stuck. Only when the monster comes near to the bot,then the bot will use Cart Cannon.
How do I config the bot to attack from a distance?
if a do remember correctly, attackDistance do not support multiple values
put only one velue, and test it please
@Nipodemos i tried with a single value initially but it doesn't work as well
oh i understand.
when you remove dist from the attackSkillSlot block, openkore uses the default distance set on attackDistance and attackMaxDistance
have you tried to erase the dist line of your attackSkillSlot block?
Obs: not relevant but, if you do not specify lvl, it will automatically use the higher lvl available, so it is not need to leave lvl on your block :smile:
Too many unnecessary thing from what I see.
Might wanna go back to the basic & try again according to the manual.
@Nipodemos
I tried removing the dist from the attackSkillSlot but its still the same.
attackSkillSlot Cart Cannon {
lvl 10
sp > 10
inLockOnly 0
}
With that configuration, the bot is able to attack, but it would attack the monster only if the monster is in the next cell, so no difference.
I tried changing
attackDistance 2
attackDistanceAuto 1 (Same if i put 0)
attackMaxDistance 2
and with that configuration, basically, anything higher than 1.5, the bot will be unable to cast Cart Cannon and would just stand there trying to attack the monster.

TESTED
No problem with current openkore version _(except that level showing lv 65534 IDK what with current version)_
@Avngl
I highly suggest you check everything you touch.
Not everything that doesn't work for you is a bug.
If you need help with setting, do that in forum.
Maybe a block in config.txt that it isn't closed
The problem is this
lvl 10
Can test on any skills which doesn't have Lv 10 _(or didn't learn lv 10, not yet tested)_, it won't cast the skill.
@Fadreus is right. The problem is the skill's level. I was careless. Thank you.