Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Cabal Online > Cabal Guides & Templates
You last visited: Today at 21:16

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

Advertisement



How to script a simple auto-bot [AutoIT]

Discussion on How to script a simple auto-bot [AutoIT] within the Cabal Guides & Templates forum part of the Cabal Online category.

Reply
 
Old 08/28/2010, 22:36   #106
 
elite*gold: 0
Join Date: Aug 2010
Posts: 11
Received Thanks: 1
Quote:
Originally Posted by calonlineFreak View Post
look at this here:



i found it while surfing. seems nice to lern coding as well...
This is no autoit you jerk...
pimel2 is offline  
Old 11/12/2011, 19:52   #107
 
elite*gold: 0
Join Date: May 2011
Posts: 1
Received Thanks: 0
anyone here can make a script of autopot the key is q...w...e...a...s...d so everytime i press the hotkey it floods qweasd in my screen thanks i will used it in ran online private server
damulagcarl is offline  
Old 11/17/2011, 12:23   #108
 
elite*gold: 0
Join Date: Oct 2008
Posts: 39
Received Thanks: 2
Mine code
Code:
Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Global $Paused

HotKeySet("{F12}","startover") ;i allocate to key F12 the function start over
;i do this because when i exit the game the auto-hunt might be too fast for me to stop
; so i'll just press F12 and it will be stopped
; also u can add any key u want F1-12, NumPad0-9 ... and so on

startover() ; i call that same function to run so i just won't have to press F12

Func startover();i declare it



$mobColorRed = "0xFF1F1E"
$mobColorYellow = "0xFEFE00"
$1mobColorYellow = "E0E91E"
$mobColorOrange = "0xFE8000"
$MobColorGreen = "0xC0BE40"
$MobColorGrey = "0x787878"
$1MobColorGrey = "0x8B8F8F"
$xTop = 30; i declare them
$yTop = 73
$xBot = 1802
$yBot = 892
$mobGreen = "0xC0BE40"; i also declare the mob color HERE

Sleep(6000)
while 1
$coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$MobColorGrey,$1MobColorGrey,105);i search for the green mobs
$n = @error
If NOT @error Then;if the mob is found
while $n = 0;while it is still in the screen
$x = Random($coord[0], $coord[0]+1040, 1);we randomize coordinates so we won't miss the mob
;since mobs have different shape and sizes
$y = Random($coord[1], $coord[1]+840, 1)
MouseClick("left", $x, $y, 2, 0); i click at the randomized coordinates
HotKeySet("{PAUSE}", "TogglePause")
sleep(3000)
$mm = PixelGetColor ( 799 , 11 ); i get the pixel color of that mob HP LIMIT
$mob = Hex($mm, 106);since the pixel i got is hex and PixelGetcolor function returns a decimal value i convert it
If $mob = "FFD26C" Then; HERE i compare the converted value i got from PixelGetColor in that point with the have i collected using AWI in the same point
ExitLoop; if it's a match (that means that the mob was selected)
;it will exit the loop and continue
EndIf
$coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$MobColorGrey,$1MobColorGrey,105);w e repeat the same pixel search
; the ideea is that the program will try to click the mob untill he is selected
$n = @error
wend
;in this moment we have the mob selected
If $mob = "FFD26C" Then ; HERE but we check it anyway
while $mob = "FFD26C" ; HERE so as long as the mob is selected
HotKeySet("{PAUSE}", "TogglePause")
Send("1"); we just send the skills from F4 to F1
Send("2"); chaotic i know but since we use speed hack
Send("3");adding waiting times will just be a waste of time
Send("4")

$mm = PixelGetColor ( 799 , 11 );we once again look for the mob's HP so we can complete the while loop
$mob = Hex($mm, 2);this means that the keys will be pressed untill the mob is dead
wend
Send("1"); we just send the skills from F4 to F1
Send("2"); chaotic i know but since we use speed hack
Send("3");adding waiting times will just be a waste of time
Send("4")
Send("{Space}"); after the mob is dead we collect the items
Sleep(200)
EndIf

;now remember the "IF NOT @error Then" from the start?
;what if there is no mob in the screen?
;what then?

Else;if no mob is found
Send("{Right 7}") ;rotate the camera to look in other directions
HotKeySet("{PAUSE}", "TogglePause")
Endif
Wend


Endfunc ;and i end it

while 1; it will just keep the program in stand by untill the function is called
; useless in our case since we called the function automatically but it's good for u to know it
	sleep(1000)
WEnd
Any clues to get it working ? Its clicking randomly but dont pick monsters even if i clik it then doesn't attack


Edit;
Ok i get it working a little but the problem of recognizing mob colours is still exist.
I guess this is due to transpraent mob names.
obieq is offline  
Old 12/15/2011, 01:20   #109
 
