Jump to content

[GUIDE] Create your own little bot. +ADDED ANTIAFK


Recommended Posts

Posted

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 : AutoIt v3 - Downloads

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 :

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.

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 :

sleep("15000")
send("{space}")
sleep("105")
Send("w") 
sleep("600")
Send("e")
send("{space}")
sleep"("30")

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

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

 

 

 

ADDED - A BOT WITH WINDOWED MODE.

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.

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

 

Credits to Zeroi9

Posted

nice guide !!! i like it very much ;)

+1 and sticky =)

 

yahOoOoOOo New WoW Mod! xD

 

{GR} Atsaaaaaaa gl re xD

 

 

/Ontopic Nice Guide It Deserved Teh Sticky

 

Gratz for ur karma too

  • 4 weeks later...
  • 4 weeks later...
Posted

I Have a Problem With This...i play wow 1 month and i do it this...and in my acount........is not my char.........omgggggggg..i think admin ban me..i don't khow :( :( :(

  • 2 weeks later...
  • 2 weeks later...
  • 4 weeks later...
  • 3 weeks later...
  • 4 weeks later...
  • 1 month later...
Posted

i want to test the bot on a wow server iam playing but if i see that some account are banned i prefer to not use it. how the F*** they can detect this bot?

  • 1 year later...
Posted

i want to test the bot on a wow server iam playing but if i see that some account are banned i prefer to not use it. how the F*** they can detect this bot?

 

I think it's called warden :p

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


  • Posts

    • First, don't really follow the "main voice", moreover if you consider it an hobby. Simply do what you want, you got only one life so use it as you want. If you make it an hobby, it's exactly like piano, or velo - only practice makes you better.   Secondly, how do you learn things ? It's actually a really important question, since some can simply be scholar, read books (theory) then practice ; and some simply can't read books. I'm the second type, I hated school, I find it boring - my knowledge in Java comes from try-and-fail. You improve your coding style every year or so, I can myself rewrite my own code (which I already considered top-notched) after a while. You always learn something new - even if Java barely evolves. L2J is a fun way to learn programming, it's a giant sandbox where you can edit anything, and I believe it should be taken as it.   My own way of learning was as follow : Add existing customs, no matter what they are : the point is to know main classes used by L2J / customs. L2J is barely Java knowledge ; the true knowledge is to know WHAT to search in WHICH location (what I call, organization). You have to understand than EVERYTHING you think already exists, in a form on another, in the source code. A custom is only the association of the different mechanisms you found "here and there", glued together in a proper goal. Once you know main classes to edit, and the customs you added are compiling fine, the main point is to know WHAT exactly you DID. Try to understand WHY and WHERE you actually copied the code. Third point would be to MANIPULATE the customs you added in order to fit your wish. First edit little values, then logic conditions ; eventually add a new Config, or a new functionality to the custom. Fourth point would be to begin to craft your own ideas. Once again, EVERYTHING already exists, in a form or another. You want a cycled event ? You got Seven Signs main task as exemple. Npc ? Search any type of Npc and figure out what it does. Fifth point would be to understand Java - mostly containers (WHAT and WHERE to use them), variables types and main Java mechanisms (inheritance, static modifier, etc). You should also begin to cut your code into maintainable classes or methods. Java can actually run without optimization, but bigger your ideas, more optimized and well-thought it should be. It's direct saved time in the future, and you would thank yourself doing so. Main tips : ALWAYS use any type of versioning system - GIT or SVN. It allows to save your work, step by step and eventually revert back anytime you want if you terribly messed up. L2J is 80% organization knowledge, and 20% Java knowledge. Basically, if you know WHAT and WHERE to search, if you aren't dumb, it's easy to replicate and re-use things. Cherry on top is to use a already good coded pack to avoid copy-paste crap and get bad habits. Avoid any type of russian or brazilian packs, for exemple - their best ability is to leak someone's else code. Obviously you need some default sense of logic, but Java and programming in general help you to improve it.   Finally, most of your questions could be solved joining related Discord (at least for aCis, I can't speak for others) - from the moment your question was correctly asked (and you seemed to search for the answer). My community (and myself) welcomes newbies, but got some issues with noobies.   The simpliest is to try, fail and repeat until you succeed - it sounds stupid, but that's basically how life works.   PS : about Java ressources, before ChatGPT, it was mostly about stackoverflow website, and site like Baeldung's one. With ChatGPT and alike, you generally double-cross AI output to avoid fucked up answers. Also, care about AI, they are often hallucinating really hard, even today. They can give you complete wrong answer, you tell them they are wrong, and they say "indeed, I suck, sorry - here's a new fucked up answer". You shouldn't 100% rely over AI answer, even if that can give sometimes legit answers, full code or just skeletons of ideas.   PPS : I don't think there are reliable ressources regarding L2J itself, also most of the proposed code decays pretty fast if the source code is actually maintained (at least for aCis). Still, old coded customs for old aCis sources are actually a good beginner challenge to apply on latest source.
    • WTS: - AQ - Baium - Zaken  - Frintezza - Vesper Fighter Focus Fire Element   pm for detalis
    • We have the best price! L2Reborn.org Signature x1 Franz NEW!! 1KK = $20 HURRY TO BUY AT THE TOP PRICE discord - adver745645
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock