Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:19

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

Advertisement



GF bot (autoit, help)

Discussion on GF bot (autoit, help) within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2009
Posts: 58
Received Thanks: 3
GF bot (autoit, help)

this is a gf grinding bot that searches if ur in combat or not and depending on that it atacks. and i need help .lol

Quote:
WinWaitActive("Grand Fantasia")

Global $UnPaused
HotKeySet("{F12}", "TogglePause")
HotKeySet("{F11}", "Terminate")



;===================HOTKEYS======================= =========================
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc

Func Terminate()
Exit 0
EndFunc

;==================ATTACKS======================== =========================
Func tabatk() ; NEED HELP WITH THIS HERE
Sleep(500)
Send("{TAB}")
Sleep(1000)
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ; 1
If Not @error Then
Send(3)
Sleep(1750)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1) ; 2
If Not @error Then
Send(4)
Sleep(1750)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;3
If Not @error Then
Send(2)
Sleep(1000)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1); 4
If Not @error Then
Send(5)
Sleep(8500)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;5
If Not @error Then
Send(4)
Sleep(1750)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;6
If Not @error Then
Send(2)
Sleep(1000)
EndIf

Sleep(750)
EndFunc


Func no_tabatk()
Sleep(1000)
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ; 1
If Not @error Then
Send(3)
Sleep(1750)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1) ; 2
If Not @error Then
Send(4)
Sleep(1750)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;3
If Not @error Then
Send(2)
Sleep(1000)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1); 4
If Not @error Then
Send(5)
Sleep(8500)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;5
If Not @error Then
Send(4)
Sleep(1750)
EndIf

$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;6
If Not @error Then
Send(2)
Sleep(1000)
EndIf

Sleep(750)
EndFunc

;====================MAINLOOP===================== =
while 1
$coord = PixelSearch(639,14,729,26,0xFF0000,1)
If Not @error Then
no_tabatk()
Else
$coord = PixelSearch(639,14,729,26,0xFF0000,1)
If @error Then
tabatk()
EndIf
EndIf
Send(7)
Sleep(1850)
WEnd
in the functions the ones for attacks, it takes its time to go through every single one of the attacks, i want it to search if the monster is selected then attck,if its still alive attack,and if the monster is not selected end the func instead of reading the attacks that follows, confusing me...

