Nevermind i found it, thanks anyway
Nevermind i found it, thanks anyway
Dude you didnt read properly :
He made a ratio in the script wich helps find the health bar without having to set pixelsearch. You're supposed to enter only you screen resolution. But something goes wrong... :/
EDIT: btw i tried editing the pixelsearch with the right coords and bin the ratio thingy, still only tabs and tabs and tabs...
Last edited by w4st3; 08-29-2012 at 01:16 PM.
Yes! The problem was that I accidentally reversed the division in "$x/yrat"! oops! Please try the new version.
w4st, if you tried the new version and it didn't work, and if you are 101% positive you entered the coords in correctly, the only thing I can think of is that the color for "red" of the mob health bar is different on your resolution. Do you think you could take a screenshot and post the color in hex here for everybody to use? I also increased the tolerance to "5" so this may help you.
Also be sure to change what skills the bot uses to suit your action bar.
Yes, you should use ranged skills because this version of the bot does not move unless you tell it to.
Last edited by Tomatoes99; 08-29-2012 at 01:56 PM.
Yup i saw you reversed the ratio, corrected that and still not working.
Then tried to change the color, i spoted with Window Info the color, and ended up putting "0x9E2313, 10" in the script. (tolerance of 10 shades might be a bit too much...)
I tried your new script, with your color set and mine, it still doesn't work.
There might be a problem with coords maths : i spotted the right coords for me, they should be 784, 88, 1032, 97.
With my 1920/1280 =1,5, the factor 474 for the top left is not enough. Should be about 523.
But still, when i tried to get rid of the ratio calculation and entered the right coordinates of health bar it still didnt worked !
Something's gotta be broken with your "if pixelsearch = true then DoEvent".
Tomato, after you updated the script it won't target monters or do anything after presseng "=". My resolution (1366-76 is already set in the new code so I cant figure out what I am doing wrong. Btw. great script cant wait to make it work and give rep, your doing a awesome work.
A small issue i have now that i cant fix is that when he kills a mob he doesnt stop casting skills? how can i fix that?
Hmm.. scratching my head here.. What if you tried using the latest version (1.0.4) and setting that line toThat will make it attack when there is red ANYWHERE on your screen. If you try that and your character attacks we could narrow it down to a problem with coords.PixelSearch(0, 0, 1920, 1280, 0x962014, 5)
OK I think I know what was causing this. Hope I fixed this for you--try latest version.
Last edited by Tomatoes99; 08-29-2012 at 04:05 PM.
Now it's not even attacking anymore and you forgot to put start , stop keys in it but i've done that myselfOriginally Posted by Dkid ([Release] Tomatoes' Event Running AFK Bot.)
A small issue i have now that i cant fix is that when he kills a mob he doesnt stop casting skills? how can i fix that?
OK I think I know what was causing this. Hope I fixed this for you--try latest version.
I found the cords and the bot is running, the only problem now is: When you attack a target, it casts 3-4 spells, and then find a new target attacks the new target, and then start running to attack yet another.
Thanks i found my issue thanks for the wonderfull script
Right. It attacks for 6 seconds, then it presses tab and it will attack whatever it finds. If you want it to attack the same target for longer, you can add more lines of "randskill" and "shoot1" to
Code:Func DoEvent() ;Attacks until it can't find mobs. $r +=6000 RandSkill() Shoot1(1.5) RandSkill() Shoot1(1.5) EndFunc ; >DoEvent