Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Cabal Online
You last visited: Today at 10:35

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

Advertisement



Simple bot + Editing Tips

Discussion on Simple bot + Editing Tips within the Cabal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2005
Posts: 10
Received Thanks: 2
Simple bot + Editing Tips

Alright, here is my code that I've been using for a while. It includes regeneration buff, check for yellow mob, healing pots, check if mob is dead.
My settings are Gamma - 1, 1024x768, windowed mode maximized. To use my macro you may need to change all of the coords and colors.
Tool needed for editing:

Whole Code:
Code:
;Macro Start
While 1
If WinActivate("CABAL") Then
If Not @error Then
  Sleep (50)
	EndIf

If PixelGetColor(1414, 235) = 0x896021 Then	;Buff Duration Icon
	Sleep 50
	Else
	Send("4")
	EndIf


 = PixelSearch (94, 97, 1267, 699, 0xD9E220, 20, 4)	;Check for Yellow Mob
If Not @error Then
	MouseClick ("Left", , )
	Sleep(50)
	EndIf
	While PixelGetColor(570, 47) = 0xFE8502	;Check if Mob is still alive
		Send("1")
		Sleep(50)
		Send("2")
		Sleep(50)
		Send("3")
		Sleep(50)
		Send("{Space}")
		Sleep(50)
		 	If PixelGetColor(141, 55) = 0x1D1D1D Then		;Check Health
				Send("6")
			EndIf
		WEnd
	
EndIf
WEnd
Now lets break it down,

1. Regeneration Buff:

Code:
If PixelGetColor(1414, 235) = 0x896021 Then	;Buff Duration Icon
	Sleep 50
	Else
	Send("4")
	EndIf
What it does: First it checks for the color of the Buff icon under the compass. If the Icon is not there, then it casts the buff. If you want to add other buffs then just copy this code and past it right under it. Use the Getpixelcolor program to get the color and the coords and replace mine.

Check for Yellow Mob:
Code:
 = PixelSearch (94, 97, 1267, 699, 0xD9E220, 20, 4)	;Check for Yellow Mob
If Not @error Then
	MouseClick ("Left", , )
	Sleep(50)
	EndIf
What it does: First it searchs your screen for any yellow color. The pixel search code is like this PixelSearch (Left,Top,Right,Bottom,color, color shade deviation,skip pixels). The next part of the code grabs the coords of the yellow color, moves the mouse there, and left clicks. Sometimes, however, clicking the yellow name of the monster does not work so you have to find how to best angle your screen for the clicking, depending on the monster. I've found that zooming out all the way and looking straight down at the ground works the best for me... And again, you may need to change the color, so load up getpixelcolor.exe and find the color of the monsters name.

Attack Sequence:
Code:
	While PixelGetColor(570, 47) = 0xFE8502	;Check if Mob is still alive
		Send("1")
		Sleep(50)
		Send("2")
		Sleep(50)
		Send("3")
		Sleep(50)
		Send("{Space}")
		Sleep(50)
		 	If PixelGetColor(141, 55) = 0x1D1D1D Then		;Check Health
				Send("6")
			EndIf
		WEnd
What It Does: First, I have it check if the mob is still alive. It does this by checking whether the color of the very left of monster's health bar is still red. If it is, it continues the loop of the attack sequence. If not, the macro restarts at the top. It then goes on to attack,loot, and check your hp. You may only have to change the color for the HP pot part depending on when you want it to pot. I have it use the potions as soon as your health gets lower than the numbers in the middle of your health bar. It does this by checking whether or not that point is black yet or not.

What if I want it to attack orange monsters too?: Just copy/paste the check for yellow mob code and the attack sequence code right under the first attack sequence and before the last "EndIf" and "Wend". Then change the pixel color in the "PixelSearch" command to the mobs orange colored name. Same goes for Red mobs or any other colors.

What if I want to use more attack keys?: In the attack sequence add the code:
Code:
Send("X")
Sleep(50)
and replace "X" with the corresponding number.

Thank You everyone on the forum, reading about your stuff has helped me learn more about AutoIt, something I've never used before.



**INFO**: It refuses to let me put $Coord in the code brackets... The "search for yellow mob" should be:

$Coord = PixelSearch (94, 97, 1267, 699, 0xD9E220, 20, 4) ;Check for Yellow Mob
If Not @error Then
MouseClick ("Left", $Coord[0], $Coord[1])
hooba is offline  
Old 02/25/2008, 06:42   #2
 
elite*gold: 0
Join Date: Jan 2005
Posts: 10
Received Thanks: 2
Ah, this is AutoIt btw, sorry.
hooba is offline  
Old 02/25/2008, 07:05   #3
 
elite*gold: 0
Join Date: Sep 2007
Posts: 154
Received Thanks: 54
Check out my bot, does all this with input settings table for % Hp and color search choose.
leggojake is offline  
Old 02/25/2008, 07:07   #4
 
