Page 1 of 1

leeching bot won't attack aggro mobs

Posted: 02 Jul 2018, 21:47
by troypogs777
Hi. It's been so long since I used a bot. Basically here's the problem. I made my bot sit in a certain position in the lockmap by using lockmap coordinates so he will just sit there unless a mob should come by and then the theory is he should attack normally then after killing go back to sitting. Basically, he is a leech bot. Now here comes the problem. A mob comes along, and the bot does nothing but take the damage. So I send a command in the console to attack and he uses the attackskill slot I put in the config...only when I type the command in the console to attack. So been back and forth searching for answers and tweaking auto attack to no avail. en route to lockmap, he attacks. But when he gets there, he doesn't. See config below if there's something wrong i did. Thanks.


attackAuto 1
attackAuto_party 1
attackAuto_onlyWhenSafe 0
attackAuto_followTarget 1
attackAuto_inLockOnly 1
attackAuto_notInTown 1
attackDistance 1.5
attackDistanceAuto 0
attackMaxDistance 2.5
attackMaxRouteDistance 100
attackMaxRouteTime 4
attackMinPlayerDistance 2
attackMinPortalDistance 4
attackUseWeapon 1
attackNoGiveup 0
attackCanSnipe 0
attackCheckLOS 0
attackLooters 0
attackChangeTarget 1
aggressiveAntiKS 1


attackSkillSlot Cart Revolution {
lvl 10
dist 1.5
maxCastTime 0
minCastTime 0
hp
sp > 10
homunculus_hp
homunculus_sp
homunculus_dead
onAction
whenStatusActive
whenStatusInactive
whenFollowing
spirit
amuletType
aggressives
previousDamage
stopWhenHit 0
inLockOnly 1
notInTown 0
timeout 0
disabled 0
monsters Orc Lady, Orc Warrior, High Orc
notMonsters
monstersCount
maxAttempts 0
maxUses 0
target_hp
target_whenStatusActive
target_whenStatusInactive
target_deltaHp
inInventory
isSelfSkill 0
equip_topHead
equip_midHead
equip_lowHead
equip_leftHand
equip_rightHand
equip_leftAccessory
equip_rightAccessory
equip_robe
equip_armor
equip_shoes
equip_arrow
}

Re: leeching bot won't attack aggro mobs

Posted: 02 Jul 2018, 22:35
by fadreus
Upload your config file.

Or try this

attackAuto 1
attackAuto_party 2
attackAuto_onlyWhenSafe 0
attackAuto_followTarget 0
attackAuto_inLockOnly 1
attackAuto_notInTown 1
attackDistance 1.5
attackDistanceAuto 0
attackMaxDistance 2.5
attackMaxRouteDistance 100
attackMaxRouteTime 4
attackMinPlayerDistance 2
attackMinPortalDistance 4
attackUseWeapon 1
attackNoGiveup 0
attackCanSnipe 0
attackCheckLOS 0
attackLooters 0
attackChangeTarget 1
aggressiveAntiKS 1

Apparently there are few factors can cause this.
I suggest you tell use more what file you touch, what version you are using and anything else.

Re: leeching bot won't attack aggro mobs

Posted: 02 Jul 2018, 23:32
by troypogs777
I agree. There's other factors. Basically, when the bot gets to the lockmap, he won't attack anymore. But en route to lockmap, he can attack mobs he passes by.
this is my config. I haven't touched anything other than the attackAuto block and attackSkill block.

Re: leeching bot won't attack aggro mobs

Posted: 03 Jul 2018, 00:44
by troypogs777
nevermind i solved the problem sir. It seems when the bots are placed near the portal, they won't attack. I experimented by placing them further from the portal and they started auto attacking.

Re: leeching bot won't attack aggro mobs

Posted: 03 Jul 2018, 09:17
by fadreus

Code: Select all

attackMinPortalDistance 4
Next time I suggest you read carefully each line.
No offense 8-)

Good you solve it. :lol:

Re: leeching bot won't attack aggro mobs

Posted: 04 Jul 2018, 21:49
by troypogs777
haha. yes, i try to solve problems by myself and ask for forum ideas simultaneously to save time. anyway, this will also add to the solution of others in the future. :D