Bot wont Bwing on low health.

International

Moderator: Moderators

Onigami
Human
Human
Posts: 20
Joined: 31 May 2011, 20:09
Noob?: Yes

Bot wont Bwing on low health.

#1 Post by Onigami »

I'm having issues with getting my bot to use Butterfly Wing on low health as opposed to potions and fly wings. I'm new to this and need some help, the code I have in the config is:

useSelf_item Butterfly Wing {
hp < 10%
sp
homunculus_hp
homunculus_sp
homunculus_dead
onAction
whenStatusActive
whenStatusInactive
whenFollowing
spirit
aggressives
monsters
notMonsters
stopWhenHit 0
inLockOnly 0
notWhileSitting 0
notInTown 0
timeout
disabled 0
inInventory
manualAI 0
}

Is there some reason why it doesn't work?
levantine
Noob
Noob
Posts: 10
Joined: 12 Jul 2011, 11:37
Noob?: Yes

Re: Bot wont Bwing on low health.

#2 Post by levantine »

Not sure why you want to use butterfly instead of fly, but does your bot teleport at all?
You may want to check the teleportAuto section, there may be some conflicts.
Onigami
Human
Human
Posts: 20
Joined: 31 May 2011, 20:09
Noob?: Yes

Re: Bot wont Bwing on low health.

#3 Post by Onigami »

levantine wrote:Not sure why you want to use butterfly instead of fly, but does your bot teleport at all?
You may want to check the teleportAuto section, there may be some conflicts.
I use a butterfly wing instead of fly to get my bot to go to town instead of teleporting all over the map. I don't use them to farm, really. I did notice something when I was checking the butterfly wing, my bots do use them but don't teleport with them. I bought 7 on my rogue and sent him out, he ended up using them but never going to town. Eventually it came to he was taking hits and having 1 HP but was taking no damage and wasn't teleporting at all.

Can they even use butterfly wings when they're on low HP?
User avatar
SkylorD
Moderators
Moderators
Posts: 1196
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: Bot wont Bwing on low health.

#4 Post by SkylorD »

Set to this :

teleportAuto_hp < 10%
teleportAuto_useSkill 0

Works normally.

http://openkore.com/index.php/TeleportAuto_useSkill

To your block, remove unecessary lines :

Code: Select all

useSelf_item Butterfly Wing {
hp <10%
}
Try this.
Learn rules
Onigami
Human
Human
Posts: 20
Joined: 31 May 2011, 20:09
Noob?: Yes

Re: Bot wont Bwing on low health.

#5 Post by Onigami »

SkylorD wrote:Set to this :

teleportAuto_hp < 10%
teleportAuto_useSkill 0

Works normally.

http://openkore.com/index.php/TeleportAuto_useSkill

To your block, remove unecessary lines :

Code: Select all

useSelf_item Butterfly Wing {
hp <10%
}
Try this.
I tried it, but it still says "no fly wing" and doesn't use a butterfly wing in it's place, even when there is one in the inventory.
User avatar
SkylorD
Moderators
Moderators
Posts: 1196
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: Bot wont Bwing on low health.

#6 Post by SkylorD »

Verify if Item name is correct.
See by typing "i" on openkore's console or by your tables/server/items.txt
Learn rules
Onigami
Human
Human
Posts: 20
Joined: 31 May 2011, 20:09
Noob?: Yes

Re: Bot wont Bwing on low health.

#7 Post by Onigami »

SkylorD wrote:Verify if Item name is correct.
See by typing "i" on openkore's console or by your tables/server/items.txt
The item name in the inventory is correct, but I removed the useSelf_item Butterfly Wing like you said.

Or did I mess something up?
User avatar
SkylorD
Moderators
Moderators
Posts: 1196
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: Bot wont Bwing on low health.

#8 Post by SkylorD »

The openkore is pre-configured to use ButterFly wing when item is avaiable in inventory.
Do this :

Configure your teleportAuto_useSkill 0 and teleportAuto_hp < 10%
Let your character with 10% of life, now digit "s" in console, take a screen and post here.

You're doing something wrong.
Here works perfectly, why with you no ?
Learn rules
levantine
Noob
Noob
Posts: 10
Joined: 12 Jul 2011, 11:37
Noob?: Yes

Re: Bot wont Bwing on low health.

#9 Post by levantine »

try typing "tele 2" in the console. It should use a butterfly wing. If it works, you can try this

doCommand tele 2 {
hp
}
User avatar
SkylorD
Moderators
Moderators
Posts: 1196
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: Bot wont Bwing on low health.

#10 Post by SkylorD »

http://openkore.com/index.php/Tele
... you have both requirements (Teleport Skill and Fly Wings), set the option teleportAuto_useSkill in config.txt to specify which one to use.
Learn rules