[GUIDE] How to make a bot

12/11/2009 04:18 ken_devil#16
LoL , i tested with notepad and works fine.. ==" maybe i should try removing that :]
12/11/2009 05:03 kijero#17
With this can I make a bot with other MMORPG games?
12/11/2009 06:06 kijero#18
Looking forward for your chapter 3 sir!
12/11/2009 07:05 ken_devil#19
Quote:
Originally Posted by TheForsaken View Post
You can use ControlSend instead of Send function to send to key to specific window (with out it having to be on top or anything)
Code:
ControlSend ( "title", "text", controlID, "string" [, flag] )
[Only registered and activated users can see links. Click Here To Register...]
Where should I add it? Try use the script i did and make an example for it plz ><
12/11/2009 21:45 TheForsaken#20
Quote:
Originally Posted by ken_devil View Post
Where should I add it? Try use the script i did and make an example for it plz ><
Replace it with the Send function.

PHP Code:
ControlSend("Dragonica (Client Ver : 1.0.10)""""""{ENTER}")
Sleep("100")
ControlSend("Dragonica (Client Ver : 1.0.10)""""""test"
Sleep("100")
ControlSend("Dragonica (Client Ver : 1.0.10)""""""{ENTER}"
12/12/2009 02:47 TheForsaken#21
Updated chapter 3, will add on to it when ever I have the time.
12/14/2009 12:56 deadlyp99#22
Might as well make a web page and post that, since you'll have a hard time posting like a 10 page tutorial. But its a good start, though I doubt the majority of the community will use it. But there are a few good apples in this bunch that will at least try :]
12/18/2009 09:48 pompokoking#23
Forsaken can u send me the bot program cause im not sure i can make it im only 6 grade and not really good at computer
12/18/2009 10:54 deadlyp99#24
pompokoking. sorry, but stfu.
I've known people your age learning this shit better then I did at that age.

Go to the library, use google, and learn about computers and programming. If your old enough to use the internet (and use good english) then your old enough to act adult enough to learn, or at least follow the guide.

Sorry, this is edged. But I just have a strong dislike of spoon feeding, and even more when people ask for someone else to hold to spoon.

This thread is here to help you learn, if it's beyond your grasp, work till your at or close to understanding it and you'll be well on your way.

... have a good day :D
12/18/2009 16:21 SuperZim#25
Thank you very much for this AWESOME guid!
U skipped 1 day of searching for the right way to create my writing bot :nut:
Thx :P
12/19/2009 01:10 pompokoking#26
thks Deadlyp99 u make me wanna try to do it
12/19/2009 01:10 pompokoking#27
is it gonna be block by anti hacking tool from dragonica?
12/19/2009 01:19 pompokoking#28
this is wat i did i very pls u to edit my and fix my problem or anything that i did wrong, thks


#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.0.0
Author: Pom
#ce ----------------------------------------------------------------------------
#include <GUIConstantsEx.au3>
GUICreate ( "Dragonica Bot", 535, 200)
GUICTRLCreateLabel ( "Talk 1", 8, 10)
$key1 = GUICtrlCreateInput ( "", 40, 8, 130)
GUICTRLCreateLabel ( "Talk 2", 8, 40)
$key2 = GUICtrlCreateInput ( "", 40, 38, 130)
GUICTRLCreateLabel ( "Talk 3", 8, 70)
$key3 = GUICtrlCreateInput ( "", 40, 68, 130)
GUICTRLCreateLabel ( "Interval" , 30, 100)
$Interval = GUICtrlCreateInput ( "10000", 78, 98, 50)
$startbutton = GUICtrlCreateButton("Start Bot", 75, 128, 100)

GUISetState(@SW_SHOW)

While 1
$msg = GUIGetMsg()
Select

Case $msg = $startbutton
$send1 = GUICtrlRead($key1)
$sleep1 = GUICtrlRead($Interval)
$send2 = GUICtrlRead($key2)
$sleep1 = GUICtrlRead($Interval)
$send3 = GUICtrlRead($key3)
$sleep1 = GUICtrlRead($Interval)
While 1
ControlSend("Dragonica (Client Ver : 1.0.12)", "", "", "{ENTER}")
Sleep("100")
ControlSend("Dragonica (Client Ver : 1.0.12)", "", "", "test"
Sleep("100")
ControlSend("Dragonica (Client Ver : 1.0.12)", "", "", "{ENTER}")
WEnd

Case $msg = $GUI_EVENT_CLOSE
GUIDelete()
ExitLoop

EndSelect

WEnd



















While 1
sleep(1)
WEnd
12/19/2009 07:51 deadlyp99#29
What was the problem with it?

From my tests with macro monkey I was unable to make most input/reads in full screen mode. I was able to spam X several times a second with the use of a hotkey.

I havn't used Autoit for the game, and won't because I dislike the syntax, but I program, so explain the problem and i'll see if I can see anything blatent
12/19/2009 16:11 TheForsaken#30
Quote:
Originally Posted by pompokoking View Post
this is wat i did i very pls u to edit my and fix my problem or anything that i did wrong, thks


PHP Code:
#cs ----------------------------------------------------------------------------
    
AutoIt Version3.3.0.0
    Author
Pom 
#ce ----------------------------------------------------------------------------
#include <GUIConstantsEx.au3>
GUICreate "Dragonica Bot"535200)
GUICTRLCreateLabel "Talk 1"810)
$key1 GUICtrlCreateInput ""408130)
GUICTRLCreateLabel "Talk 2"840)
$key2 GUICtrlCreateInput ""4038130)
GUICTRLCreateLabel "Talk 3"870)
$key3 GUICtrlCreateInput ""4068130)
GUICTRLCreateLabel "Interval" 30100)
$Interval GUICtrlCreateInput "10000"789850)
$startbutton GUICtrlCreateButton("Start Bot"75128100)

GUISetState(@SW_SHOW)

While 
1
    $msg 
GUIGetMsg()
    
Select
        
    
Case $msg $startbutton
                        $send1 
GUICtrlRead($key1)
                        
$sleep1 GUICtrlRead($Interval)
                        
$send2 GUICtrlRead($key2)
                        
$sleep1 GUICtrlRead($Interval)
                        
$send3 GUICtrlRead($key3)
                        
$sleep1 GUICtrlRead($Interval)
                While 
1     
                        ControlSend
("Dragonica (Client Ver : 1.0.12)""""""{ENTER}")
                        
Sleep("100")
                        
ControlSend("Dragonica (Client Ver : 1.0.12)""""""test"
                        
Sleep("100")
                        
ControlSend("Dragonica (Client Ver : 1.0.12)""""""{ENTER}")
                
WEnd

        
Case $msg $GUI_EVENT_CLOSE
                GUIDelete
()
                
ExitLoop

    EndSelect

WEnd 
You still haven't read anything so I am not going to give you the correct code to fix it. You just copied ken_devil's code from page 2 and put your name on it, which is unacceptable. Each variable can only be assigned once. You have $sleep1 reading the input of $interval three times. Also you didn't do anything with those variables afterwords. You have to plug them into the code. Example:
PHP Code:
Sleep($variable
You have to do that to the Sleep and ControlSend functions.


Also try to use [code] tags and the edit button instead of triple posting.