Register for your free account! | Forgot your password?

You last visited: Today at 03:21

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

Advertisement



KIRA2 bot

Discussion on KIRA2 bot within the CO2 Bots & Macros forum part of the Conquer Online 2 category.

Closed Thread
 
Old 04/29/2007, 02:01   #61
 
elite*gold: 0
Join Date: Aug 2006
Posts: 11
Received Thanks: 0

VERY nice job!
Keep up the good work, +1k.
sparten is offline  
Old 04/29/2007, 07:21   #62
 
evanxxxm's Avatar
 
elite*gold: 20
Join Date: Oct 2006
Posts: 2,707
Received Thanks: 2,525
not sure if u need help but thats how my own bot works
*i changed met, DB, tokens, gems dds files to Pink
oh btw, i never release my bot cuz there are so many bots out there already
this reference is for discussion and learning only =)
Code:
; <COMPILER: v1.0.46.8>
Gui, Add, Text,, CObot - Evan
Gui, Add, Text,x10 y32 w80 h20, Press F3 after:
Gui, Add, Edit, x100 y30 w58 h20 vTime,30000
Gui, Add, Text,x10 y52 w100 h20, Put Pot on F1
Gui, Add, Text,x10 y72 w190 h20, Put XPskill on F10

Gui, Add, Text,x10 y110 w80 h20, Search range:
Gui, Add, Text,x10 y130 w80 h20, X:
Gui, Add, Text,x10 y150 w80 h20, Y:

Gui, Add, Edit, x25 y130 w40 h20 vXone,200
Gui, Add, Edit, x80 y130 w40 h20 vXtwo,800
Gui, Add, Edit, x25 y150 w40 h20 vYone,100
Gui, Add, Edit, x80 y150 w40 h20 vYtwo,600


Gui, Add, Text,x10 y190 w180 h20, *Default setting for 1024x768 mode
Gui, Add, Text,x10 y210 w190 h20, *Options > ShowNames

Gui, Add, Text,x10 y240 w190 h40, *Auto Atk,Mets,DB,heal,XPskill
Gui, Add, Button, x10 y282 w80 h20 vButton gStart, >Ok<

Gui, Show

return

Start:

Gui, Submit, Hide



WinGet,id, ID,[Conquer2.0]
gata := false
MsgBox, Press F11 to Pause


Sleep, 1000



Loop %Time%
{

  ControlClick, x480 y747,ahk_id %id%,,RIGHT
  Sleep, 100


;---------------------search for pink objects---------------------
  PixelSearch, outx, outy, %Xone%, %Yone%, %Xtwo%, %Ytwo%, 0xFF7AFF,5,Fast
  if ErrorLevel
  {
;---------------------search for HP bar to see if its red or not---------------------
  PixelSearch, aoutx, aouty, 30, 734, 37, 740, 0x8C7C67,2,Fast
  if ErrorLevel
  {
;---------------------search for mob's red health bar (small area near char)---------------------
PixelSearch, outx, outy, 460, 170, 560, 380,0x0303B8,,Fast
  if ErrorLevel
  {
;---------------------search for mob's red health bar (bigger area search)---------------------
PixelSearch, outx, outy, %Xone%, %Yone%, %Xtwo%, %Ytwo%,0x0303B8,,Fast
  if ErrorLevel
  {
  ControlClick, x480 y747,ahk_id %id%,,RIGHT
  Sleep, 500
  }
  else
  {
  Send {Shift Down}
  EnvAdd, outy, 25
  EnvAdd, outx, 15
  MouseClick, Left, %outx%, %outy%, 1
  Send {Shift Up}
  sleep, 1000
  }

  }


 else
  {
  Send {Shift Down}
  EnvAdd, outy, 25
  EnvAdd, outx, 15
  MouseClick, Left, %outx%, %outy%, 1
  Send {Shift up}
  sleep, 1000
  }

  }

else
  {
  ControlClick, x110 y747,ahk_id %id%,,RIGHT
  Sleep, 100
  }

  }

  else
  {
  MouseClick, Left, %outx%, %outy%, 1
  sleep, 1000
  }



}

  ControlClick, x200 y747,ahk_id %id%,,RIGHT
  Sleep, 1000

