Jump to content

Pixel In game


spec1
 Share

Recommended Posts

Could someone help me out, I'm new to AutoIt and not sure how to do it been looking all over the forums and cant figure it out.

I need a script to watch x106 y677 for color 0X2128B5 and have variations of the color when it sees it, presses A till it changes color, is there a way to get it to do that ?

I know autoIt works in the game because http://www.autoitscript.com/forum/index.ph...mp;hl=crosshair will shoot colors in the game I sent just not sure how to make one do what I need please help thanks.

Link to comment
Share on other sites

Since you are new to the boards ill give you the script:

while 1

  if pixelgetcolor(106,677) <> 0x2128b5 then
    send("{A}")
    sleep(2000) ;sleep 2 secounds so A is not spammed.
  endif

  sleep(25) ; take away some load when script is looping.

wend

As for color variations you would either need to add colors or use pixesearch.

Adding colors is as simple as"if pixelgetcolor(106,677) <> 0x2128b5 AND pixelgetcolor(106,677) <> COLORCODE_HERE then" you can add as many "AND" as you want to.

Using pixelsearch would be the easiest way, if you know how to use it.

Iwe provided you with a script, if this does not work for you, try to write next one if you are having any problems, post it and ill work with ya until you get your script working.

Next time try to make something first, then ask about dirrections, easier for both parts knowing how to help you out :P Edited by jokke
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.
Link to comment
Share on other sites

Thanks for you response it triggers A no matter what colors are in the pixels, is there some way to fix it ?

Since you are new to the boards ill give you the script:

while 1

  if pixelgetcolor(106,677) <> 0x2128b5 then
    send("{A}")
    sleep(2000) ;sleep 2 secounds so A is not spammed.
  endif

  sleep(25) ; take away some load when script is looping.

wend

Next time try to make something first, then ask about dirrections, easier for both parts knowing how to help you out :P

Link to comment
Share on other sites

Ok I got it working somewhat, but how do I make it do variations ?

while 1

if pixelgetcolor(103,673) = 0xBD2829 then ;I changed the <> to =

send("{A}")

sleep(2000) ;sleep 2 secounds so A is not spammed.

endif

sleep(25) ; take away some load when script is looping.

wend

If I change the 0xBD2829 to 0xBD2829,10 does that do variations of like 10 ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...