AutoCombat (similar to DCSS)
Posted: Thu Feb 07, 2013 12:34 pm
I just started to write a little Addon to do AutoCombat similar to how it's done in DCSS. With alot of help from the really nice people on irc.rizon.net/#tome i got it somewhat to work.
Why do you need AutoCombat:
archery is really tedious, so tedious that every bit making it less annoying helps.
What AutoCombat does:
activating the talent checks the area for hostiles, if any are in range use shoot/attack the "closest one" otherwise walk towards it.
How do i use AutoCombat:
extract the zip in your addon folder, create a new character - you will have a new innate talent called "autocombat"
What about the Code?
It's still mostly the tourist example addon, the changes are in talents/tourist.lua; i'm sorry about the terrible documentation :p
TODO:
- remove example code
- FIX: add it to party members (golem, summons, etc.)?
- FIX: some traps trigger errors, i don't think it's related to the talent though rather to the tourist class
- FIX: sometimes alternating between autoexplore and autocombat gives confusing results
- prefer last targeted enemy if possible
MAYBE:
- call autoexplore if no hostiles are in the area (might generally replace autoexplore?)
- make movement safer so you don't lose a turn against a enemy (sidestep if distance is odd, move towards enemy if even)
Greetings Dondy
---
Changelog:
added superloading Player.lua, for all classes
added talent to tourist class
Why do you need AutoCombat:
archery is really tedious, so tedious that every bit making it less annoying helps.
What AutoCombat does:
activating the talent checks the area for hostiles, if any are in range use shoot/attack the "closest one" otherwise walk towards it.
How do i use AutoCombat:
extract the zip in your addon folder, create a new character - you will have a new innate talent called "autocombat"
What about the Code?
It's still mostly the tourist example addon, the changes are in talents/tourist.lua; i'm sorry about the terrible documentation :p
TODO:
- remove example code
- FIX: add it to party members (golem, summons, etc.)?
- FIX: some traps trigger errors, i don't think it's related to the talent though rather to the tourist class
- FIX: sometimes alternating between autoexplore and autocombat gives confusing results
- prefer last targeted enemy if possible
MAYBE:
- call autoexplore if no hostiles are in the area (might generally replace autoexplore?)
- make movement safer so you don't lose a turn against a enemy (sidestep if distance is odd, move towards enemy if even)
Greetings Dondy
---
Changelog:
added superloading Player.lua, for all classes
added talent to tourist class