MsgBox, Done

return
*F11::Pause

return
evanxxxm is offline  
Old 04/29/2007, 07:38   #63
 
Tinytox's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 320
Received Thanks: 60
Quote:
@Tinytox want me to do something for it? like pick the gate position and then spam click and clyclone fkey?
Would you do that for me? alright sounds good do it! thx again bud +K again if it lets me :O
Tinytox is offline  
Old 04/29/2007, 07:43   #64
 
evanxxxm's Avatar
 
elite*gold: 20
Join Date: Oct 2006
Posts: 2,707
Received Thanks: 2,525
oh yea, are u interested in making a "auto talk" bot?
i have trouble using AutoHotKey to detect "text" in game
actually i am clueless which function i should use =_=

there must be something that can detect text because u know when u use "windowSpy", it detects everything
(i am surprise that CO is based on chinese version)

i dont play CO anymore, but i am sure that someone will want a auto respond bot

<hr>Append on Apr 29 2007, 07:46<hr> Tinytox:
i do have a NDtrain gw bot
i created it long time ago, all u need to do is stand on the right gw door and start the program
remember to take off ur rings and weapons =)





Code:
; &#60;COMPILER&#58; v1.0.46.8>


Gui, Add, Text,, ND gw trainner - 1280x768
Gui, Add, Text,x10 y22 w150 h20, Put F1 for ND&#58;

Gui, Add, Text,x10 y50 w190 h20, Press F11 to Stop
Gui, Add, Button, x150 y72 w60 h20 vButton gStart, Ok

Gui, Show

return

Start&#58;

Gui, Submit, Hide




WinGet,id, ID,&#91;Conquer2.0&#93;
gata &#58;= false
MsgBox, Press F11 to Pause



loop 
 {
sleep,1000


 ControlClick, x110 y760,ahk_id %id%,,RIGHT

sleep,500

 Send {Control down}

 Click 448, 294

 Send {Control up}
}



*F11&#58;&#58;Pause

return
evanxxxm is offline  
Old 04/29/2007, 08:20   #65
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
@evanxxxm
after reading ur code i can see we had the same idea of dividing the screen in differents areas, I mean, I have seen other bots and some of them have the problem of going to the upper left or just leave the monsters around the char to look for others since is using the method in rows top down (i think is the same as on autoit), i tried with columns left-right but the fast method seems to work "faster" lol

I like your code a lot, I'll have to check into my code to make it cleaner ^^
How did u learned AutoHotKey btw?

about the find text I found a function but i only was able to make it work with standard window programs like Notepad, didnt worked on conquer =/

I posted that somewhere on this forum lol Ill try to find the name of the function again (had something to do with controls anyway)

@Tinytox I was waiting ur anwser to make it but since evanxxxm already gave you a program I can go do something else lol
dont forget to give him the karma u promised to me ^^
hieitk is offline  
Old 04/29/2007, 09:08   #66
 
evanxxxm's Avatar
 
elite*gold: 20
Join Date: Oct 2006
Posts: 2,707
Received Thanks: 2,525
lol, the first time i created this bot has the same problem too
it keeps hunting for far mobs ........
so i was like, "omg, so stupid, cant it clicks for closer mobs first?" that gives me the idea that search for closer range mobs first.
it works fine with small spawns after that edit
then i figure out if i bot in large spawns, it sometimes will move ur character far far far away to another spawn.
so then i edited the option that u can input ur own searching area.
which if the spawn is on the right, i will input x=500-1024
(right side of the screen) so even if the character goes to the left a little, it will eventually go back to the right side.

i change the DB, met and tokens dds image to pink so the program doesnt need to have so many color searches.
evanxxxm is offline  
Old 04/29/2007, 09:48   #67
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
Quote:
Originally posted by evanxxxm@Apr 29 2007, 09:08
lol, the first time i created this bot has the same problem too
it keeps hunting for far mobs ........
so i was like, "omg, so stupid, cant it clicks for closer mobs first?" that gives me the idea that search for closer range mobs first.
it works fine with small spawns after that edit
then i figure out if i bot in large spawns, it sometimes will move ur character far far far away to another spawn.
so then i edited the option that u can input ur own searching area.
which if the spawn is on the right, i will input x=500-1024
(right side of the screen) so even if the character goes to the left a little, it will eventually go back to the right side.

i change the DB, met and tokens dds image to pink so the program doesnt need to have so many color searches.
lol, is rly cool the process of creating a bot because when u make the first code, u try it and then think just like you said "omg, so stupid" lol, but then you add some more code and start working better
my bot right now divide the screen into 3 sections, maybe ill try with only 2 and test what happens
When I was testing KIRA1 I left my char for 30 min on lab3 (looking what he was doing all the time)
Since it was a good spawn he was able to stay there all the 30 min xD (I stopped the bot to pick up a couple of mets though lol)

About db mets and tokens dds =P good idea, since mets and dbs have a blinking effect that change a bit the color every few seconds and to pick it up as they are now the loop have to search on the right positions at the right moment xD

well, I've been trying to go to sleep since 2 am xD but now ill finally turn off the computer lol

see you
hieitk is offline  
Old 04/29/2007, 10:21   #68
 
elite*gold: 0
Join Date: Apr 2007
Posts: 6
Received Thanks: 0
well i have probem with it
if i set everything
he attacks 1 time
then he just stands still
and then the program is saying please logg in before using....
stijnstijn is offline  
Old 04/29/2007, 16:59   #69
 
elite*gold: 0
Join Date: Nov 2005
Posts: 6
Received Thanks: 0
tell me what i am doing wrong here, i can get the bt to spam the sp skill and to autoheal, but the auto att part doesnt work

ive already tried the non-red armor/weapon solution.

however i noticed that the color i get when i set the color does not have the same color id as what exan posted with her script
ezo4q is offline  
Old 04/29/2007, 17:10   #70
 
pratik19's Avatar
 
elite*gold: 0
Join Date: Nov 2006
Posts: 209
Received Thanks: 95
i got the programme but it is not working
is it that it wont work wid the new patch
pratik19 is offline  
Old 04/29/2007, 17:56   #71
 
elite*gold: 0
Join Date: Apr 2006
Posts: 46
Received Thanks: 6
pratik19-works wid new patch =)
evil peeps is offline  
Old 04/29/2007, 19:14   #72
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
Quote:
Originally posted by stijnstijn@Apr 29 2007, 10:21
well i have probem with it
if i set everything
he attacks 1 time
then he just stands still
and then the program is saying please logg in before using....
like u can see on first post, KIRA2 is only beta, if you are having any problem with it please attach settings.ini file so I can test with your same configuration and see whats wrong.
Some other ppl seem to be able to use KIRA2 with no problems so I think maybe there is something wrong with your configuration.
Anyway you can always use KIRA1.

@ezo4q the default red color for hp bar is 0x0000BD (on KIRA2) since is BGR, you can change the color manually going to files/settings.ini
You will find everything there ^^

@pratik19Like evil peeps said, it works with the new patch, it only require configuration. Pixel bots like KIRA2 cant get patched by TQ.

Tonight I'll test the bot and change the code on the auto-attack part.
hieitk is offline  
Old 04/29/2007, 23:49   #73
 
elite*gold: 0
Join Date: Nov 2006
Posts: 46
Received Thanks: 1
is the first downloadable thing in da first post ok to download?
Chico_DooMsDaY_BeWaRe is offline  
Old 04/30/2007, 03:40   #74
 
elite*gold: 0
Join Date: Sep 2005
Posts: 98
Received Thanks: 1
I don't have the chance to test out the bot yet, but support for pot boxes would be excellent. For example, once the # of pots reaches a certain number (ie: 3), the bot presses another key to open a pot box, then uses the pot. This would be useful for people trying to level bot for longer periods of time, where loose pots run out too fast.
Virtue is offline  
Old 04/30/2007, 03:59   #75
 
elite*gold: 0
Join Date: Jun 2006
Posts: 49
Received Thanks: 0
Say you get pked, would it keep going around looking for mobs? that would be a dead giveaway for bottin. Any way u can like make it sit there for maybe 15 seconds, then hit revive, then maybe exit if that happens
Himura is offline  
Closed Thread




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


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.