|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
OutThisLife Newbie cheater Reputation: 0
Joined: 17 Nov 2005 Posts: 17 Location: 127.0.0.1
|
Posted: Wed Nov 23, 2005 8:55 pm Post subject: For those who want to bot, a skeleton. |
|
|
I made this bot for a game, Kal Online, and well it works quite nice:
Made it in Autoit3
Code: | ; Hotkeys and whatnot
Opt("PixelCoordMode", 0)
Opt("MouseCoordMode", 0)
HotKeySet("{ESC}", "Terminate")
$Start = HotKeySet("!s", "start")
While 1 ; Make sure the program does not close itself when it opens
Sleep(2)
WEnd
Func Terminate() ; The exit hotkey
Exit 0
EndFunc
Func Start() ; Main function, where the magic begins.
Dim $Color, $x1, $x2, $y1, $y2, $SearchResult, $Click, $TargetResult
; Variables / Settings
$Color = 0x101F19
$Health = 0xAA1122
$x1 = 80
$y1 = 139
$x2 = 997
$y2 = 577
$Click = "left"
$GetMonsterHealth = PixelGetColor(453,21)
; The "every somewhatseconds" area
AdlibEnable("Heal",50000)
AdlibEnable("TurnCamera",20000)
$Start = NOT $Start ; Check if ctrl+s was pressed, if it wasn't then it will say that it is not on
TrayTip("Turned off","It's off!",2,2) ; Say "turned off" in the tray
; The core, bitch
While $Start ; Check if ctrl+s was pressed, if it was it will continue
TrayTip("Turned On","It's on!",2,1) ; Say "turned on" in the tray
$SearchResult = PixelSearch($x1, $y1, $x2, $y2, $Color,1) ; Search for the color given in the area given
If @error Then
Else
MouseClick($Click, $SearchResult[0], $SearchResult[1], 1, 1) ; Attack the monster
If Not $MonsterGetHealth = $Health Then ; Check if the monster is dead
Send("{SPACE},{SPACE},{SPACE}") ; Loot
EndIf
EndIf
WEnd
EndFunc()
Func Heal() ; The heal function, every 50 seconds
; Variables / Settings
$Health = 0xAA1122
$GetHealth = PixelGetColor(68,10)
While 1
If Not $GetHealth = $Health Then ; If health is not > half way then send the pot key
Send("3")
EndIf
WEnd
EndFunc
Func TurnCamera() ; Every 20 seconds turn the camera
$Direction = "right" ; Variables / Settings
$x1 = 50
$x2 = 100
$y1 = 50
$y2 = 500
MouseClickDrag($Direction,$x1,$y1,$x2,$y2) ; Turn the camera now
EndFunc |
Just edit to your liking.
To get the pixels and whatnot run AutoIt3 Window Info tool.
http://www.autoitscript.com/autoit3/ - For AutoIt3, open up notepad and put this source inside. Save it as Bot.au3. Then right click>Compile.
_________________
#include <stdio.h>
int main(int argc,char **argv)
{
printf("%s\n",argv[2]")
} |
|
Back to top |
|
|
Wapol How do I cheat? Reputation: 0
Joined: 25 Nov 2005 Posts: 5
|
Posted: Fri Nov 25, 2005 8:18 am Post subject: |
|
|
will this work in any mmorpg but not the ones that has anti-hack
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Fri Nov 25, 2005 8:19 am Post subject: |
|
|
no, this only works in Kal Online
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Wapol How do I cheat? Reputation: 0
Joined: 25 Nov 2005 Posts: 5
|
Posted: Fri Nov 25, 2005 8:22 am Post subject: |
|
|
dang that sucks thanks anyways
|
|
Back to top |
|
|
Hit_Me Newbie cheater Reputation: 0
Joined: 27 Nov 2005 Posts: 16
|
Posted: Thu Dec 01, 2005 5:43 pm Post subject: |
|
|
So how exactly do you use this? I am an EXTREME Noob. And what stuff do you replace?
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|