[GUIDE] Create your own little bot. +ADDED ANTIAFK -
10-18-2008
Hello guys! I've been into coding bots and programs for some weeks, and now I'm working on an BG bot.
In this guide you will, shortly, learn how to create your own BOT.
You can use it for WoW, or any other games.
Download AutoIt v3 : [Only registered and activated users can see links. ]
Install it, then right click your desktop, hold mouse over "New" and New AutoIT Document. Now you get an new file on your desktop, rightclick it and press " Edit Script " Now we will start code.
To start the bot in test mode, press F5!
Ok, in the top now, you enter this code :
Code:
MsgBox(0, "Titel of msgbox", "MSG BOX TEXT")
The 0 is the sort of the window, you can try 1 - 2 - 3 etc and see wich you like most. The other stuff I hope you can fix yourself. (its titel and msgbox text ^^) --- When you press F5 to test the bot, a msgbox will appear and you need to press like OK or which sort of window you picked and then the bot starts, so be sure to have wow or maybe an txt file to see what the bot press. ---
Now you go down to an new line.
Here you do this code.
Code:
sleep("15000")
send("{space}")
This will paus the bot for 15 secs (1000 = 1 sec)
and then press space.
so it can look like this :
But you add more to make it do other stuff, I mean it can do like "send("4")" and you can have mount at button 4, or maybe "send("2")" and you got an dot etc. I'll write an more advanced guide in a few days when my bot is done! As you see i got {space}, its becuse { means its a button press, if you just type ("space") then it will press s,p,a,c,e.
Uhm all {buttons} is here : HOPE You got any use for this guide! You maybe can learn more and more and in a while create your own l33t bot?! :-)
ADDED - To make an anti afk thingie, you can use this code. Remember when you copy the code, to remove all my tips. (tips is after the -)
Code:
$Msg = MsgBox(1, "TITEL", "Msg.") - First an titel of your msgbox, then an msg. the 1 is the type of the msgbox. USE 1 !!!!
If $Msg = 2 Then - This is if the user press Cancel instead of OK, the bots exits.
UserEnd() - Code to end bot.
EndIf
HotKeySet("{Pause}", "UserEnd") - an Hotkey to stop the bot manually. u see ("{PICK BUTTON HERE}") to change the button to pause.
Func UserEnd() - funciton
Exit - exits
EndFunc - end function
- NOTICE ---- You can type anything else instead of World of Warcraft. ---
- NOTICE ---- THIS IS AN ALONE CODE, IF YOU DO THIS ANTI AFK BOT, SKIP THE CODES ABOVE!! ---
WinSetState("World of Warcraft", "", @SW_MAXIMIZE) - This will maximize WoW.
ControlSend("World of Warcraft", "", "", "/join thisislolepichaha") - Here is an channel it joins, bot will join it and type the msg under here.
ControlSend("World of Warcraft", "", "", "{ENTER}") - Presses ENTER.
While 1 - here is the start.
ControlSend("World of Warcraft", "", "", "This is an simple NOT AFK thing.") - This is what the bot should say.
ControlSend("World of Warcraft", "", "", "{ENTER}") - Presses ENTER and sends the msg.
Sleep(25000) - "sleeps" before starting all over again ^^, 1000 = 1 sec, 10000 = 10 sec.
WEnd - Here is the end.¨
feel free to pm me with questions! or write here!
ADDED - A BOT WITH WINDOWED MODE.
Code:
While 1 - here is the start.
ControlSend("World of Warcraft", "", "", "send("w") ; This will press w.
ControlSend("World of Warcraft", "", "", "{w down}") ; This will hold w down until command w up.
Sleep(1500) ; sleeps 1.5 sec. and then WEnd command makes it restart all over (while 1 to wend wil restart until stopped)
WEnd - Here is the end. And restarts.
Ps. plx no more useless bots now, no more AntiAfk that just press Space. if you use this guide, you can make him press w,w,w,w,then maybe button 4 so he mounts etc. dots and {tab}s..
ENJOY!
PM me if you got question.
Code:
here :
Send("{TAB}") Navigate to next control (button, checkbox, etc)
Send("+{TAB}") Navigate to previous control.
Send("^{TAB}") Navigate to next WindowTab (on a Tabbed dialog window)
Send("^+{TAB}") Navigate to previous WindowTab.
Send("{SPACE}") Can be used to toggle a checkbox or click a button.
Send("{+}") Usually checks a checkbox (if it's a "real" checkbox.)
Send("{-}") Usually unchecks a checkbox.
Send("{NumPadMult}") Recursively expands folders in a SysTreeView32.
Use Alt-key combos to access menu items. Also, open Notepad and try the following:
Send("!f") Send Alt+f, the access key for Notepad's file menu. Try other letters!
Send("{DOWN}") Move down a menu.
Send("{UP}") Move up a menu.
Send("{LEFT}") Move leftward to new menu or expand a submenu.
Send("{RIGHT}") Move rightward to new menu or collapse a submenu.
To send the ASCII value A (same as pressing ALT+065 on the numeric keypad)
Send("{ASC 065}")
To send UNICODE characters enter the character code, for example this sends a Chinese character
Send("{ASC 2709}")
Single keys can also be repeated, e.g.
Send("{DEL 4}") ;Presses the DEL key 4 times
Send("{S 30}") ;Sends 30 'S' characters
Send("+{TAB 4}") ;Presses SHIFT+TAB 4 times
To hold a key down (generally only useful for games)
Send("{a down}") ;Holds the A key down
Send("{a up}") ;Releases the A key
If you with to use a variable for the count, try
$n = 4
Send("+{TAB " & $n & "}")
If you wish to send the ASCII value A four times, then try
$x = Chr(65)
Send("{" & $x & " 4}")
{!} !
{#} #
{+} +
{^} ^
{{} {
{}} }
{SPACE} SPACE
{ENTER} ENTER key on the main keyboard
{ALT} ALT
{BACKSPACE} or {BS} BACKSPACE
{DELETE} or {DEL} DELETE
{UP} Up arrow
{DOWN} Down arrow
{LEFT} Left arrow
{RIGHT} Right arrow
{HOME} HOME
{END} END
{ESCAPE} or {ESC} ESCAPE
{INSERT} or {INS} INS
{PGUP} PGUP
{PGDN} PGDN
{F1} - {F12} Function keys
{TAB} TAB
{PRINTSCREEN} PRINTSCR
{LWIN} Left Windows key
{RWIN} Right Windows key
{NUMLOCK} NUMLOCK
{BREAK} for Ctrl+Break processing
{PAUSE} PAUSE
{CAPSLOCK} CAPSLOCK
{NUMPAD0} - {NUMPAD9} Numpad digits
{NUMPADMULT} Numpad Multiply
{NUMPADADD} Numpad Add
{NUMPADSUB} Numpad Subtract
{NUMPADDIV} Numpad Divide
{NUMPADDOT} Numpad period
{NUMPADENTER} Enter key on the numpad
{APPSKEY} Windows App key
{LALT} Left ALT key
{RALT} Right ALT key
{LCTRL} Left CTRL key
{RCTRL} Right CTRL key
{LSHIFT} Left Shift key
{RSHIFT} Right Shift key
{SLEEP} Computer SLEEP key
{ALTDOWN} Holds the ALT key down until {ALTUP} is sent
{SHIFTDOWN} Holds the SHIFT key down until {SHIFTUP} is sent
{CTRLDOWN} Holds the CTRL key down until {CTRLUP} is sent
{LWINDOWN} Holds the left Windows key down until {LWINUP} is sent
{RWINDOWN} Holds the right Windows key down until {RWINUP} is sent
{ASC nnnn} Send the ALT+nnnn key combination
{BROWSER_BACK} 2000/XP Only: Select the browser "back" button
{BROWSER_FORWARD} 2000/XP Only: Select the browser "forward" button
{BROWSER_REFRESH} 2000/XP Only: Select the browser "refresh" button
{BROWSER_STOP} 2000/XP Only: Select the browser "stop" button
{BROWSER_SEARCH} 2000/XP Only: Select the browser "search" button
{BROWSER_FAVORITES} 2000/XP Only: Select the browser "favorites" button
{BROWSER_HOME} 2000/XP Only: Launch the browser and go to the home page
{VOLUME_MUTE} 2000/XP Only: Mute the volume
{VOLUME_DOWN} 2000/XP Only: Reduce the volume
{VOLUME_UP} 2000/XP Only: Increase the volume
{MEDIA_NEXT} 2000/XP Only: Select next track in media player
{MEDIA_PREV} 2000/XP Only: Select previous track in media player
{MEDIA_STOP} 2000/XP Only: Stop media player
{MEDIA_PLAY_PAUSE} 2000/XP Only: Play/pause media player
{LAUNCH_MAIL} 2000/XP Only: Launch the email application
{LAUNCH_MEDIA} 2000/XP Only: Launch media player
{LAUNCH_APP1} 2000/XP Only: Launch user app1
{LAUNCH_APP2} 2000/XP Only: Launch user app2
Last edited by Zeroi9; 10-20-2008 at 04:07 PM..
Reason: Adding!2
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 0
Reputation: 1
Posts: 3
Join Date: Dec 2007
10-18-2008
is there any commands for target the BG guy and join BG and then run the key's?... and how do the program understand that the bg has ended so it stops?..
is there any commands for target the BG guy and join BG and then run the key's?... and how do the program understand that the bg has ended so it stops?..
type
send("{enter}")
send("/target BGguyname")
send("{enter}")
thendownload addon sspvp2
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 0
Reputation: 1
Posts: 3
Join Date: Dec 2007
10-18-2008
Quote:
Originally Posted by Zeroi9
type
send("{enter}")
send("/target BGguyname")
send("{enter}")
thendownload addon sspvp2
Okey I see thank you, +REP from me!..and more to come if you answere;
but how do my script / program / bot understand that my character isn't in AV or WSG or any BG anymore?.. how do it understand that it shall /target BGguyname and so on?... and how do I do to repeat alots of lines? since you never know how long a AV will last...
Oh...My...GOD!
You find even more details in the help file, c'mon!
And the msgbox flag, dude, you don't "try" different numbers, you look them up in the helpfile.
And where's the While? I see no While. Or Do or For.
Yeah saying "70 views and only 2 comments" I would not view it as asking for rep as when I posted my first guide release that was unreleased for the time i got tons of downloads on it and almost no thanks for me I could careless about rep it is more about making the people happy in my case and it kinda hurts when they download it and don't say anything thing as I can be paranoid and think that it didn't help at all.
Yeah saying "70 views and only 2 comments" I would not view it as asking for rep as when I posted my first guide release that was unreleased for the time i got tons of downloads on it and almost no thanks for me I could careless about rep it is more about making the people happy in my case and it kinda hurts when they download it and don't say anything thing as I can be paranoid and think that it didn't help at all.
Thanks for the words.
Guys, and you Thadin,
well I can put up a guide tonigt how to do repeats.
IT easy.
and you asking for bg thing, just make him like do /target bgmaster sometimes.
´Hope you like it....