Jump to content

thang bot, please help


go0b3r
 Share

Recommended Posts

ok this is a repost, i was told to put it here:

ok i got this bot from another post, but it wasn't very detailed, can someone hep me add a few things, i dont know whta to do, here it is:

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author:        VirusPunk <WWW.THEGAMECRASHERS.TK>
;
; Game:
;   Thang Global.
;
; ----------------------------------------------------------------------------
Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
MsgBox(64, "Done.", "©2006 - VirusPunk.")
While 1
$start = TimerInit()
$dif = TimerDiff($start)
While 1
$coord = PixelSearch (5, 300, 1024, 560, 0x6D3D1B, 30, 4)
If UBound($coord)>1 Then
MouseClick("left", $coord[0], $coord[1], 1, 3)
Sleep(4000)
ExitLoop
Else
Sleep(7000)
$dif = TimerDiff($start)
If $dif > 30000 Then
ExitLoop
EndIf
EndIf
WEnd
WEnd
Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('."',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

Func ShowMessage()
    MsgBox(4096,"",".")
EndFunc

ok the monsters it needs to go for have multiple colors obviously, is there any way i can make it look for more than just 1 color? I was gunna find like, 10 colors on the monster so it'll find it easier, cuz sometimes its faceing you, so you see the gold color of its chest, sometimes its back is to you so you see the dark brown color, etc.. any help is welcome

Link to comment
Share on other sites

  • 1 month later...

Yes this is one that I (VirusPunk) have made myself. It sucks though seeing how it doesn't actually target the enemy 100% of the time. You have to get the exact hex value for the mob you wish to kill and replace the one already there.

$coord = PixelSearch (5, 300, 1024, 560, 0x6D3D1B, 30, 4)

Look for the color finder script that =sinister= posted a while back. Follow his instructions and replace that value with the hex that matches the mob you want to kill.

I'm trying to make a better script, one that actually heals with potions every 10 minutes or so, also one that can repair weapons without being near a shop (possible through packet sending) every 30 minutes. That way you can go to sleep, work or do whatever without having to worry about getting killed.

Also for the color thing I will add an alternate color setting if the first search fails to find the color you're looking for...

Example: So if you have the first color as brown and the pixelsearch fails to find brown it will look for gold/yellow instead.

Link to comment
Share on other sites

  • Moderators

Yes this is one that I (VirusPunk) have made myself. It sucks though seeing how it doesn't actually target the enemy 100% of the time. You have to get the exact hex value for the mob you wish to kill and replace the one already there.

$coord = PixelSearch (5, 300, 1024, 560, 0x6D3D1B, 30, 4)

Look for the color finder script that =sinister= posted a while back. Follow his instructions and replace that value with the hex that matches the mob you want to kill.

I'm trying to make a better script, one that actually heals with potions every 10 minutes or so, also one that can repair weapons without being near a shop (possible through packet sending) every 30 minutes. That way you can go to sleep, work or do whatever without having to worry about getting killed.

Also for the color thing I will add an alternate color setting if the first search fails to find the color you're looking for...

Example: So if you have the first color as brown and the pixelsearch fails to find brown it will look for gold/yellow instead.

Was there a question here?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...