Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 23:08

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

Advertisement



hi, problem with script need help !! [AutoIt]

Discussion on hi, problem with script need help !! [AutoIt] within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2007
Posts: 50
Received Thanks: 5
hi, problem with script need help !! [AutoIt]

hi, this is a script i got from coder i try to make it work on my game i changed values
Global $Paused
HotKeySet("{Home}", "TogPause")
HotKeySet("{END}", "TogExit")
WinWaitActive("CABAL2 - DX9")
WinMove("CABAL2 - DX9","",0,0)
$r=0

Do
auto_attack()
find_monster()
Until $r=1

While 1
Sleep(100)
WEnd
Func TogPause()
$Paused = Not $Paused
While $Paused
Sleep(100)
ToolTip('Script is "Paused"', 0, 0)
WEnd
ToolTip("")
EndFunc

Func TogExit()
Exit 0
EndFunc

Func auto_attack()
If PixelGetColor(999, 482) == 0xFFA800 Then ;Mob Attack HP full/Dying Mob
Do
Send("{1 down}")
Sleep(100)
Send("{1 up}")
Sleep(100)
Send("{1 down}")
Sleep(100)
Send("{1 up}")
Sleep(100)
Send("{3 down}")
Sleep(100)
Send("{3 up}")
Sleep(100)
Until PixelGetColor(999, 482) <> 0x700E03 ;Mob Attack HP Down
EndIf
EndFunc

Func find_monster()
If PixelGetColor(999, 482) <> 0x700E03 Then ;TAB No More Mob/Hp Down
Do
Send("{TAB down}")
Sleep(100)
Send("{TAB up}")
Sleep(100)
Until PixelGetColor(999, 482) == 0xFFA800 ;Change this for Specific Mob
EndIf ;TAB
EndFunc

it just spam tab and never attacks
mahmoudshepl is offline  
Old 08/26/2015, 19:46   #2
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
U need to change coordinates, this script cant find that color on that coordinates so it keep sending tab. U need to use Au3Info.exe in autoit folder to find coordinates that suit u and change this coordinates and color in scipt then it will work.
mlukac89 is offline  
Old 08/26/2015, 23:16   #3
 
elite*gold: 0
Join Date: Jan 2007
Posts: 50
Received Thanks: 5
Quote:
Originally Posted by mlukac89 View Post
U need to change coordinates, this script cant find that color on that coordinates so it keep sending tab. U need to use Au3Info.exe in autoit folder to find coordinates that suit u and change this coordinates and color in scipt then it will work.

it worked i made on new coord with new resolutions, thanks for replay
mahmoudshepl is offline  
Old 08/27/2015, 00:00   #4
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
No problem
mlukac89 is offline  
Old 08/28/2015, 20:27   #5
 
elite*gold: 0
Join Date: Jan 2007
Posts: 50
Received Thanks: 5
hi again bro
i failed allot of times to move in game or walk
i just need it to walk in game

here is code

Global $Paused
HotKeySet("{Home}", "TogPause")
HotKeySet("{END}", "TogExit")
WinWaitActive("CABAL2 - DX9")
WinMove("CABAL2 - DX9","",0,0)
$r=0

Do
auto_attack()
find_monster()
Until $r=1

While 1
Sleep(100)
WEnd
Func TogPause()
$Paused = Not $Paused
While $Paused
Sleep(100)
ToolTip('Script is "Paused"', 0, 0)
WEnd
ToolTip("")
EndFunc

Func TogExit()
Exit 0
EndFunc

Func auto_attack()
If PixelGetColor(504, 10) == 0xFFA800 Then ;Mob Attack HP full/Dying Mob
Do
Send("{1 down}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send("{1 down}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send("{1 down}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send ("{F}")
Sleep(150)
Until PixelGetColor(504, 10) <> 0xFFA800 ;Mob Attack HP Down
EndIf
EndFunc
Sleep (400)

Func find_monster()
If PixelGetColor(04, 10)<> 0xFFA800 Then ;TAB No More Mob/Hp Down

Do
Send("{TAB down}")
Sleep(100)
Send("{TAB up}")
Sleep(100)
Until PixelGetColor(504, 10) == 0xFFA800 ;Change this for Specific Mob
EndIf ;TAB
EndFunc
Sleep(300)
_Degree(_ATan2($targetY - $currentY, $targetX - $currentX)
Func _rotateLeft($ntimes)
AutoItSetOption("SendKeyDownDelay", $ntimes * 21)
Send("a")
EndFunc ;==>_rotateLeft
Sleep (300)

Func _rotateRight($ntimes)
AutoItSetOption("SendKeyDownDelay", $ntimes * 21)
Send("d")
EndFunc ;==>_rotateRight

Sleep(300)
mahmoudshepl is offline  
Old 09/20/2015, 07:41   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 60
Received Thanks: 39
mahmoudshepl
u will cant do that by autoit
u need to bypass xtrap first then used autohotkey
or
hook dirctx 9 then used autoit good luck bro
mahmoud_20000 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Problem with autoit script
07/24/2017 - AutoIt - 8 Replies
Hi all im new on this forum. First of all i got problem with this script, im making a bot for 1 game and bot will must do multi-tasks but i read that this can be done in autoit. My problem is when i want to use multiple tasks script become crazy :) I made few files, main (main bot and gui), buff(for buffing), cam(camera rotation), pick(for pick items), and now i need to put all that to work together without problems. here is piece of code that i have problem with ; main function for...
AutoIT Problem(e) mit meinem Bot Script
09/13/2013 - AutoIt - 6 Replies
Howdy, Ich fange an AutoIT mit learning by doing zu lernen. Da ich schon immer über einen Farmbot für ein MMORPG nachdenke und niemand sowas releast hat, will ich ihn selbst schreiben, da er auch recht simpel aufgebaut sein soll. Dieser in Zukunft 1. Bot von mir, soll zuerst mit einem Mausklick zu einer Monster-Route laufen, diese Monster töten, deren Gegenstände einsammeln, sich hinsetzen und regenerieren und dann das ganze von vorn. Problem hierbei, das ich einfach nicht weiß, wie...
Einfaches AutoIT Script Problem
08/24/2011 - General Coding - 6 Replies
Hey leute ;D Habe ein Problem gerade bei meinem Script . Es soll automatisch okay nicht so automatisch xD eine Email erstellen . Ich komme nicht bei dem Email namen weiter . Hier das Video das ich hochgeladen habe für euch : http://www.youtube.com/watch?v=eRiEzN8xjEk Mfg Die verarbeitung kan noch laufen deswegen kan das Video noch nicht klappen da ich alles schnell in 5 Minuten gamcht habe ich meine Soein Bot ist garnichts :P Edit : Das Passwort wiederholen Problem hab ich jetz...
[HELP] Problem bei autoit script
10/24/2010 - AutoIt - 8 Replies
Hey habn problem mim autoit script .. des startet die programme nich und die coords beim mouseclick machts i-wo oben links obwohl xampp unten rechts ist ^^ run ("C:\Dokumente und Einstellungen\***\Desktop\Portmap\Portmap.exe" ;) sleep ( 1000 ) run ("C:\Dokumente und Einstellungen\***\Desktop\XAMPP Control Panel.exe") MouseClick ( "left" ]) sleep ( 1000 ) MouseClick sleep ( 1000 ) run ("C:\Dokumente und Einstellungen\Dackupix3\Desktop\Pserver\Serverstar ter.vmc")



All times are GMT +1. The time now is 23:08.


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