Sign in to follow this  
Followers 0
Zibit

[HELP] KalOnline Bot problem

6 posts in this topic

Now i kind of made the bot with like 10 min so i think it has like a 100 problems...

but can you point them out?

i cant find myself...

;
; AutoIt Version: 3.0
; Language:    English
; Platform:    Win9x/NT
; Author:        Zibit
;


; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)
$answer = MsgBox(4, "PixelBot Normal Attack", "PixelBot will run continue?")
      Dim $pixel = PixelSearch( 0, 0, @DesktopWidth, @DesktopHeight, 0x430043)
      $battle = "no"

MsgBox(64, "Instructions", "Put your mouse over the area" & @CRLF & "of your health bar that when reached,(the Spot where you dont whant to get your health lower)" & @CRLF & "the bot will auto-pot. When done, press enter ( your health pots have to be on nr 4).")
$hcoord = MouseGetPos()
$health = PixelGetColor($hcoord[0], $hcoord[1])
; Execute the loop "until" the counter is greater than 5
  For $i = 1 to 99999
    If $i = 7 Then ContinueLoop
            If $pixel <> "false" Then
    sleep(100)
        Send("{LEFT down}")
        sleep(2000)
        Send("{LEFT up}")
    Else
            MouseClick("primary", $pixel[0], $pixel[1])
            $battle = "yes"
endif
    If $battle == "yes" Then
                Sleep(15000)
                Send("{SPACE}")
                Sleep(2000)
                Send("{SPACE}")
                Sleep(2000)
                Send("{SPACE}")
                $battle = "no"
                while $battle "yes"
            If $hcoord <> $health Then
                Send("4")
                Sleep(1000)
            EndIf
        WEnd
    endif
    next

THX FOR THE HELP

Share this post


Link to post
Share on other sites



Now i kind of made the bot with like 10 min so i think it has like a 100 problems...

Maybe Spent another 30 minutes to check things. debug etc ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Well yes i spent hours debugging...

i took down 7 bugs only.

... and now you want us to try to solve unknown/undefined bugs for an script used for an unknown purpose for you?

What do you expect?

If you have questions be clear in what you want to ask us.

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

lol ... amm for my purpose :D

im going to upload the source anyway so pepole can use the bot.

i got unresolved bugs what i cannot detect please help.

if it makes better.

What about you do the debugging yourself and comeback when you have exact questions.

*click*

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0