l6bustank
2013-07-29 18:01:36
I want to write a looter function for my 07 melee fighter.
I was planning to find the drop by finding the hp bar of my current enemy (the drop will appear relative to the coords of the hpbar). To find my enemys hp bar, I think
1. I need to find all the hp bars on mainscreen (as TPAs)
2. Make an ATPA of them
3. Find the array (ATPA) member that is in the center (my own hp bar)
4. Find the next member which is closest to the member in the center (that would be the NPC I am fighting)
5. Wait for its color to turn all red (getting the NPC "redbarred")+store the coords at the same moment
6. Wait for the red bar disappear
7. Move mouse to coords relative to the ones stored in 5.
8. Loot.
my problems are: 1)how to find the center member 2)how to find the ATPA member closest to it 3)how to detect the "all red"?
I understand there is sth like FindAllHPBars in the include but how to use it (if possible)?
Really appreciate the help :)
I was planning to find the drop by finding the hp bar of my current enemy (the drop will appear relative to the coords of the hpbar). To find my enemys hp bar, I think
1. I need to find all the hp bars on mainscreen (as TPAs)
2. Make an ATPA of them
3. Find the array (ATPA) member that is in the center (my own hp bar)
4. Find the next member which is closest to the member in the center (that would be the NPC I am fighting)
5. Wait for its color to turn all red (getting the NPC "redbarred")+store the coords at the same moment
6. Wait for the red bar disappear
7. Move mouse to coords relative to the ones stored in 5.
8. Loot.
my problems are: 1)how to find the center member 2)how to find the ATPA member closest to it 3)how to detect the "all red"?
I understand there is sth like FindAllHPBars in the include but how to use it (if possible)?
Really appreciate the help :)