Jump to content

[HELP] KalOnline Bot problem


 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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 ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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