Jump to content

Trigger bot script for dod:S?


colors
 Share

Recommended Posts

Anyone have a idea how i could make a trigger bot script?

I was thinking somthing like fire if overcrosshair

(idk acually consle commands for this but)

player models = 1

if 1 = center screen

then +attack

Help plox

First of all,

Welcome to the forums! :)

Now about your problem, I actualy dont have any idea what your talking about. Give us a clear vision of what you realy need.

And did you already searched the forums for "botting"?

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

Hi "colors"

For what game is that bot? Knowing more of the mechanics should make clearer what you want.

It's in the title. DoD = Day of Defeat. S = Source (in the Valve world). So he's playing "Day of Defeat: Source".
Link to comment
Share on other sites

Anyone have a idea how i could make a trigger bot script?

I was thinking somthing like fire if overcrosshair

No.

(idk acually consle commands for this but)

player models = 1

if 1 = center screen

then +attack

Sounds like proper pseudocode.

Help plox

Plox? I had the chicken pox one time, is that similar?

Link to comment
Share on other sites

ahahahah :)

Guys, you really are too much.

Anyone have a idea how i could make a trigger bot script?

I was thinking somthing like fire if overcrosshair

(idk acually consle commands for this but)

player models = 1

if 1 = center screen

then +attack

Help plox

If the crosshair changes colour when you are aiming at an enemy you can do this way:

1. Take a print screen when aiming at the enemy

2. Paste it into paint

3. Use the AutoIt Window Info Tool to get the colour of your crosshair when aiming at the enemy

The way the code works is as such:

It looks for the colour of you crosshair whilst aiming, if it is red or whatever then it will click, if it isnt it will display a tool tip.

Func TriggerHappy()
While 1
$Co = PixelSearch(0,0,@DesktopWidth,@DesktopHeight,0x00CCFF) 
If not @error then 
MouseDown("Primary")
MouseUp("Primary")
else
tooltip("Not Aiming")
sleep(1500)
tooltip("")
wend
;You will need to replace 0x00CCFF  with the colour of ;your ;cross hair when aiming at an enemy. 
;You might want to replace @DesktopWidth,@DesktopHeight ;with the co-ordinates of your crosshair. 
;Use AutoIt Window Info Tool to help you with this! 
;You can press Ctrl+Alt+F to freeze the tool whilst your ;game is open to get some information.
Endfunc

That should get you started. But you need to build in a hotkey to activate this function, you also need to get the colour when you are aiming at the enemy as I stated earlier.

Look in the help file for the following: HotKeySet, PixelSearch.

Its really important you look at PixelSearch so that you understand the parameters, and thus, what you are actually doing.

Edited by BitByteBit
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...