[TUTORIAL] How to make a BOT

03/10/2017 20:06 Christofer_Minestar#136
Doesent work in chrome
10/11/2017 12:03 SharingForYou#137
I'm just looking for a tutorial on how to create a Pixel Bot and I saw this, seems I can learn a lot.

Actually, it is like the Ragnarok Online Pixel Bot, I am very conscious on how I can create this, 1st step is to know how to change the monster and loot pixel to a plain color which is currently I have learned so far,

Next step is how to make this possible to move the mouse accordingly to the specific declared color. Been searching this kind of code, till i found this discussion in EPVP.

IF some of you has the idea, would appreciate if you can teach me the basic for mouse moving to a specific color then clicks it, currently I heard that automated press/click blocks by the game specially MouseClick and Send Keys.

I also need if there is any other way that the press will not be detected as an automated thing.

As to me, I am not asking for spoon feeding but need to find a base code wherein i can start all over, which the tut discussion is saying.

But the tut is kinda more on key pressing not mouse clicking and more on creating GUI.
09/11/2018 20:48 Toonami2010#138
Quote:
Originally Posted by TheForsaken View Post
What do you need to know? If you need any help just let me know. Post code.
Sempai i can't get work in Game

i need to do a bot for this game [Only registered and activated users can see links. Click Here To Register...]

if u can help me please i wil be gratefull
09/12/2018 16:17 VitorCornelius#139
Quote:
Originally Posted by Toonami2010 View Post
Sempai i can't get work in Game

i need to do a bot for this game [Only registered and activated users can see links. Click Here To Register...]

if u can help me please i wil be gratefull
To be honest, this is a "How To Make BOT" thread not pls someone make a bot for me. In here you can learn the basics, where you can start your own project.

Another suggestion:
BOT is very wide theme. If you take you time and search BOTs on youtube, then you will see, how many different BOT are exist. I not ment how many different game bot, cause most of the BOT have similar operation in games.

Just to point out few of them:
Auction House BOTs
Grindig BOTs
Farmer BOTs (if you have farm properti where you can plant plants, trees like in archeage)
PVP BOTs
And so on...

You said, you need a BOT for an XY game, but you did not provide other information, what task the BOT have to do, and how it should perform that.

Many ppl can make a BOT, but just small part of them know that game, how it is work.

I hope, i helped you to create better post in here.

Best Regards,
Cornelius
09/13/2018 00:49 Toonami2010#140
Quote:
Originally Posted by VitorCornelius View Post
To be honest, this is a "How To Make BOT" thread not pls someone make a bot for me. In here you can learn the basics, where you can start your own project.

Another suggestion:
BOT is very wide theme. If you take you time and search BOTs on youtube, then you will see, how many different BOT are exist. I not ment how many different game bot, cause most of the BOT have similar operation in games.

Just to point out few of them:
Auction House BOTs
Grindig BOTs
Farmer BOTs (if you have farm properti where you can plant plants, trees like in archeage)
PVP BOTs
And so on...

You said, you need a BOT for an XY game, but you did not provide other information, what task the BOT have to do, and how it should perform that.

Many ppl can make a BOT, but just small part of them know that game, how it is work.

I hope, i helped you to create better post in here.

Best Regards,
Cornelius
You are absolutely right, I apologize for the little information provided.

I followed the turorial, and tried to create a bot.

PD: The Game is an MMORPG, You know the same thing kill monsters, cure hp / mp, use skills. to get level.

try to make the bot, the problem is that it does not move inside the game, out of the game on the windows desktop yes, but not within the game.

what I want to do is a simple keyboard repeater, with the "TAB" key. It selects the monsters, and with the numbers 1, 2, 3, 4, 5 it uses skills. the only thing would be pixelsearch to cure hp / pm. In short, I try to make a battle bot.
11/06/2019 04:32 AzraelOfTheStorm#141
Quote:
Originally Posted by Toonami2010 View Post
You are absolutely right, I apologize for the little information provided.

I followed the turorial, and tried to create a bot.

PD: The Game is an MMORPG, You know the same thing kill monsters, cure hp / mp, use skills. to get level.

try to make the bot, the problem is that it does not move inside the game, out of the game on the windows desktop yes, but not within the game.

