Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 03:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to create your own bots/macros with AutoIt

Discussion on How to create your own bots/macros with AutoIt within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old 01/08/2010, 13:45   #121
 
Azothoras's Avatar
 
elite*gold: 0
Join Date: Feb 2006
Posts: 209
Received Thanks: 455
Quote:
Originally Posted by tommyboy1212 View Post
Hey, could someone please tell me how to make use autoit to make your character sit after spell and, click on another character like for auto sitg. Thanks
To make the character sit after a spell you have to either put the sit shortcut on an F-Key or make a keybinding to sit. Then just have autoit click the F-key or click the shortcut

Send("{^a}") ; This sends CTRL+a to the active window (makes you sit down if you have bound sit to CTRL+a)

Send("{F8}") ; This send F8 to the active window (makes you sit down if you have sit at F8)


Do not attempt this if you didn't even know the above. Go ahead and learn some more basic stuff first.


Click on another character to autostig him is ALOT harder because you need to know the position on the screen where the other char is and that is really tricky.

But if you want to auto stig yourself from another window you can read your coordinates and the other chars coordinates and turn them in to x and y mouse coord and right click where the char is. (This is just if you have both windows open on the same computer)
Azothoras is offline  
Old 04/19/2010, 07:00   #122
 
elite*gold: 0
Join Date: Nov 2007
Posts: 16
Received Thanks: 23
My bot works perfect except for 1 thing... when its jumping in its designated path and a monster gets in the way(clicks the monster instead of ground)it screws my whole bot up, what do i do? i can send you my script if you like
eseer is offline  
Old 04/19/2010, 08:49   #123
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
Quote:
Originally Posted by eseer View Post
My bot works perfect except for 1 thing... when its jumping in its designated path and a monster gets in the way(clicks the monster instead of ground)it screws my whole bot up, what do i do? i can send you my script if you like
try tell the bot that mouse press hatsh code floor
ax5 is offline  
Old 04/19/2010, 13:39   #124
 
elite*gold: 0
Join Date: Apr 2007
Posts: 906
Received Thanks: 1,431
Quote:
Originally Posted by eseer View Post
My bot works perfect except for 1 thing... when its jumping in its designated path and a monster gets in the way(clicks the monster instead of ground)it screws my whole bot up, what do i do? i can send you my script if you like
make it co-ordinate aware. when i used to make this sort of bot i used the excellent coelse source code for his co-ordinate aware striaght line path finder
Warlax is offline  
Old 04/19/2010, 19:38   #125
 
elite*gold: 0
Join Date: Nov 2007
Posts: 16
Received Thanks: 23
Quote:
Originally Posted by Warlax View Post
make it co-ordinate aware. when i used to make this sort of bot i used the excellent coelse source code for his co-ordinate aware striaght line path finder
how do i do that?
eseer is offline  
Old 04/20/2010, 10:58   #126
 
elite*gold: 0
Join Date: Apr 2007
Posts: 906
Received Thanks: 1,431
Quote:
Originally Posted by eseer View Post
how do i do that?
see the coelse source code
Warlax is offline  
Old 04/22/2010, 12:03   #127
 
elite*gold: 0
Join Date: Apr 2008
Posts: 25
Received Thanks: 1
Quote:
Originally Posted by emmanic26 View Post
ive made alot of bots using this. sh lvler, guard lvler, clicker, item seller, met spammer and etc. BUT I DONT UPLOAD IT AND SHARE IT COZ IM A NOOB AND THEY DONT TRUST MEH.!
Can you send ur bot like item seller to me at my email?? I hope to recieved your email soon..thx for sharing.

My email address is
ywy87 is offline  
Old 09/18/2012, 12:58   #128
 
sonybaci's Avatar
 
elite*gold: 0
Join Date: Aug 2005
Posts: 2,328
Received Thanks: 194
So i started to create myself a archer macro for lab1 spawn, so far i managed to sit and activate fly, and clicking the coords to the scattering area.

But my question is, what's the command for 1 right click(scatter) per second, for 28 secs? Then the macro will go back at the safe place, and the loop begins again. How can i do this?

Quote:
send("{F1}")
sleep(10000)
MouseClick(right)
sleep(50)
send("{F2}")
sleep(50)
MouseClick("left",651,311,2,2)
MouseClick("left",689,364,2,2)
Sleep(100)
sonybaci is offline  
Old 09/21/2012, 17:59   #129
 
elite*gold: 0
Join Date: Jul 2011
Posts: 82
Received Thanks: 12
Bumped...

Anyway :

Code:
$start = TimerInit() ; initializes the timer
While 1
     If TimerDiff($start) > 28000 Then ; if 28 sec been passed
          MouseClick("right",$x,$y) ; right click to your coord
          $start = TimerInit() ; timer intialized again
     EndIf
