Sign in to follow this  
Followers 0
gardenerith

Can anyone help me out with this scrip?

4 posts in this topic

It's driving me crazy!

I was here months ago, i asked for scripting help, you said i needed to learn on my own.

Well, I have to say, I made a LOT of progress, but I'm still a noob. Sorry.

Here's my script.

While 1
    PixelSearch(290, 511, 329, 531, 0x01FF01)
    If Not @error Then
        Send("{Space}{Space}{Space}")
        Sleep(1000)
        $Pink = PixelSearch(630, 127, 709, 206, 0xFF00FF)
        If Not @error Then
            Do
            MouseClick("left",94, 520)
            PixelSearch(18, 333, 67, 341, 0x00ff00)
        Until not @error
        Do
            MouseClick("left",50, 419)
            PixelSearch(18, 333, 67, 341, 0x00ff00)
        Until @error
        EndIf

            PixelSearch(290, 511, 329, 531, 0x01FF01)
            If Not @error Then
                Do
                MouseClick("left", 259, 527)
                Sleep(500)
                MouseMove(264, 431)
                PixelSearch(290, 511, 329, 531, 0x01FF01)
            Until @error
            EndIf
    EndIf
WEnd

This is obviously a bot for my private server of a game.

But My issue is, I can't get it to do what I want. =[

After the $pink(thrown in to help you find what i'm having trouble with) I want it to run through what's after it if the Pink is there.

I need it to run that script, until the 01FF01 isn't there anymore.

The last half of the scrip runs perfectly, but Not the first half.

Bascially, i want it to (sleep) until i sees the green, once it sees it i want it to scan for the pink.

If pink isn't there, it clicks the area where the green is until the green is gone.

But If the pink is there, I want it to run that script until the green is gone. -.-

But I need the checks(pixelsearch) in there since it skips so much. -.-

Any Ideas?

Share this post


Link to post
Share on other sites



It's driving me crazy!

I was here months ago, i asked for scripting help, you said i needed to learn on my own.

Well, I have to say, I made a LOT of progress, but I'm still a noob. Sorry.

Here's my script.

While 1
    PixelSearch(290, 511, 329, 531, 0x01FF01)
    If Not @error Then
        Send("{Space}{Space}{Space}")
        Sleep(1000)
        $Pink = PixelSearch(630, 127, 709, 206, 0xFF00FF)
        If Not @error Then
            Do
            MouseClick("left",94, 520)
            PixelSearch(18, 333, 67, 341, 0x00ff00)
        Until not @error
        Do
            MouseClick("left",50, 419)
            PixelSearch(18, 333, 67, 341, 0x00ff00)
        Until @error
        EndIf

            PixelSearch(290, 511, 329, 531, 0x01FF01)
            If Not @error Then
                Do
                MouseClick("left", 259, 527)
                Sleep(500)
                MouseMove(264, 431)
                PixelSearch(290, 511, 329, 531, 0x01FF01)
            Until @error
            EndIf
    EndIf
WEnd

This is obviously a bot for my private server of a game.

But My issue is, I can't get it to do what I want. =[

After the $pink(thrown in to help you find what i'm having trouble with) I want it to run through what's after it if the Pink is there.

I need it to run that script, until the 01FF01 isn't there anymore.

The last half of the scrip runs perfectly, but Not the first half.

Bascially, i want it to (sleep) until i sees the green, once it sees it i want it to scan for the pink.

If pink isn't there, it clicks the area where the green is until the green is gone.

But If the pink is there, I want it to run that script until the green is gone. -.-

But I need the checks(pixelsearch) in there since it skips so much. -.-

Any Ideas?

what game is this for? where did you get your color codes from? check the codes here http://en.wikipedia.org/wiki/Web_colors#Converting_RGB_to_hexadecimal

to ensure they are the right color, also use the auti window info tool. lemme know if this helps, i am a noob too but still trying to help

Share this post


Link to post
Share on other sites

what game is this for? where did you get your color codes from? check the codes here http://en.wikipedia.org/wiki/Web_colors#Converting_RGB_to_hexadecimal

to ensure they are the right color, also use the auti window info tool. lemme know if this helps, i am a noob too but still trying to help

i put the colors in myself.

so i know they're right.

it's a very not well known game... =\

but i just need help with the script. =[

Share this post


Link to post
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
Sign in to follow this  
Followers 0