elite*gold: 0
Join Date: Dec 2011
Posts: 8
Received Thanks: 0
is this working in CABAL PH?
tano1221 is offline  
Old 12/20/2011, 16:50   #110
 
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 0
Pictures don't works ;(
idiota2 is offline  
Old 02/23/2012, 09:23   #111
 
geosnuk's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 263
Received Thanks: 52
can some one do this 4 cabal ph?auto loot will be nice too
geosnuk is offline  
Old 03/04/2012, 13:35   #112
 
elite*gold: 0
Join Date: Mar 2012
Posts: 21
Received Thanks: 10
made some changes but script work thx
GaminG00 is offline  
Thanks
1 User
Old 05/28/2012, 13:13   #113
 
mjmelencio14's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 23
Received Thanks: 0
Hey why i can't see the screenshots? Broken Link. Can someone help me?
mjmelencio14 is offline  
Old 06/12/2012, 10:40   #114
 
strontklit's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 220
Received Thanks: 117
Quote:
Originally Posted by geosnuk View Post
can some one do this 4 cabal ph?auto loot will be nice too
This is a guide on how to do it yourself, so you gotta read it and then script it yourself!
strontklit is offline  
Old 06/12/2012, 22:36   #115
 
geosnuk's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 263
Received Thanks: 52
sorry sir^_^ imjust still learning tnx
geosnuk is offline  
Old 06/16/2012, 13:54   #116
 
genesisVI's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 796
Received Thanks: 434
sir pls enlighten me on the hotkey code it always says error on calling func
genesisVI is offline  
Old 07/12/2012, 19:01   #117
 
osyris124's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 137
Received Thanks: 8
Can anyone share the complete codes here? The pre-made codes given by Dizzydbd is not working, it used to turn around and around.. i try to change the color hex code. but still nothing happens.. Can anyone share it here? thanks a lot!
osyris124 is offline  
Old 07/12/2012, 19:24   #118
 
elite*gold: 0
Join Date: Nov 2008
Posts: 16
Received Thanks: 0
try l its not as complete as the one here but it should work.

You can also try my its a bit more advanced but u don't get to practice and improve ur programming skills ..

Theres also option 3 of posting your code here, ill take a look and point you in the right direction..

ps. id go with option 3
ronaldgrn is offline  
Old 07/13/2012, 16:44   #119
 
bartbilf's Avatar
 
elite*gold: 10
Join Date: May 2008
Posts: 1,803
Received Thanks: 1,947
@ronaldgrn
don't spoonfeed them that much lol, just let them read and then they can make it themselves, else.. too bad, then can always buy CR if they don't want to put effort in reading and learning
bartbilf is offline  
Old 07/15/2012, 21:06   #120
 
elite*gold: 0
Join Date: May 2010
Posts: 16
Received Thanks: 1
Errrm... Just tried it but since there was Xtrap or GG on every server I couldnt really test it. I guess both Guides I found here are just for bypassed or unprotected Servers?
MyMyner is offline  
Reply


Similar Threads Similar Threads
Request Simple Auto Join War Script
06/24/2010 - 12Sky2 - 0 Replies
Hi im really not that well at coding in auto it , i was wondering if a more experienced player can make me a simple auto war join script , a continious one , thanks if this is possible , hope im not asking to much thanks guys
[Autologin] Simple autoit script
06/29/2009 - SRO Hacks, Bots, Cheats & Exploits - 44 Replies
Hey,the captcha system is out . So the ecsro minimised autologin script works on iSro too,now :) Source: Global $Paused $hWnd = WinGetHandle ("SRO_Client") HotKeySet ("{F10}","Start") HotKeySet ("{F9}","Pause")
NEED help making simple auto attack script
06/28/2008 - Lineage 2 - 0 Replies
I have walker 2.03 and i need help making a SIMPLE auto attack script. All i wanna do is target mod, attack, pick up items, target closest mod and repeat. I can add heals and all that stuff later just need help starting a basic combat script.
[Request] Simple AutoIt Script
06/26/2008 - Dekaron - 5 Replies
Hello, I'm looking for an autoit script that basically presses 1 2 3 4 5, one after the other every second continuously. Thanks in advance, EW.
need help making a simple autoit script
05/21/2006 - Silkroad Online - 2 Replies
hey guys, i wanna make a simple autoit script to press alt and tab every 2 mins...can anyone help me make a code for it? thnkz alot...my bot is wack, keep getting stuck in town and auto zerk dont work...so i wanna make a script tat does does 2 things to keep bot running and use zerk..



All times are GMT +1. The time now is 21:18.


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.