also
i made a picxelbased auto MP-HP- and summon hp, i want it to be memory based but have no clue on how to do so!
here is what i got so far
Quote:
Global $UnPaused
HotKeySet("{HOME}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

;=========Functions=============================== ==========
Func TogglePause()
$UnPaused = NOT $UnPaused
While $UnPaused
ToolTip("Sending...",0,0)
WEnd
EndFunc

Func Terminate()
Exit 0
EndFunc
;===============================CHECK============= ======================

While 1
$coord = PixelSearch(144,34,144,34,0xFFAEA5,1) ; hp value for
If @error Then
Send("{-}")
EndIf
$coord = PixelSearch(144,47,144,47,0xB5BEFF,1) ; mp value for
If @error Then
Send("{=}")
EndIf
$coord = PixelSearch(250,29,250,29,0x6B5844,1) ; hp value for summon/ lich, use skill
If Not @error Then ; if u dont need it delete this
Send("0")
EndIf
Sleep(1000)
WEnd
lol i think am asking for too much but one last thing, i swear its the last!! lol
i want to controlsend the keys to the game when its inactive but it doesnt work!
Quote:
;just a test
While 1
$handle = WinGetHandle("classname=DJO_CLASS", "")
If @error Then
MsgBox(4096, "Error", "Could not find the correct window")
Sleep(2000)
Else
ControlSend($handle, "", "", "{TAB}")
ControlSend($handle, "", "", "2")
Sleep(1500)
EndIf
WEnd
&
Quote:
; get window handle
$sTitle = "Grand Fantasia"
WinWait($sTitle)
$hWin = WinGetHandle($sTitle)

ControlSend($hWin, "", "", "{ENTER}this still doesnt work, lol{ENTER}",0)
both dont work, any help i will greatly appreciate.
zhadow32 is offline  
Old 02/07/2010, 18:17   #2
 
elite*gold: 0
Join Date: Dec 2009
Posts: 395
Received Thanks: 94
Nest your If statements.

Example of logic:

Code:
search
If found Then
     do something
Else
    search
    If found Then
        do something
        Else
    EndIf
EndIf
I presume by memory based you want to pull the values from memory so that you have proper values without having to do pixel search. I believe there's some discussion on that on the forum somewhere, AutoIt comes with memory.au3 and you can include that and use it to read an applications memory. You'll also have to find the right information with an application like Cheatengine to make that worthwhile. If there's no discussion here I'm pretty sure there's some on the AutoIt forums.

I presume by not working it just doesn't do what you want and it doesn't throw an error? I'd assume the application is capturing all keys and it won't work. If you find an mmo where controlsend and other functions work I'd play it just to bot it since you could then bot without the window being active.
Theri is offline  
Old 02/07/2010, 21:57   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 58
Received Thanks: 3
Ok Ty very much for the example codes, and advice, I searched around and saw how to use memory, well atleast the example, haven't tried it yet. Also I have each seperate scipt as diff exe how can put all my scripts into one?
zhadow32 is offline  
Old 02/16/2010, 19:15   #4
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
Quote:
Originally Posted by zhadow32 View Post
Ok Ty very much for the example codes, and advice, I searched around and saw how to use memory, well atleast the example, haven't tried it yet. Also I have each seperate scipt as diff exe how can put all my scripts into one?
Try memory i hop it will work for you
ax5 is offline  
Old 02/17/2010, 00:22   #5
 
elite*gold: 0
Join Date: Jul 2006
Posts: 233
Received Thanks: 112
I posted the memory section of my bot in the other topic, guess you didn't see :P.

FeonDust is offline  
Old 02/20/2010, 12:52   #6
 
elite*gold: 0
Join Date: Jan 2010
Posts: 14
Received Thanks: 3
may i noe where can i get those grinding bot?
ill appreciate if u can share some with us

thank you
defution01 is offline  
Old 02/21/2010, 04:41   #7
 
elite*gold: 0
Join Date: Mar 2009
Posts: 58
Received Thanks: 3
Quote:
Originally Posted by defution01 View Post
may i noe where can i get those grinding bot?
ill appreciate if u can share some with us

thank you
i need some help, if someone can pls test this in their pc and tell me if its reading the MP and HP value correctly
Attached Files
File Type: rar GF mem read.rar (280.8 KB, 210 views)
zhadow32 is offline  
Old 02/21/2010, 15:18   #8
 
elite*gold: 0
Join Date: Jul 2007
Posts: 120
Received Thanks: 71
Yeah shows correctly for me
blackmorpheus is offline  
Old 02/22/2010, 05:51   #9
 
elite*gold: 0
Join Date: Jul 2006
Posts: 233
Received Thanks: 112
Quote:
Originally Posted by zhadow32 View Post
i need some help, if someone can pls test this in their pc and tell me if its reading the MP and HP value correctly
Works here too, good job.
FeonDust is offline  
Old 02/22/2010, 15:56   #10
 
kupzz's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 25
Received Thanks: 0
how do u get the pixel and coords?
kupzz is offline  
Old 03/11/2010, 23:57   #11
 
Deathtoyou's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 15
Received Thanks: 1
File GF_mem_read.exe received on 2010.03.11 22:56:19 (UTC)
Current status: Loading ... queued waiting scanning finished NOT FOUND STOPPED
Result: 7/42 (16.67%)
Loading server information...
Your file is queued in position: 2.
Estimated start time is between 49 and 70 seconds.
Do not close the window until scan is complete.
The scanner that was processing your file is stopped at this moment, we are going to wait a few seconds to try to recover your result.
If you are waiting for more than five minutes you have to resend your file.
Your file is being scanned by VirusTotal in this moment,
results will be shown as they're generated.
Compact Compact
Print results Print results
Your file has expired or does not exists.
Service is stopped in this moments, your file is waiting to be scanned (position: ) for an undefined time.

You can wait for web response (automatic reload) or type your email in the form below and click "request" so the system sends you a notification when the scan is finished.
Email:

Antivirus Version Last Update Result
a-squared 4.5.0.50 2010.03.11 -
AhnLab-V3 5.0.0.2 2010.03.11 -
AntiVir 8.2.1.180 2010.03.11 -
Antiy-AVL 2.0.3.7 2010.03.11 Trojan/Win32.Midgare.gen
Authentium 5.2.0.5 2010.03.11 -
Avast 4.8.1351.0 2010.03.11 -
Avast5 5.0.332.0 2010.03.10 -
AVG 9.0.0.787 2010.03.11 -
BitDefender 7.2 2010.03.11 -
CAT-QuickHeal 10.00 2010.03.11 -
ClamAV 0.96.0.0-git 2010.03.11 -
Comodo 4229 2010.03.11 -
DrWeb 5.0.1.12222 2010.03.11 -
eSafe 7.0.17.0 2010.03.11 -
eTrust-Vet 35.2.7354 2010.03.11 -
F-Prot 4.5.1.85 2010.03.11 -
F-Secure 9.0.15370.0 2010.03.11 -
Fortinet 4.0.14.0 2010.03.09 -
GData 19 2010.03.11 -
Ikarus T3.1.1.80.0 2010.03.11 -
Jiangmin 13.0.900 2010.03.11 -
K7AntiVirus 7.10.995 2010.03.11 -
Kaspersky 7.0.0.125 2010.03.11 -
McAfee 5917 2010.03.11 -
McAfee+Artemis 5917 2010.03.11 -
McAfee-GW-Edition 6.8.5 2010.03.11 -
Microsoft 1.5502 2010.03.11 -
NOD32 4937 2010.03.11 -
Norman 6.04.08 2010.03.11 -
nProtect 2009.1.8.0 2010.03.11 -
Panda 10.0.2.2 2010.03.11 Suspicious file
PCTools 7.0.3.5 2010.03.11 -
Prevx 3.0 2010.03.11 High Risk Cloaked Malware
Rising 22.38.03.04 2010.03.11 -
Sophos 4.51.0 2010.03.11 -
Sunbelt 5827 2010.03.11 Trojan.Win32.Generic!BT
Symantec 20091.2.0.41 2010.03.11 Suspicious.Insight
TheHacker 6.5.2.0.230 2010.03.11 Trojan/Midgare.akhk
TrendMicro 9.120.0.1004 2010.03.11 -
VBA32 3.12.12.2 2010.03.11 Trojan-Clicker.Win32.AutoIt.u
ViRobot 2010.3.11.2222 2010.03.11 -
VirusBuster 5.0.27.0 2010.03.11 -
Deathtoyou is offline  
Reply

Tags
autoit, bot, gf, gf bot, grand fantasia




All times are GMT +1. The time now is 07:19.


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.