Page 1 of 1

help with parsing chat

Posted: January 2nd, 2008, 1:30 pm
by cap1820
i have written me a basic bot to go and kill whatever i tell it to.

i am having trouble determining if i am in combat. all i can do is tell if i am auto attacking. the only thing i can think of is to have the bot parse my combat chat window for "soandso hits you for blah" but i cannot find any instances of this in any of the bots on this site.

is chat parsing an option with this program? or does it only support chat logging?

also, is this the correct place to post a question of this nature?

thanks

Posted: January 2nd, 2008, 2:53 pm
by cap1820
well i guess i missed the waypoint creator uses this concept.

so if anyone looks at this and happens to be needing help you can look at the waypoint creator in the programs section

Posted: January 2nd, 2008, 10:55 pm
by beergeek
fyi, you can also see some different string matching techniques when log parsing in my crafting bot.

Posted: January 4th, 2008, 6:42 pm
by cap1820
thank you beergeek.

Posted: January 5th, 2008, 9:41 am
by wyvernx
I could have sworn I added a Player.isAttacking routine.

The other way is to check your HP. If you are below 100%, then something is wrong.

Another way is to check your target. Usualyl when you get attacked, you suddenly have a new target.