WillyJenkins
01-11-2012, 02:04 PM
Hey guys, I'm working on a chinchompa hunting script, its all going splendidly so far, but now I'm wondering what the best method would be to check each trap after its been placed.
The traps won't always be in the same place, seeing as the script tries to place them in a specific pattern (like the number 5 on a dice), but if there is something like a plant in the way it moves one square to the left and places it there instead. I suppose I could try and use specific spots without any plants with more accurate DTMs but if it isn't necessary I'll try without.
Basically I need my script to enter a trap checking loop, where it checks each trap, probably by hovering the mouse and checking up-text, then either dismantles failed traps, re-lays fallen traps or checks and re-lays successful traps.
The problem I'm having is that I don't know how to check each trap, I though I could use FindColor first as there doesn't seem to be any similar colours to the traps, however I don't know how I would do this to check each trap in sequence? Surely every time I use FindColor it will just find the same single trap. So I guess what I'm asking is what would be the best way to check each trap I've laid (if they aren't in any specific pattern) in sequence from 1 through 5.
Thanks in advance for any info.
Willy Jenkins.
The traps won't always be in the same place, seeing as the script tries to place them in a specific pattern (like the number 5 on a dice), but if there is something like a plant in the way it moves one square to the left and places it there instead. I suppose I could try and use specific spots without any plants with more accurate DTMs but if it isn't necessary I'll try without.
Basically I need my script to enter a trap checking loop, where it checks each trap, probably by hovering the mouse and checking up-text, then either dismantles failed traps, re-lays fallen traps or checks and re-lays successful traps.
The problem I'm having is that I don't know how to check each trap, I though I could use FindColor first as there doesn't seem to be any similar colours to the traps, however I don't know how I would do this to check each trap in sequence? Surely every time I use FindColor it will just find the same single trap. So I guess what I'm asking is what would be the best way to check each trap I've laid (if they aren't in any specific pattern) in sequence from 1 through 5.
Thanks in advance for any info.
Willy Jenkins.