Jump to content

Game Bot - Builder


Valuater
 Share

Recommended Posts

gamebot seems to fail with me...i press start gamebot...i press F9...but the bot only acts when press F9 again...and it only repeats the act that time.

I just tested it with the demo ini file on page one and it worked fine... there is an advertisement page that pops up first

when the program ( after pressing "F9") it has a toolo tip at the top of the screen that says

'GameBot is "Running".. Press F9 to Quit'

8)

NEWHeader1.png

Link to comment
Share on other sites

  • 1 month later...

when i already get colour and enter the game

auto search colour very fast, so i click "hit so many monster"

and that monster not yet die, i already click another monster

i try increase search wait = 10000/20000, and colour wait = 10000/20000

but nothing happen still to fast click

can u explain what wrong with my setting ?

thx

Link to comment
Share on other sites

when i already get colour and enter the game

auto search colour very fast, so i click "hit so many monster"

and that monster not yet die, i already click another monster

i try increase search wait = 10000/20000, and colour wait = 10000/20000

but nothing happen still to fast click

can u explain what wrong with my setting ?

thx

Not sure exactly...

if you put wait = 10000/20000 ... it wont work

wait=10000 ...will work ( 10 seconds)

this system does click the 10 ( or less ) colors before it starts with the first color again. maybe just use one color... if all the monsters are the same color

..not sure, sorry

8)

NEWHeader1.png

Link to comment
Share on other sites

