EngageTheRage
2013-04-21 20:01:02
for some reason it doesnt seem to work for me when finding monsters.
it works occasionally but not enough, i have re-written the function so the box is the exact size of the work im looking for and re-checked the color.
i have it working perfectly for looting further up in the script but for some reason it just wont work against monsters!useally i get nothing at all (even though its hovering over the monster and there is uptext) and sometimes i get – ', etc. and then it'll work fine for 5/10minutes then go back to being crap ;/
if anyone has any advice on what i could try or would like to point out if im being stupid that'd be great :)
this works almost flawlessly
however this will not
i have checked and re-checked the co-ords are correct, i have a box painted on to check.
EDIT: could the background affect it? i would have thought not as i am looking for yellow only (used ACA to get the color, hue, sat & tol), but after watching im not sure …
it works occasionally but not enough, i have re-written the function so the box is the exact size of the work im looking for and re-checked the color.
i have it working perfectly for looting further up in the script but for some reason it just wont work against monsters!useally i get nothing at all (even though its hovering over the monster and there is uptext) and sometimes i get – ', etc. and then it'll work fine for 5/10minutes then go back to being crap ;/
if anyone has any advice on what i could try or would like to point out if im being stupid that'd be great :)
this works almost flawlessly
writeln(getuptext);
case GetUpText of
however this will not
theUpText := GetTextAtExWrap(55, 2, 94, 21, 0, 6, 2, 122074, 40, 'UpChars07');
writeln('checking: ' + theuptext);
if (ExecRegExpr('.*'+'oss'+'.*', theUpText)) then
^^this was originally using IsUpTextEx but it wasnt working at all (nor was GetUpText) so i just copied and changed slightly for my needs.i have checked and re-checked the co-ords are correct, i have a box painted on to check.
EDIT: could the background affect it? i would have thought not as i am looking for yellow only (used ACA to get the color, hue, sat & tol), but after watching im not sure …