will88 Posted June 21, 2008 Share Posted June 21, 2008 (edited) this is a part of my script that I made: HotkeySet("{F1}", "Start") HotkeySet("{F2}", "Stop") Global $Loop = 0 $dead = '0x750100' $deathini = IniRead(@ScriptDir & "\" & $InI, "Options", "Death", "NotFound") $armorini = IniRead(@ScriptDir & "\" & $InI, "Options", "Armor", "NotFound") $Cast = IniRead(@ScriptDir & "\" & $InI, "Options", "Cast", "NotFound") $buffkey = $armorini $WoW = 'World of Warcraft' $notset = '' $logout = 'logout' $shutdownn = 'shutdown' $quit = 'quit' $attack = 't' $findmob = '{tab}' While 1 If $Loop = 1 Then $deathdetect = PixelSearch( 0, 0, 1000, 800, $dead) If Not @error Then tooltip("you are dead") died() EndIf tooltip("detecting buff") $buff = PixelSearch( 0, 0, 1000, 800, $armor) If Not @error Then tooltip("buff detected") sleep(random(700, 1000)) Else send($buffkey) sleep(random(600, 900)) EndIf I know the pixlesearch() has the right color because if I added a message box after the tooltip and it detects the color, but after tooltip it doesen't bother with died() and just skips to $buff. here is the died() funcion Func died() If $deathini==$logout then logout() EndIf If $deathini==$shutdownn then shutdownn() EndIf If $deathini==$quit then quit() EndIf Edited June 21, 2008 by will88 Password-Keeper Link to comment Share on other sites More sharing options...
will88 Posted June 21, 2008 Author Share Posted June 21, 2008 does anyone know why this is happening? Password-Keeper Link to comment Share on other sites More sharing options...
Rydextillxixdiex Posted June 21, 2008 Share Posted June 21, 2008 Try using call died()Should work now, What exactly is this "Program"....(bot) being used for? If i knew a little more about what your goal is i might beable to help you a bit more as i play wow myself from time to time =P.BTW: Botting is WRONG but do as you must. ...will never learn all there is to know about autoit, no worries...i came to the forums :) Link to comment Share on other sites More sharing options...
Valuater Posted June 21, 2008 Share Posted June 21, 2008 (edited) functions need to have the info sent or the info is "Globalized" 1 send the info Func died($info) If $info = $logout then logout() If $info = $shutdownn then shutdownn() If $info = $quit then quit() EndIfoÝ÷ ÚöZj[az)ß¡«¢+Ù1= 0ÀÌØíÑ¡¥¹¤ô%¹¥I¡MÉ¥ÁѥȵÀìÅÕ½ÐìÀäÈìÅÕ½ÐìµÀìÀÌØí%¹$°ÅÕ½Ðí=ÁÑ¥½¹ÌÅÕ½Ðì°ÅÕ½ÐíÑ ÅÕ½Ðì°ÅÕ½Ðí9½Ñ½Õ¹ÅÕ½Ðì¤ note the function, no == and no exhaustive endif's 8) BTW, make the topic more descriptive not just "need help" Edited June 21, 2008 by Valuater Link to comment Share on other sites More sharing options...
will88 Posted June 21, 2008 Author Share Posted June 21, 2008 (edited) Thanks! I will try seeing if these work when I get a chance. edit: yep it worked Edited June 21, 2008 by will88 Password-Keeper Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now