Hello...try this...it`s working perfectly for me in Quake 3 Arena (ExcessivePlus with /xp_enemycolors "2222" in the console)

#include <GUIConstants.au3>
#include <Misc.au3>
#include <GuiSlider.au3>

$g_szVersion = "PixelTrigger"   
If _Singleton($g_szVersion, 1) = 0 Then
    MsgBox(64, "PixelTrigger", "PixelTrigger is already running.", 2)
    Exit
EndIf

Global $isChecked = 0
Global $isPaused = 1
Global $pixelradius = 16
Global $refreshrate = Floor(1000/@DesktopRefresh)
Global $pos_color_ctrls = 110
Global $Color_Hex = 0xFF0000

HotKeySet("{F11}","_PauseBot")
;NOTE: This works only if game is in full screen mode!
Global $left = @Desktopwidth / 2 - $pixelradius;This is a box in middle of screen to scan
Global $top = @Desktopheight / 2 - $pixelradius
Global $right = @Desktopwidth / 2 + $pixelradius
Global $bottom = @Desktopheight / 2 + $pixelradius

$GUI = GUICreate("PixelTrigger", 360, 300, (@Desktopwidth - 360)/2, (@Desktopheight - 300)/2)
GUICtrlCreateGroup ("When on target", 10, 10, 160, 100)
$Radio_LeftM = GUICtrlCreateRadio("Left Mouse Button",20,30,120)
$Radio_RightM = GUICtrlCreateRadio("Right Mouse Button",20,50,120)
$check_mHold = GUICtrlCreateCheckbox("Hold down",20,70)
GUICtrlSetState($Radio_LeftM,$GUI_CHECKED)
GUICtrlCreateGroup ("",-99,-99,1,1)
GUICtrlCreateGroup ("Crosshair Radius", 180, 10, 160, 100)
$Radio_play1 = GUICtrlCreateRadio("4 Pixels",200,30,120)
$Radio_play2 = GUICtrlCreateRadio("16 Pixels",200,50,120)
$Radio_play3 = GUICtrlCreateRadio("32 Pixels",200,70,120)
GUICtrlSetState($Radio_play2,$GUI_CHECKED)
GUICtrlCreateGroup ("",-99,-99,1,1)
$bColor = GUICtrlCreateButton("Choose Color",30,30+$pos_color_ctrls,80)
GUICtrlCreateGroup ("Trigger on this color", 10, 10+$pos_color_ctrls, 120, 130)
$display_Color = GUICtrlCreateLabel("",20,60+$pos_color_ctrls,100,40)
GUICtrlSetBkColor($display_Color,0xFF0000)
$check_match = GUICtrlCreateCheckbox("Exact Match",30,100+$pos_color_ctrls)
GUICtrlCreateGroup ("Allowed color variation", 140, 10+$pos_color_ctrls, 200, 130)
$slider = GUICtrlCreateSlider(170,50+$pos_color_ctrls,150,30)
GUICtrlSetLimit($slider,128,0)
GUICtrlSetData($slider,32)
$h_slider = ControlGetHandle($GUI, "", "msctls_trackbar321")
$l1 = GUICtrlCreateLabel("0",180,85+$pos_color_ctrls)
$l2 = GUICtrlCreateLabel("64",240,85+$pos_color_ctrls)
$recommended = GUICtrlCreateLabel("(Default)",225,100+$pos_color_ctrls,80)
$l3 = GUICtrlCreateLabel("128",300,85+$pos_color_ctrls)
GUICtrlCreateGroup ("",-99,-99,1,1)
GUICtrlCreateLabel("Press F11 to toggle ON and OFF",10,280)
$on_off_display = GUICtrlCreateLabel("Status: OFF",290,280)
GUISetState (@SW_SHOW,$GUI)

While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        Exit
    Case $msg = $bColor
        SelectColor(1)
    Case $msg = $Radio_play1;very accurate
        $pixelradius = 4
    Case $msg = $Radio_play2;mid accurate
        $pixelradius = 16
    Case $msg = $Radio_play3;somewhat close
        $pixelradius = 32
    Case $msg = $check_match
        $isChecked = Not $isChecked
        If $isChecked = 1 Then
            GUICtrlSetState($slider,$GUI_DISABLE)
            GUICtrlSetState($l1,$GUI_DISABLE)
            GUICtrlSetState($l2,$GUI_DISABLE)
            GUICtrlSetState($l3,$GUI_DISABLE)
            GUICtrlSetData($slider,0)
        Else
            GUICtrlSetState($slider,$GUI_ENABLE)
            GUICtrlSetState($l1,$GUI_ENABLE)
            GUICtrlSetState($l2,$GUI_ENABLE)
            GUICtrlSetState($l3,$GUI_ENABLE)
        EndIf
    EndSelect
Wend

Func ChangeRangeBox();Changes the size of box in center of screen
    $left = @Desktopwidth / 2 - $pixelradius
    $top = @Desktopheight / 2 - $pixelradius
    $right = @Desktopwidth / 2 + $pixelradius
    $bottom = @Desktopheight / 2 + $pixelradius
EndFunc

Func RunBot();When F11 is pressed this is called
    If $isPaused = 0 Then
        ChangeRangeBox();Update scan box size
        Local $Color_Exact = BitAND(GUICtrlRead($check_match),$GUI_CHECKED)
        Local $mouseButton = BitAND(GUICtrlRead($Radio_LeftM),$GUI_CHECKED)
        Local $IsMouseHold = BitAND(GUICtrlRead($check_mHold),$GUI_CHECKED)

       ;=================== One Color ================
        If  $Color_Exact = 1 Then
            $matchColor = 0;If exactly is checked then set it to zero
        Else
            $matchColor = _GUICtrlSliderGetPos($h_slider);Else let color vary a little
        EndIf
       
        While $isPaused = 0;Keep running bot until F11 hotkey is pressed
            PixelSearch( $left, $top, $right, $bottom, $Color_Hex, $matchColor )
            If Not @Error Then
                If $mouseButton = 1 Then;If left mouse button is selected
                    If $IsMouseHold = 1 And Not _IsPressed("01") Then;If holding down MouseClick
                        Sleep(150)
                        MouseDown("left")
                        sleep(50)
                    Else;not holding down MouseClick
                        Sleep(150)
                        MouseDown("left");Assuming this is your primary fire
                        Sleep(50);make it work in game
                        MouseUp("left")
                    Endif
                Else;If right mouse button is selected
                    If $IsMouseHold = 1 And Not _IsPressed("02") Then
                        MouseDown("right")
                        sleep(50)
                    Else;not holding down MouseClick
                        MouseDown("right");Assuming this is your primary fire
                        Sleep(50);make it work in game
                        MouseUp("right")
                    EndIf
                EndIf
            ElseIf _IsPressed("01") Or _IsPressed("02") Then;Pixel Not found then reset stuff
                MouseUp("left")
                MouseUp("right")
            EndIf
            Sleep($refreshrate);Sync with monitor refresh rate
        WEnd
    EndIf
EndFunc

Func SelectColor($color_bg)
    Local $hex = _ChooseColor(2,$Color_Hex,2)
    If Not @error = -4 Then
        sleep(100)
        If $color_bg = 1 Then
            GUICtrlSetBkColor($display_Color,$hex)
            GUICtrlSetData($display_Color,$hex)
            $Color_Hex = $hex;Change hex color to trigger on
        EndIf
    EndIf
EndFunc

Func _PauseBot()
   $isPaused = Not $isPaused
   If $isPaused = 1 Then
       Guictrlsetdata($on_off_display,"Status: OFF")
       ToolTip("TriggerBot Off",100,50)
       sleep(1000);Only display for a second
       ToolTip("");^^
   ElseIf $isPaused = 0 Then
       Guictrlsetdata($on_off_display,"Status: ON")
       ToolTip("TriggerBot On",100,50)
       sleep(1000);Only display for a second
       ToolTip("");^^
       RunBot()
   Endif
EndFunc

Exit
Link to comment
Share on other sites

Does this work als someone ??

I dont get it ?? Can someone pls say where the:

Left

Top

Right

Botton

needs to be...

It need to be like this ??

(SC = Screen)

~~~~TOP

LEFT~SC~RIGHT

~~~~BOTTEM

If its wrong... Please send me a screenshot :)

And... This is working ???

And how can i know the colors :)??

I find out this ones by PhotoShop

CODE
[Colors]

1=0xc1c1c1

2=0xa0a0a0

3=0x989898

4=0x808080

5=0x888888

6=0x9c9c9c

7=0xa5a5a5

8=0xb6b6b6

9=0xdcdcdc

10=0xf4f4f4

[settings]

Run=1

Launcher=http://www.spele.nl/game/arkanoid/mobyblaster.html

Left=-551

Top=12

Right=-30

Bottom=428

Vary=50

Wait=1

Skip=10

CWait=0

PS

Sorry for all the questions ^^

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

You have

Left=-551

Top=12

Right=-30

Bottom=428

Think of a screen

0-------------------------------------1024

-

-

-

-

-

-

-

-

-

-

-

-

-

-

768

So, lets try

Left=300

Top=10

Right=800

Bottom=400

**** NOTICE**** NO NEGATIVE NUMBERS

0---------X Left---------------------X Right-------1024

-X Top

-

-

-

-

-

-

-

-

-X Bottom

-

-

-

-

768

... not sure what more I can say

Good luck

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

But

CODE

[Colors]

1=0xD4D4D4

2=0xD9D9D9

3=0xD1D1D1

4=0x878787

5=0xBBBBBB

6=0xD9D9D9

7=0xDCDCDC

8=0xDCDCDC

9=0xD1D1D1

10=0xD4D4D4

[settings]

Run=1

Launcher=http://www.spele.nl/game/arkanoid/mobyblaster.html

Left=300

Top=10

Right=-800

Bottom=400

Vary=50

Wait=1

Skip=10

CWait=0

Still wont work

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Sorry, but what you mean with NO NEGATIVE NUMBER ???

No number above the

0---------X Left---------------------X Right-------1024

-X Top

-

-

-

-

-

-

-

-

-X Bottom

-

-

-

-

768

And the game is:

http://www.spele.nl/game/arkanoid/mobyblaster.html

Sorry that I dont understand you but i'm Dutch :)

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

<h1 id="h1_contenttitel">Moby Blaster</h1>

thats cute, but this is designed to hit "targets"

...I'm not sure it will work with a "paddle" game, in fact it wont!

8)

So... I can only use the bot at the site where u gave us the example for the Curveball ?

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Can someone explain me how I can make the BOT for this game ?? (Or make one :))

http://www.albinoblacksheep.com/games/mindlessviolence

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Can someone explain me how I can make the BOT for this game ?? (Or make one :) )

http://www.albinoblacksheep.com/games/mindlessviolence

This got me to level 6... Then they changed colors ( went to gray )

[Colors]
1=0x00CC00
2=0x00CC00
3=0x00CC00
4=0x00CC00
5=0x00CC00
6=0x00CC00
7=0x00CC00
8=0x00CC00
9=0x00CC00
10=0x00CC00
[Settings]
Run=1
Launcher=http://www.albinoblacksheep.com/games/mindlessviolence
Left=106
Top=224
Right=910
Bottom=722
Vary=20
CWait=0
Wait=0
Skip=5

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

This got me to level 6... Then they changed colors ( went to gray )

[Colors]
1=0x00CC00
2=0x00CC00
3=0x00CC00
4=0x00CC00
5=0x00CC00
6=0x00CC00
7=0x00CC00
8=0x00CC00
9=0x00CC00
10=0x00CC00
[Settings]
Run=1
Launcher=http://www.albinoblacksheep.com/games/mindlessviolence
Left=106
Top=224
Right=910
Bottom=722
Vary=20
CWait=0
Wait=0
Skip=5

8)

Ty :P

It works only :)

It will search all exept the beasts at the right... but NP :)

I will shoot them myself :P

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Val this is incredible. I have one thing to ask however. Is there a way of making it in a minimized window mode? Or maybe like a Picture in Picture option where you set the window to Always on top and put it in a corner and use Control Click that way you could surf the net and bot at the same time.

Just some thoughts.

Edit : Also it lacks the pause ability - essential to most hacking so if you have a cutscene or a GM to deal with. But otherwise great.

Edited by AutoIt Smith
Link to comment
Share on other sites

hey valuater, i found your autoit 123 thing a real help when getting back into useing auto it, i used it a year or 2 back but its way different now with v3 and all, but i am trying to slightly modify your game bot builder for the game called tonti, basically instead of moving the mouse to a certian color, what i need to do is is a certian color is detected on 3x3 grid then hit key 1 if it is in space 1x1 or key 2 if its in1x2 and i mean 1x1 as row one section 1, 1x2 is row one space 2 etc...its basically based on the number keys on the number key pad like... 789 are the 1st row, 456 are the 2nd row, and 123 are the 3rd row...im having a few problems here and there with this... the link to the tonti game is...http://www.ebaumsworld.com/games/play/848/

is you could find the time just to show me how to make this work for the 1x1 spot, im sure i could duplicate the method for the rest of the grid...the game is sort of like a "whack-a-mole" type game...anyways thx alot man.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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