Well I just tried to locate the "monster" on the screenshot you just uploaded. I could locate it with the following: Code: begin when Color.Pixel pattern can be located on screen("255,235,211,-3,-1,255,235,211,0,-3,242,234,211,4,0,242,242,242,2,-3,255,246,211,-2,0,255,246,211,5,3,255,235,211,-3,4,255,235,211,0,4,255,235,211", "2") begin Mouse.Click("Right") end end
This is just a stupid example, but it works - so when the mob appears on the screen it start to right click :p Now I have only tested it on a screenshot (becauseI haven't the game installed), so maybe it wouldn't work out ingame, because I don't know if the mob is affected by night / day light or even what direction the mob is looking at. So to be honest the only thing you can use from this example is just: Code: when Color.Pixel pattern can be located on screen()
And then you should use Investigator to create a pixel pattern - I clicked a few different places in the mobs face. But you can try some different places and see what works best for you! Another thing is, I used a ranged of 2 - again try out what works best. I hope this can get you started! Good luck
Well I just tried to locate the "monster" on the screenshot you just uploaded.
I could locate it with the following:
[code] begin when Color.Pixel pattern can be located on screen("255,235,211,-3,-1,255,235,211,0,-3,242,234,211,4,0,242,242,242,2,-3,255,246,211,-2,0,255,246,211,5,3,255,235,211,-3,4,255,235,211,0,4,255,235,211", "2") begin Mouse.Click("Right") end end [/code]
This is just a stupid example, but it works - so when the mob appears on the screen it start to right click :p
Now I have only tested it on a screenshot (becauseI haven't the game installed), so maybe it wouldn't work out ingame, because I don't know if the mob is affected by night / day light or even what direction the mob is looking at.
So to be honest the only thing you can use from this example is just:
[code] when Color.Pixel pattern can be located on screen() [/code]
And then you should use Investigator to create a pixel pattern - I clicked a few different places in the mobs face. But you can try some different places and see what works best for you!
Another thing is, I used a ranged of 2 - again try out what works best.
I hope this can get you started! Good luck :)
|