elite*gold: 0
Join Date: Jan 2005
Posts: 10
Received Thanks: 2
Will do, was just breaking it down to possibly help some others understand some things
hooba is offline  
Old 02/25/2008, 08:07   #5
 
yaoyeng's Avatar
 
elite*gold: 20
Join Date: May 2006
Posts: 734
Received Thanks: 164
this will work for any version of Cabal or only NA?
yaoyeng is offline  
Old 02/25/2008, 09:45   #6
 
elite*gold: 0
Join Date: Nov 2007
Posts: 29
Received Thanks: 2
This don`t work Cabal EU.Open Autoit Script Write convert exe. THis Error

mc_speed is offline  
Old 02/25/2008, 15:01   #7
 
elite*gold: 0
Join Date: Jan 2005
Posts: 10
Received Thanks: 2
This script just uses pixel searching, mouse clicks, and key presses so it should work with EU although you probably will need to change the colors. Maybe you wont have to change the colors, I have no idea.

@mc_speed: Here, download it already written as au3 script. Putting the code in the code brackets in the first post messed up part of it.
Attached Files
File Type: rar easybot.rar (447 Bytes, 92 views)
hooba is offline  
Old 02/25/2008, 17:01   #8
 
elite*gold: 0
Join Date: Feb 2008
Posts: 236
Received Thanks: 112
This bot clicks monsters that is it. And a tip I am pretty sure pixsearch can only click monsters not send keys. and the problem with Pixel get color is that it only looks for that 1 color. Everyones pixels are different you need shades and pixelsearch does that.
Bobs16 is offline  
Old 02/25/2008, 21:37   #9
 
elite*gold: 0
Join Date: Jun 2007
Posts: 412
Received Thanks: 21
wait does Eu used gameguard? or xtrap im confused..

nvm got my answer

oh ya and btw the getpixel 2.1 would only get me #000000 for everything within the cabal window
sinx000 is offline  
Old 02/25/2008, 22:15   #10
 
elite*gold: 0
Join Date: Dec 2007
Posts: 80
Received Thanks: 61
Idk why, but i get an Error i copied and pasted the script exactly, wont work tho.
takerslair is offline  
Old 02/25/2008, 22:18   #11
 
elite*gold: 0
Join Date: Jun 2007
Posts: 412
Received Thanks: 21
take a screenshot of the error

btw im pretty sure autoit doesnt work in EU or kr cabal.. since they both used gameguard.. plus i read a ton of other forums.. stating that gameguard disable all functions of autoit scripts.. is this truE?
sinx000 is offline  
Old 02/25/2008, 22:21   #12
 
elite*gold: 0
Join Date: Dec 2007
Posts: 80
Received Thanks: 61
Line -1:


Error:Unable to parse line.
takerslair is offline  
Old 03/02/2008, 01:59   #13
 
elite*gold: 0
Join Date: Mar 2008
Posts: 95
Received Thanks: 4
its flawed, but usable. two thumbs up thnx
TestingXD is offline  
Reply


Similar Threads Similar Threads
[Guide] Tips for trying to avoid simple HackShield detection
03/09/2015 - SRO Guides & Templates - 7 Replies
About: As of recently, Hackshield has been detecting a lot of tools. While there are many ways for this to be done, Hackshield currently uses very simple methods for Silkroad. This could change at any time, but for now they seem to be using a really simple protection mode. In this guide, I will go over two approaches that can help, but are not permanent solutions to avoiding Hackshield detection in the most commonly used and detected tools. ResHack: Download: ResHack Version 3.4.0 ...
Simple Tips For All The New People To use
03/26/2010 - EO PServer Hosting - 1 Replies
#1. use teh search button. Remember the search button is your friend. If that fails then check ibeatuall's release thread and see if you can find the answer to your question there. Then if you cant Make a post. #2. After doing all the searching and finding out you have to make a post please put a brief description for the title like Msg Server Shuts Down. The title is clear and percise and lets other uses know what is going on. #3. USE FULL SENTENCES AND SPELLING. alot of you start...
Simple questions, simple answers :)
11/09/2009 - Kal Online - 2 Replies
Hello guys :) I've been reading this forum for a while, and I found very nice information here but still, some threads in german can't provide me whole knowledge I'm looking for, that's why I'm asking some questions :) 1. kiki uce - is it working on windows xp/vista ? 2. I'm willing to check that on my own, but maybe somebody knows that already - will store hack (http://www.elitepvpers.com/forum/kal-online/300254 -tutorial-money-bug-store-hack.html) work on R3volution server ? There's GBL v2...
Simple Question Needs Simple Answer[If CR gone what bot we can use]
08/08/2008 - Cabal Online - 2 Replies
If CR is not free what BOT can we use in PH... Many players in Ph asking that question.... TY...



All times are GMT +1. The time now is 10:35.


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