Jump to content
Sign in to follow this  
colors

Trigger bot script for dod:S?

Recommended Posts

colors

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

Share this post


Link to post
Share on other sites
AlmarM

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.

Share this post


Link to post
Share on other sites
memoryoverflow

Hi "colors"

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

Edited by memoryoverflow

(The signature is placed on the back of this page to not disturb the flow of the thread.)

Share this post


Link to post
Share on other sites
AdmiralAlkex

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".

Share this post


Link to post
Share on other sites
memoryoverflow

It's in the title...

I'm not a gamer so don't know these abbreviations - now waiting for Volly's comments.

(The signature is placed on the back of this page to not disturb the flow of the thread.)

Share this post


Link to post
Share on other sites
weaponx

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?

Share this post


Link to post
Share on other sites
BitByteBit

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.