openkore icon indicating copy to clipboard operation
openkore copied to clipboard

Not able to use Cart Cannon to attack from a distance (Gene)

Open Avngl opened this issue 8 years ago • 9 comments

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?

Avngl avatar Jun 14 '18 17:06 Avngl

if a do remember correctly, attackDistance do not support multiple values put only one velue, and test it please

Nipodemos avatar Jun 14 '18 21:06 Nipodemos

@Nipodemos i tried with a single value initially but it doesn't work as well

Avngl avatar Jun 15 '18 01:06 Avngl

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:

Nipodemos avatar Jun 15 '18 03:06 Nipodemos

Too many unnecessary thing from what I see. Might wanna go back to the basic & try again according to the manual.

Fadreus avatar Jun 15 '18 04:06 Fadreus

@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.

Avngl avatar Jun 17 '18 04:06 Avngl

image

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.

Fadreus avatar Jun 17 '18 06:06 Fadreus

Maybe a block in config.txt that it isn't closed

Nipodemos avatar Jun 17 '18 16:06 Nipodemos

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 avatar Jun 17 '18 19:06 Fadreus

@Fadreus is right. The problem is the skill's level. I was careless. Thank you.

Avngl avatar Jun 19 '18 14:06 Avngl