what I want to do is a simple keyboard repeater, with the "TAB" key. It selects the monsters, and with the numbers 1, 2, 3, 4, 5 it uses skills. the only thing would be pixelsearch to cure hp / pm. In short, I try to make a battle bot.
I was having the same problem, different game.

What fixed it for me was running my script in Administrator Mode.

Also, +1 to OP for great guide which helped me :)
06/12/2020 19:22 mervin1408#142
i copy this script from someone and tried it. but it only does is move around but cant search the target.

how can i search for the pixel of a mob? i already change the pixel but still not clicking or search the mob pls help me

HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("!{PAUSE}","Close")

#Region State Machine Functions
Func EnemySearch()
;Search enemy bar
$cords = PixelSearch(12,47,951,702,0xFFFFFFA0,5)
Return IsArray($cords)
EndFunc

Func AttackEnemy()
;inner state of Attacking state
$state = "attacking"
;Heal check important to be in top
If(haveLowHealth()) Then
$state = "heal"
Return $state
EndIf
;Switch attacking enemy state to killed if close target was killed
$cords = isTargetAlive()
If(@error) Then
$state = "killed"
Return $state
EndIf
;Continue attacking otherwise
MouseClick("left",$cords[0],$cords[1],1,3)
Sleep(500)
Send("{f1}")
Sleep(Random(200, 400, 1))
Send("{2}")
Sleep(Random(100, 300, 1))
Return $state
EndFunc

Func Wander()
Sleep(Random(100, 300, 1))
Send("{w down}") ; Holds the A key down
Sleep(Random(1000, 2000, 1))
Send("{w up}") ; Releases the A key
Sleep(Random(700, 1100, 1))
MouseClick("left",82,133,1,3)
Sleep(Random(1000, 2100, 1))
MouseClick("left",876,128,1,3)
Sleep(Random(1000, 2100, 1))
MouseClick("left",940,617,1,3)
Sleep(Random(1000, 2100, 1))
MouseMove(595,374)
MouseDown("right")
MouseMove(612,374)
MouseUp("right")
EndFunc

Func Heal()
Sleep(Random(100, 200, 1))
Send("{4 2}")
EndFunc
#EndRegion

#Region AttackState sub states
Func isTargetAlive()
;Search close target alive
$cords = PixelSearch(406,337,689,487,0xEB1609,5)
If @error Then Return SetError(1)
Return $cords
EndFunc

Func haveLowHealth()
;Check low health threshold
$cords = PixelSearch(147,717,147,717,0x222222,1)
Return IsArray($cords)
EndFunc
#EndRegion

Func TogglePause()
$isPaused = Not $isPaused ; toggle pause state
if($isPaused) Then
$LAST_STATE = $CURRENT_STATE
$CURRENT_STATE = $STATE_PAUSED
Else
$CURRENT_STATE = $LAST_STATE
EndIf
EndFunc

Func Close()
Exit 0
EndFunc

Global Const $STATE_ENEMY_SEARCH = "searching"
Global Const $STATE_ATTACKING = "attacking"
Global Const $STATE_HEAL = "healing"
Global Const $STATE_WANDER = "wandering"
Global Const $STATE_PAUSED = "paused"

Global $isPaused = True

Global $CURRENT_STATE = $STATE_PAUSED
Global $LAST_STATE = $STATE_ENEMY_SEARCH ; for pause purposes

;Only change state if not paused
Func changeState($newState)
if(Not $isPaused) Then $CURRENT_STATE = $newState
EndFunc

Func mainLoop()
While Sleep(5) ; prevent high cpu ussage
ToolTip($CURRENT_STATE,0,0)
Switch $CURRENT_STATE
Case $STATE_ENEMY_SEARCH
$found = EnemySearch()
If($found) Then
changeState($STATE_ATTACKING)
Else
changeState($STATE_WANDER)
EndIf
Case $STATE_ATTACKING
$state = AttackEnemy()
if($state == "killed") Then
changeState($STATE_ENEMY_SEARCH)
ElseIf ($state == "heal") Then
changeState($STATE_HEAL)
EndIf
Case $STATE_HEAL
Heal()
changeState($STATE_ATTACKING)
Case $STATE_WANDER
Wander()
changeState($STATE_ENEMY_SEARCH)
Case $STATE_PAUSED
Sleep(10)
EndSwitch
WEnd
EndFunc

;call main loop function
mainLoop()