Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 12Sky2
You last visited: Today at 01:29

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

Advertisement



AutoIt (sorry need more help XD)

Discussion on AutoIt (sorry need more help XD) within the 12Sky2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 7
AutoIt (sorry need more help XD)

This is a part of my script, when my chi = my max chi, the script makes the AOE key go down... however im having problems making the AOE key be released once my chi is below 1900 :S any ideas?

While $CHI = $ChiMax
AOEA ()
While $CHI < 1900
AOEB ()
Wend
Wend


Func AOEA ()
WinActive("TwelveSky2")
Send ("Q" down)
sleep (1)
EndFunc


Func AOEB ()
WinActive("TwelveSky2")
Send ("Q" up)
Sleep (1)
EndFunc
emofishcake is offline  
Old 07/31/2009, 02:32   #2
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
you might be stuck in a loop. once in a loop you can't get out until while *whatever here* is false.
Your ("Q" down) is wrong. SHould be ("{q down}")
You should make ur aoe button 1 function running under a loop.

global $chimax = 2500

while 1
send("{q down}")
sleep(200)
send("{q up}")
If $chimax < 1900 then
exitloop
wend

not sure if 1900 needs to be written as "1900" I usually test and check. i forget about quotes alot. LOL.

obviously you're going to have to get the "current MP" address instead of max MP. probably need 2 variables also.
strikeraid is offline  
Thanks
1 User
Old 07/31/2009, 02:40   #3
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 7
cheers striker =] ill test out what u sed!!
emofishcake is offline  
Old 07/31/2009, 02:43   #4
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
by making write out that script gave me a wild idea for a bot. LOL. i feel so drained reading all this C++ coding. don't think i can learn C++ as fast as i did autoit. and i've only mastered like 40% of autoit. -.- and that might even be an exaggeration.
strikeraid is offline  
Old 07/31/2009, 02:52   #5
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 7
loool ur doing well considering u started not too long ago =D
u feel good when it works tho XD
alsoo wat does the term global stand for??
emofishcake is offline  
Old 07/31/2009, 02:56   #6
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
It means like throughout your entire script. so if for example you have a second function and you don't specify the $maxchi variable, it will use the global value.

more on that here:

strikeraid is offline  
Old 08/01/2009, 08:53   #7
 
tri407tiny's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 620
Received Thanks: 272
Quote:
Func botbabby()
While $CHI > ($ChiMax *.50) ;50%
AOEA()
wend
While $CHI < ($ChiMax * .50) ;50%
ChiPill()
wend
While $HP > ($HPMAX * .90)
HPpill()
wend
endfunc

Func AOEA ()
WinActive("TwelveSky2")
Send ("Q")
sleep (1)
EndFunc


Func Chipill ()
WinActive("TwelveSky2")
Send ("W" )
Sleep (1)
EndFunc

Func HPpill ()
WinActive("TwelveSky2")
Send ("W" )
Sleep (1)
EndFunc

While 1
botbabby()
wend
-tri407tiny
tri407tiny is offline  
Old 08/01/2009, 09:03   #8
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
you totally gave him a new script. >.< lol. you're only supposed to help partially so he can learn the rest. hahah jk. nice one.
strikeraid is offline  
Old 08/01/2009, 09:04   #9
 
tri407tiny's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 620
Received Thanks: 272
Opps, Ehh sorry, got caried away haha
tri407tiny is offline  
Old 08/01/2009, 15:46   #10
 
Zacko7's Avatar
 
elite*gold: 20
Join Date: Jul 2009
Posts: 1,364
Received Thanks: 542
Well, he's probably happy now. xD
Zacko7 is offline  
Old 08/01/2009, 19:25   #11
 
Omicron08's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 18
Received Thanks: 0
Where can i learn to code this way? D oyou know any sites that have iformation of scripting like this? I want to make a bot that will Buff, pick up loot, and AoE. or just have someone give me one ^^. anyways, where can i learn this?
Omicron08 is offline  
Old 08/01/2009, 19:30   #12
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
you can google Autoit. maybe even "autoit tutorials"
strikeraid is offline  
Old 08/01/2009, 20:17   #13
 
Zacko7's Avatar
 
elite*gold: 20
Join Date: Jul 2009
Posts: 1,364
Received Thanks: 542
Quote:
Originally Posted by strikeraid View Post
you can google Autoit. maybe even "autoit tutorials"
Zacko7 is offline  
Reply




All times are GMT +1. The time now is 01:30.


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.