Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Cabal Online
You last visited: Today at 12:42

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

Advertisement



Need a little help with autoit

Discussion on Need a little help with autoit within the Cabal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 5
Received Thanks: 0
Need a little help with autoit

I'm just starting to learn Autoit and i need a little help. My first question is simple and i believe it is just a syntax error.

1. How do you load CABAL Online using autoit?
I have this for my script, what do i need to add/change.

RunWait("update.exe", "C:\\Program Files\\OGPlanet\\CABAL Online\\update.exe", @SW_MAXIMIZE)

2. How do you make the program heal you at a certain amount of hp or lower?
I'm not sure how to go about this, so please help.

Thanks
csshakka is offline  
Old 03/14/2008, 02:40   #2
 
elite*gold: 0
Join Date: Mar 2007
Posts: 29
Received Thanks: 23
Quote:
Originally Posted by csshakka View Post
I'm just starting to learn Autoit and i need a little help. My first question is simple and i believe it is just a syntax error.

1. How do you load CABAL Online using autoit?
I have this for my script, what do i need to add/change.

RunWait("update.exe", "C:Program FilesOGPlanetCABAL Onlineupdate.exe", @SW_MAXIMIZE)

2. How do you make the program heal you at a certain amount of hp or lower?
I'm not sure how to go about this, so please help.

Thanks
to heal by pixel just find a pixel of color on the black bar of ur HP bar
wherever you want it to heal, just lose ur hp n u can get the black bar color
you can see my script here


#include <GuiConstants.au3>
#NoTrayIcon
GUICreate("Cabal",150,100)
$start=GUICtrlCreateButton("Start Cabal",40,10);<-- start cabal

GUICtrlCreateLabel("F10 to start healing"&@CRLF&"F11 to exit",10,50)
HotKeySet("{F10}","start");<-- start healing HotKey
HotKeySet("{F11}","stop");<-- stop healing
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop

Case $msg = $start
Run("C:\Program Files\OGPlanet\CABAL Online\Cabal.exe");<------- change this to where you installed Cabal

EndSelect

WEnd
Func start()
WinWait("CABAL", "")
If Not WinActive("CABAL", "") Then WinActivate("CABAL", "")
WinWaitActive("CABAL", "")
$Color1 = PixelGetColor(132,28) ;<-- pixel of the black color on the HP bar
If $Color1 = 2105376 Then ;<---- color of the black colorat that pixel
$Color1 = 0
Send("0");<-- it will press 0 to heal if ur HP bar if the black color show on the pixel
Sleep(100)
EndIf
EndFunc
Func stop()
exit
EndFunc
camplesg is offline  
Thanks
1 User
Old 03/14/2008, 04:16   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 90
Received Thanks: 41
u really need all of that just for AUTO HP? LOL, Why do u need a GUI? and hotkeys? LOL, here it is a symple code for that!

Code:
While ProcessExists("cabalmain.exe")
    $coord = PixelSearch(60, 20, 100, 33, 0x2A2A2A)
    If IsArray($coord) = 1 &  Then
        Send("{-}")
    EndIf
    Sleep(100)  ----------> and put this everytime in the end of a while so it dont use 2 mutch PC %
WEnd
GRB is offline  
Thanks
1 User
Old 03/14/2008, 05:35   #4
 
elite*gold: 0
Join Date: Mar 2007
Posts: 29
Received Thanks: 23
Quote:
Originally Posted by GRB View Post
u really need all of that just for AUTO HP? LOL, Why do u need a GUI? and hotkeys? LOL, here it is a symple code for that!

Code:
While ProcessExists("cabalmain.exe")
     = PixelSearch(60, 20, 100, 33, 0x2A2A2A)
    If IsArray() = 1 &  Then
        Send("{-}")
    EndIf
    Sleep(100)  ----------> and put this everytime in the end of a while so it dont use 2 mutch PC %
WEnd
-.- it is my auto hp i just copy 4 him =P
camplesg is offline  
Old 03/14/2008, 06:46   #5
 
elite*gold: 0
Join Date: Nov 2007
Posts: 90
Received Thanks: 41
you can do alot of things with autoit, like make perfect inf. combos, and alot more things.
GRB is offline  
Old 03/14/2008, 20:40   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 5
Received Thanks: 0
Thanks for help.

Quote:
Originally Posted by GRB View Post
Code:
While ProcessExists("cabalmain.exe")
     = PixelSearch(60, 20, 100, 33, 0x2A2A2A)
    If IsArray() = 1 &  Then
        Send("{-}")
    EndIf
    Sleep(100)  ----------> and put this everytime in the end of a while so it dont use 2 mutch PC %
WEnd
I have one question though, to make this script not use a hp pot every time your bar budges downwards, do you just set the script to look for the black/dark color within a box near the center or wherever % of health you want?
csshakka is offline  
Old 03/16/2008, 02:28   #7
 
elite*gold: 0
Join Date: Nov 2007
Posts: 90
Received Thanks: 41
that will search for the black bar when it reaches the 25% and if found it will use the HP pot!
GRB is offline  
Old 01/02/2009, 05:38   #8
 
elite*gold: 0
Join Date: Dec 2008
Posts: 2
Received Thanks: 0
Question Help with autoit script

Hi !

Please Friends Help Me
im newbe working with auto it

i want script with auto heal when my life take 50%
and auto pick up i pick up with key space bar start with "F6"
and activate with "F7" = stop and "F8" = Start


my resolution for play is 800 x 600
this options only
please help Friends !

sorry for my bad english

Very Thanks !!!
Xalexanderx is offline  
Old 01/02/2009, 13:16   #9
 
d'Jew's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 2,125
Received Thanks: 670
03-16-2008, 03:28 don't bump up old threads ... and you can ask your questions here :
d'Jew is offline  
Reply




All times are GMT +1. The time now is 12:45.


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.