Jump to content

need help


Recommended Posts

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 by will88
Link to comment
Share on other sites

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

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 by Valuater

NEWHeader1.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...