Here Is a Simple Bot

02/23/2008 05:13 Bobs16#1
edit by St!gmata: Itīs only for Cabal North America because there exist now a bypass.

Like the title reads real simple bot. I do not like the pixel detection to much because it is too slow for me. So the idea behind this bot is that you make the monsters come to you (so pick a spot where they go after you). Then you just click the monsters around you and attack them 1-4 and Spam HP potions on 6. This is Autoit simply copy the code below save as Name.au3 and then double click it on your desktop. Wrote this pretty fast so ask me any questions and I am currently working on a combo bot and a faster pixel bot updates soon.

Code:
While 1
If WinActivate("CABAL") Then
	MouseClick("left")
If Not @error Then
  Sleep (50)
	EndIf
	Send("{Right 4}")
Send("1")
Sleep(50)
Send("2")
Sleep(50)
Send("3")
Sleep(50)
Send("4")
Send("{Right 4}")
Sleep(50)
Send("{Space}")
Sleep(50)
Send("6")
Send("{Space}")
Send("{Right 4}")
 	If Hex(PixelGetColor(337, 659),6) = "232223" Then
  Send("{Enter}")
  Sleep(100)
  Send("{Up 20}")
    Send("{Down 4}")
   	EndIf
If Hex(PixelGetColor(100, 44),6) = "1C1C1C" Then
	Send("9")
	EndIf
EndIf
WEnd
02/23/2008 05:17 wossen#2
wow thanks and also do you mind teaching me how to make these scripts?
02/23/2008 05:21 Bobs16#3
Trial and error. Also Autoit forums help a lot as well.
02/23/2008 06:38 Zeleran#4
it doesn't click the monsters, do I need to get the winactive program or something?
02/23/2008 06:47 Bobs16#5
Quote:
Originally Posted by Zeleran View Post
it doesn't click the monsters, do I need to get the winactive program or something?
It does not specifically click monsters it spams click so as the screen rotates have the cursor on you or around you so when the monsters are near you it clicks them. Was just using it for 3+ hours so I know it works. And Winactive? If you read the script it is already codded to run when the CABAL is running. ALso this is probably only for NA/CN version unless you have a GG bypass for EU. Message me back if this did not help.
02/23/2008 07:04 takerslair#6
Hey some things wrong, i runned Cabal bypassin X-trap, logged in Picked a good spot, runned the Autoit, i wont work. I copied the same script. Any ideas why? Im using Vista is that it maybe?
02/23/2008 07:48 Zeleran#7
Is there any way to make it more effective? Like...not stopping on key 4, and just keep cycling through the keys? Also maybe having it rotate faster? No clue. It seems to be half as effective as it would be if I were playing myself.
02/23/2008 09:19 screamseller#8
It does nothing. I think I didnt bypassed Xtrap. Or does it for NA version?
02/23/2008 12:04 DeadBabies#9
it works!! thx, now i just need autopot when i get to 50% health left

neone mind sharing where i can get it? i searched for it, cant find nething...
02/23/2008 13:00 Noxox#10
I believe it doesn't work with EU version :'(
02/23/2008 14:30 vi0l3nt#11
Nope doesnt work with GG protected versions
02/23/2008 18:54 kenv202#12
can u explain this line to me?

If Hex(PixelGetColor(337, 659),6) = "232223" Then

so i can slowly modify it to fit my neeed XD thnxs
02/23/2008 19:31 Bobs16#13
Quote:
Originally Posted by kenv202 View Post
can u explain this line to me?

If Hex(PixelGetColor(337, 659),6) = "232223" Then

so i can slowly modify it to fit my neeed XD thnxs
Ya sure If the color pixel in Hex format 232223 "shade of black" is found at coordinates (337,659) Then

Kind of useless in this bot so you can take i off. Glad to see people wanting to teach themselves Auoit. I am going to re do this script so you wont DC near as much and it is a lot cleaner. So if you have any script post them here for us to see.


Edit: Here is what I have learned so far. To shed some knowledge on you all.

Pixel searching:
Code:
 = PixelSearch (5, 300, 1024, 560, 0xF6F6F6, 30, 4)
Here you are searching for a pixel right? Well ya you already know that by "PixelSearch" but what does the rest mean? Let me break it down for you first look at the numbers 5, 300, 1024, 560 all this is saying is Searches from coordinates 5, 300 to 1024, 560 so we can easily adjust this to fit our needs. The 0xF6F6F6 is just looking for that pixel you can change this by useing the Autoit Spy Window. Now last but not least the 30, 4. The 30 is how many shades would you like it to look for so its not EXACTLY 0xF6F6F6 it can be a little lighter or darker. The higher the number the faster it goes but may not be too specific. The lower the number slower it will search but the more specific it will be. The 4 just means it search ever 4th pixel instead of every pixel because there are A LOT of pixels on your screen.

Pixel Searching and then a mouse click:
Code:
Dim , , , 
Dim , , , , , , 

 = RegRead("HKEY_CURRENT_USERControl PanelMouse", "SwapMouseButtons")
If  = 1 Then
	 = "right"
	 = "left"
Else
	 = "left"
	 = "right"
EndIf

; ************************************************* ;
; Change your settings here                         ;
; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv ;
 = "{ESC}"
 = 0xff00ff
 = 0
 = 0
 = 200
 = 200
 = 
; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ;
; Change your settings here                         ;
; ************************************************* ;

HotKeySet(, '_Exit')

While 1
	 = PixelSearch(, , , , )
	If Not @error Then
		MouseClick(, , , 1, 0)
	EndIf
WEnd

Func _Exit()
	Exit
EndFunc
I think the CODE codes are broken wont let me post 90% of that last code.
02/23/2008 20:26 kenv202#14
hm i notice that pixel detection is a bit hard since say for example, if u were to go to moscutter in GD, u will notice the ground color is almost the same as the mob, which is what make this color deteciton business so hard, i do recall an easier way was to mod the game to force all the mob u see in a certain color (ex: pink), anyone has any experience in doing this color modding? would greatly further the bot scripting =P

PS: i cant wait to see ur clean and improved script bobs16, and im glad someone like you are willing to share with the community =)
02/23/2008 20:35 Bobs16#15
Quote:
Originally Posted by kenv202 View Post
hm i notice that pixel detection is a bit hard since say for example, if u were to go to moscutter in GD, u will notice the ground color is almost the same as the mob, which is what make this color deteciton business so hard, i do recall an easier way was to mod the game to force all the mob u see in a certain color (ex: pink), anyone has any experience in doing this color modding? would greatly further the bot scripting =P

PS: i cant wait to see ur clean and improved script bobs16, and im glad someone like you are willing to share with the community =)
It is not THAT hard just a little trial and error. All you need is time on your hands look at the post above that should help you out as well. And the changing monsters colors is exactly what I was thinking 15 mins ago so I will try to do that later because that should be easy. I can't really do anything right now because I am at work.