WEnd
Why do I use a timer, well, you don't block your code, such as sleep does. With my code, your script is still able to do whatever you want until he reached 28 sec...
itachi26 is offline  
Old 09/21/2012, 19:42   #130
 
Silent-Death's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 1,055
Received Thanks: 296
Quote:
Originally Posted by itachi26 View Post
Bumped...

Anyway :

Code:
$start = TimerInit() ; initializes the timer
While 1
     If TimerDiff($start) > 28000 Then ; if 28 sec been passed
          MouseClick("right",$x,$y) ; right click to your coord
          $start = TimerInit() ; timer intialized again
     EndIf
WEnd
Why do I use a timer, well, you don't block your code, such as sleep does. With my code, your script is still able to do whatever you want until he reached 28 sec...
but the man is talking autoit, so sleep would be his best bet
Silent-Death is offline  
Old 09/21/2012, 19:48   #131
 
elite*gold: 0
Join Date: Jul 2011
Posts: 82
Received Thanks: 12
Well, it's an AutoIt code. The problem is, when you use a sleep, your script really waits 28 seconds, so nothing can be done until it's reached. My code does not wait the 28 seconds, but when the time has been reached, then it does what he wants to do...

It's an AutoIt code, that can be easily configurable!
itachi26 is offline  
Old 09/21/2012, 20:34   #132
 
Silent-Death's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 1,055
Received Thanks: 296
idk.. been a while since i played around with autoit
Silent-Death is offline  
Old 09/21/2012, 22:11   #133
 
sonybaci's Avatar
 
elite*gold: 0
Join Date: Aug 2005
Posts: 2,328
Received Thanks: 194
Quote:
Originally Posted by sonybaci View Post
So i started to create myself a archer macro for lab1 spawn, so far i managed to sit and activate fly, and clicking the coords to the scattering area.

But my question is, what's the command for 1 right click(scatter) per second, for 28 secs? Then the macro will go back at the safe place, and the loop begins again. How can i do this?
Thanks for the help
sonybaci is offline  
Old 09/21/2012, 22:27   #134
 
elite*gold: 0
Join Date: Jul 2011
Posts: 82
Received Thanks: 12
Here ya go then :

Code:
$timer = TimerInit()
While 1
      MouseClick("right",$x,$y) ; right click (scatter)
      If TimerDiff($timer) > 28000 Then ; if 28 secs reached
           _GoToSafePlace() ; your function
           $timer = TimerInit() ; timer is now = 0
      EndIf
      Sleep(1000) ; we want to wait 1sec before sending another click
WEnd

Func _GoToSavePlace()

; your function which has to move your archer to your safe place

EndFunc
itachi26 is offline  
Old 10/09/2012, 16:27   #135
 
SaM.ThE.MaN's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 427
Quote:
Originally Posted by itachi26 View Post
Well, it's an AutoIt code. The problem is, when you use a sleep, your script really waits 28 seconds, so nothing can be done until it's reached. My code does not wait the 28 seconds, but when the time has been reached, then it does what he wants to do...

It's an AutoIt code, that can be easily configurable!

I know its been days since this was posted , but am gonna say this just incase some one is learning and finds this.

It doesnt matter if you use Sleep or TimerDiff() there since its in a loop , the script will be forzen anyways.
SaM.ThE.MaN is offline  
Reply


Similar Threads Similar Threads
[GUIDE] How to create Scripts/bots with AutoIT
09/22/2010 - Tutorials - 6 Replies
for all who want to learn something or create bots for browsergames, mmorpgs and other games download Autoit here: http://www.autoitscript.com/cgi-bin/getfile.pl?au toit3/autoit-v3-setup.exe Now run the Scite Script Editor this is where you type in your code, let check your code if errors are in it and compile it to executable exe file. the first thing you need are the coordinates of your mouse to find locations on the screen, like skill buttons, status bars, or just positions which...
(GUIDE)How to create own scripts/bots with AutoIt
11/19/2008 - Rappelz - 4 Replies
for all who want to learn something or create bots for browsergames, mmorpgs and other games download Autoit here: http://www.autoitscript.com/cgi-bin/getfile.pl?au toit3/autoit-v3-setup.exe Now run the Scite Script Editor this is where you type in your code, let check your code if errors are in it and compile it to executable exe file. the first thing you need are the coordinates of your mouse to find locations on the screen, like skill buttons, status bars, or just positions which...
learning how to create/write Bots/Macros
01/28/2006 - Conquer Online 2 - 8 Replies
Well I know that this is kind of off topic and a lot of people have been flamed by asking questions. I've tried a search and couldnt really find anything in english that i could actually read. Does anyone know any good sites or anything that a beginner could start learning how to create/write programs for bots and stuff like that? I'm learning how to write programs in VisualBasic at school but dont really know much. If anyone could supply any sites and stuff it would be awesome. thanks in...



All times are GMT +1. The time now is 03:59.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.